Problem launching backup script from cron

Fajar Priyanto fajarpri at cbn.net.id
Thu Oct 18 01:49:34 UTC 2007


On Thursday 18 October 2007 05:46:25 Steve Waage wrote:
> Hello,
>     I've installed the following job in root's crontab file ...
>
> # m h  dom mon dow   command
> 20 17 * * *  /usr/bin/find / -depth -xdev|/bin/cpio -o>/backup/`date
> +%A`.cpio
>
>    ...and right on time my  /var/log/syslog file contains the following
> entry...
>
> Oct 17 17:20:01 content /USR/SBIN/CRON[5921]: (root) CMD (/usr/bin/find
> / -depth -xdev|/bin/cpio -ov>/backup/`date +)
>
>     ... but the job never runs.  I've been running the same command from
> the shell.  Any tips on why it won't run
> from cron?

Hi Steve,
Try to put the command into a file first. Chmod it 755 and put the file into 
cron such as:
20 17 * * * /home/steve/backup.sh
Cron is well known for acting such a fussy girl :)
HTH,
-- 
Fajar Priyanto | Reg'd Linux User #327841 | Linux tutorial 
http://linux2.arinet.org
08:48:52 up 19 min, 2.6.20-16-generic GNU/Linux 
Let's use OpenOffice. http://www.openoffice.org
The real challenge of teaching is getting your students motivated to learn.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20071018/9c212df1/attachment.sig>


More information about the ubuntu-users mailing list