[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] Cron not working right



Hi Jamie,

Could it be that the output messages your seeing from your script are error
messages and not output messages, you could try adding '2>&1' to your script to
see if this is the case.

e.g. '00 * * * * /bin/sh /path/to/some/script.sh 2>&1 >
/home/sites/www.domain.com/logs/cronlog.txt'

Regards

Dan
dan@xxxxxxxxxxxx
http://www.dogsbody.org


Jamie Martino wrote:
> 
> Hello list,
> Strange problem here..  Our crontab seems to not act properly..
> 
> Let's say I have the following line in my crontab:
> 00 * * * * /bin/sh /path/to/some/script.sh >
> /home/sites/www.domain.com/logs/cronlog.txt
> 
> Now, shouldn't that OVERRIDE the auto email that gets sent to root when
> there is output from the script, and send all output to the file I specified
> instead of email?  That's what I learned from all resources I've checked so
> far, but it doesn't seem to work on our RAQ4R....  I still get the email,
> and the logfile is 0 bytes in size..  The directories do exist, and it's
> running from the root crontab, so it has permission to write anywhere...
> I've looked for an answer, but seem to just get more and more confused..
> Any one have any thoughts?  Maybe a bug in the crontab?  Or am I missing
> something all together...
> 
> Thank you in advance list!
> 
> -Jamie-
> http://w-c.net
> WebConnection.Net, Inc.
> In a mad world, only the mad are sane...
> 
> _______________________________________________
> cobalt-users mailing list
> cobalt-users@xxxxxxxxxxxxxxx
> To Subscribe or Unsubscribe, please go to:
> http://list.cobalt.com/mailman/listinfo/cobalt-users