Welcome! » Log In » Create A New Profile

Cron Job Failing

Posted by Anonymous 
Cron Job Failing
August 09, 2007 12:00PM
On 8/9/07, David Rasche <drasche < at > gmail.com> wrote:
Quote

Here is the output. I don't have email set up on this machine, I
thought all of the errors would be sent to a log file. In fact, I
don't know where or how to set that up. I'll have to do that if this
is the only way to get cron errors.

Here is my cron file:

0 */4 * * * /usr/bin/rsnapshot hourly
45 23 * * * /usr/bin/rsnapshot daily
30 23 * * 1 /usr/bin/rsnapshot weekly
15 23 1 * * /usr/bin/rsnapshot monthly
If you were to append the following to each line you'd get the output
in "rsnapshot.log" and the errors in "rsnapshot.err":

Quote

/var/log/rsnapshot.log 2>/var/log/rsnapshot.err
Use ">>" instead of ">" if you want to append to the logs rather than
overwrite at each run.

--
Please keep list traffic on the list.

Rob MacGregor
Whoever fights monsters should see to it that in the process he
doesn't become a monster. Friedrich Nietzsche

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> [get.splunk.com]
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
[lists.sourceforge.net]
Cron Job Failing
August 09, 2007 10:25AM
David Rasche wrote:
Quote

I am stuck and really need help. I have posted this question before in
a previous string of email, but I have no resolution to the problem.
I recently upgraded a server to Ubuntu 7.04 (used to be Debian). My
rsnapshot script works fine from the command line, but it fails during
cron. It just fails with no warning and no error messages. Anyone have
any clue?
What is the output of `crontab -l`? If the line invoking your rsnapshot
script ends with "2>&1" you won't receive an email upon error.

brian

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> [get.splunk.com]
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
[lists.sourceforge.net]
Sorry, only registered users may post in this forum.

Click here to login