Re: Crintab Problem
Phantazm wrote: This is insane. I cant get user crontabs to work. You know it must be something very simple. cron is running crontab -l gives correct output. EVERYTHING looks fine. I've must have missed something. Check /var/log/syslog and look for entries that look like this: Aug 15 07:17:01 dementia /USR/SBIN/CRON[15925]: (root) CMD (run-parts --report /etc/cron.hourly) Just installed 3 debian boxes just running heartbeat and failover for apache/bind9/dhcpd/mysql 4.1 and some other services and on none of the machines crontab is working :( How do you know the crontabs are not working? What have you tried? Start with something simple. Write a little script that does nothing but the following: #!/bin/sh date -R /tmp/hello.out Call that from cron. Verify that it is writing to the file or that it is not writing to the file. What does the /var/log/syslog say in this case? Wierd. If you help me i buy you an icecream :) Better yet, you help someone else solve another problem in the future. You can't really pay these things back. You can only pay them forward. :-) Bob signature.asc Description: Digital signature
Re: Crintab Problem
Hi. I know that it's not working since it doesnt output in syslog that it have been runned. if i put stuff in /etc/crontab it shows in syslog when it runs it and what user running it. ex: -- /etc/crontab */15 * * * * root /home/cluster/www/www.erotik-butiken.nu/cgi-bin/awstats.pl -config=www.erotik-butiken.nu -update syslog: Aug 16 10:00:01 camelot /USR/SBIN/CRON[4728]: (root) CMD (/home/cluster/www/www.x.se/cgi-bin/awstats.pl -config=www.x.se -update) So that is working. --- camelot:~# crontab -l 00 04 * * * updatedb /dev/null 21 01 03 * * * apt-get update /dev/null 21 */5 * * * * /home/cluster/www/www..se/cgi-bin/awstats.pl -config=www.x.se -update none of these have never been runned :-( It actually beats me :) never stumble upon such a wierd thing before. i've also tried a simpe date test.txt crontab to see if it puts anything in the file but nothing happends. Thank you for your time bob. /Christian -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Crintab Problem
Phantazm wrote: syslog: Aug 16 10:00:01 camelot /USR/SBIN/CRON[4728]: (root) CMD (/home/cluster/www/www.x.se/cgi-bin/awstats.pl -config=www.x.se -update) So that is working. Good. --- camelot:~# crontab -l Usually root would not have a user crontab because root has both /etc/cron.daily/*, /etc/cron.d/* and /etc/crontab to draw from. 00 04 * * * updatedb /dev/null 21 Usually that would be handled by /etc/cron.daily/find. You probably don't want to be running this twice. I recommend removing this entry and allowing the package entry to run in the daily script. 01 03 * * * apt-get update /dev/null 21 Let me recommend the cron-apt package. That has a nice interface to automated apt operations. The default is to get new index files as you are doing here. The fact that both of those discard their output is disconcerting. Really things should work when they work and when they don't work they should make noise for you to see and fix the problems. I don't think you should ignore the output. */5 * * * * /home/cluster/www/www..se/cgi-bin/awstats.pl -config=www.x.se -update That needs to be on one line. It looks to me like you have that on two lines. If so then that is a problem to fix. none of these have never been runned :-( It actually beats me :) never stumble upon such a wierd thing before. i've also tried a simpe date test.txt crontab to see if it puts anything in the file but nothing happends. Not sure what else to suggest. Bob signature.asc Description: Digital signature
Re: Crintab Problem
Thank you for your help bob. Got it solved earlier today. All i needed was an extra empty line at the bottom of the crontab. Kinda odd never had that with gentoo or slack. Anyhow its working :) Thank you for your time -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Crintab Problem
This is insane. I cant get user crontabs to work. cron is running crontab -l gives correct output. EVERYTHING looks fine. I've must have missed something. Just installed 3 debian boxes just running heartbeat and failover for apache/bind9/dhcpd/mysql 4.1 and some other services and on none of the machines crontab is working :( Wierd. If you help me i buy you an icecream :) Regards Chris -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]