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

Re: Why this crontab does not work?

On 7/19/07, Magicloud Magiclouds <magicloud.magiclouds@gmail.com> wrote:
Dear all,
    I have a crontab like this:

root@localhost # crontab -l
# m h  dom mon dow   command
*       0,12    *       *       *       root    /root/update.sh
root@localhost # more /root/update.sh
apt-get update
apt-get upgrade -d
apt-get autoclean
apt-get autoremove
touch /root/update.sh
root@localhost # ls -l /root/update.sh
-rwxr-xr-x 1 root root 104 2007-07-19 09:01 /root/update.sh

Cron jobs run in an impoverished environment.  Either  include a PATH statement  or call apt-get as /usr/bin/apt-get.  At least I think that might be the problem.


    But it seems that the script have never been called.


To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

Reply to: