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

little crontab question?



Hello list:

I'd like to run every 4 hours a script, not as root but under user
whatever.

As root I did: 

crontab -u whatever -e (to edit crontab). vi popped up and I entered the
following lines...

#minute hour    mday    month   wday    command
#
0       4       *       *       *       /home/whatever/build/build_test

when saved and quit...
crontab: installing new crontab

But it seems like the crontab isn't executing. The user 'whatever' is in
/var/cron/allow

cat /var/cron/allow

whatever

that's it. 

Shall I check something else? I also added this user to wheel group. 

FYI: the script runs O.K. if I log on as 'whatever' and do 
./build_test

So it's executable.

Regards,

Martin Marconcini

"Life can only be understood in reverse
But must be lived forwards… " Dave Mustaine