[5696] in RedHat Linux List
Re: Error messages from crontab
daemon@ATHENA.MIT.EDU (Skull)
Sat Nov 23 02:35:59 1996
Date: Sat, 23 Nov 1996 02:33:02 -0500
To: redhat-list@redhat.com
From: Skull <skull@yakko.cs.wmich.edu>
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com
>> >Below I included a daily error message I get from cron;
>> >I started getting it after I upgraded to 4.0. Any ideas
>> >why?
>[.......................]
>> I think it would be much more useful if you could send
>> a copy of your script to the list for us the help understand
>> your errors...
I think also, you might want to send your crontab entry to run this,
assuming its more than just a time and script call...
I use bash myself but I imagine they are similar.
>#!/bin/sh
>cd /zdrive;
hmmm, perhaps your cd is causing problems... try giving your
commands full paths, without changing directories. It seems
to work for me the way I suggest.
i.e. mv -f /zdrive/etc.tar.gz /zdrive/etc.tar.gz.old
>mv -f etc.tar.gz etc.tar.gz.old;
>mv -f vlad.tar.gz vlad.tar.gz.old;
>cd /;
same thing here...
try tar czvf /zdrive/etc.tar.gz /etc/. or something...
>tar -czf /zdrive/etc.tar.gz etc;
I always do a tar czvf myself... based on this, it takes etc which I
assume is a directory, and tars it into /zdrive as a file. I would
suggest that you do a /etc or etc/. instead of just plain etc.
>tar -czf /zdrive/vlad.tar.gz /home/vlad;
in sh do you really have to have the trailing semi-colon
for a shell script? seems like what would be silly...
>tar -czf /zdrive/root.tar.gz /root;
>tar -czf /zdrive/usrlocalbin.tar.gz /usr/local/bin;
>sync;sync;
>
>echo "Backup: done"
everything else appears ok as far as I can tell...
if you follow the same though pattern as my suggestions
anyhow.
Darron
--
PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
________________________________________________________________________
http://www.redhat.com/RedHat-FAQ http://www.redhat.com/RedHat-Errata
http://www.redhat.com/RedHat-Tips http://www.redhat.com/mailing-lists
------------------------------------------------------------------------
To unsubscribe: mail -s unsubscribe redhat-list-request@redhat.com < /dev/null