Re: Fwd: Cron <root@hXXXXXX> tar cfCz /root/backups/htdocs-`date +

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

 



You need to add/use the full PATH to the program you want to run.



 3       3       *       *       * \
/path/to/tar cfCz /root/backups/htdocs-`date +%F`.tgz /var/www/htdocs .



On Fri, 6 Oct 2006, Alexander Farber wrote:

Hello,

could someone please advise me, why would
my tar-command work fine on the command line:

hXXXXXX:afarber {272} sudo tar cfCz /root/backups/htdocs-`date
+%F`.tgz /var/www/htdocs .
hXXXXXX:afarber {273} sudo ls -l /root/backups
-rw-r--r-- 1 root root 1087070 Oct  6 14:43 htdocs-2006-10-06.tgz

But fails in the root's crontab:

h754814:afarber {274} sudo crontab -l

Thank you
Alex


---------- Forwarded message ----------
Date: Oct 6, 2006 3:03 AM
Subject: Cron <root@h754814> tar cfCz /root/backups/htdocs-`date +
To: root@xxxxxxxxxxxxxxxxxxxxxxxxxxx


/bin/sh: -c: line 0: unexpected EOF while looking for matching ``'
/bin/sh: -c: line 1: syntax error: unexpected end of file





[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux