Crontab issue

Hi all,
I'm having a problem with a crontab entry execution for a non root user.
AIX version 5.3

user@host ~ $ oslevel -r
5300-10

cron status

user@host ~ $ ps -ef | grep cron
    root  377044       1   0   Oct 27      -  0:22 /usr/sbin/cron

cron entry for user

user@host ~ $ crontab -l
15 8 * * * * /home/user/checkout.sh

long listing for the script

user@host ~ $ ls -l checkout.sh
-r-x------    1 user   staff          1530 Apr 29 22:43 checkout.sh

viewing log /var/adm/cron/log

host:/>grep user /var/adm/cron/log
user    : CMD ( * /home/user/checkout.sh ) : PID ( 909476 ) : Sat Apr 30 08:15:00 2011
user... User unknown
user    : CMD ( * /home/user/checkout.sh ) : PID ( 1736796 ) : Sun May  1 08:15:00 2011
user... User unknown

content of /var/adm/cron.allow

host:/>cat /var/adm/cron/cron.allow
root
user
/var/adm/cron/cron.deny

has no entries at all

after all the script doesn't run and exit with above log entry
what's i'm missing

I'm not sure how it relates to the error message, but it seems you've got 1 field too many in your crontab. AFAIK there's 5 for the time (minute, hour, day of month, month, day of week) and then the command. You've got 6.

This is actually the very problem!

The sixth asterisk is interpreted as the name of the command to execute and "/home/user/checkout.sh" as its commandline argument.

I hope this helps.

bakunin

1 Like

@bakunin
You are right the sixth * were the problem