Home
Man
Search
Today's Posts
Register

AIX is IBM's industry-leading UNIX operating system that meets the demands of applications that businesses rely upon in today's marketplace.

Crontab issue

Tags
aix

Login to Reply

 
Thread Tools Search this Thread
# 1  
Old 05-01-2011
Crontab issue

Hi all,
I'm having a problem with a crontab entry execution for a non root user.
AIX version 5.3
Code:
user@host ~ $ oslevel -r
5300-10

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

cron entry for user

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

long listing for the script
Code:
user@host ~ $ ls -l checkout.sh
-r-x------    1 user   staff          1530 Apr 29 22:43 checkout.sh

viewing log /var/adm/cron/log
Code:
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
Code:
host:/>cat /var/adm/cron/cron.allow
root
user

Code:
/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
# 2  
Old 05-01-2011
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.
# 3  
Old 05-01-2011
Quote:
Originally Posted by pludi
I'm not sure how it relates to the error message, but it seems you've got 1 field too many in your crontab.
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
The Following User Says Thank You to bakunin For This Useful Post:
h@foorsa.biz (05-02-2011)
# 4  
Old 05-02-2011
@bakunin
You are right the sixth * were the problem
Login to Reply

« Previous Thread | Next Thread »
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Crontab issue jrymer UNIX for Dummies Questions & Answers 6 06-30-2013 05:51 PM
Crontab Issue aravindj80 UNIX for Advanced & Expert Users 10 05-30-2013 03:21 PM
Crontab issue ! top.level Solaris 1 12-19-2012 08:53 AM
Crontab Issue..!!! gayisada UNIX for Dummies Questions & Answers 1 05-02-2011 06:55 AM
Issue with crontab Sriranga Shell Programming and Scripting 12 06-24-2010 10:19 AM
crontab issue mac4rfree Shell Programming and Scripting 2 06-30-2009 06:51 AM
crontab issue crackthehit007 UNIX for Advanced & Expert Users 4 03-23-2009 12:32 AM
crontab issue vaddi HP-UX 11 01-28-2008 06:07 AM
Crontab Issue rickyt00 UNIX for Dummies Questions & Answers 2 08-06-2005 10:31 AM
crontab issue Semper_Tempus Solaris 6 07-19-2005 11:13 PM


All times are GMT -4. The time now is 10:58 PM.

Unix & Linux Forums Content Copyright 1993-2018. All Rights Reserved.
UNIX.COM Login
Username:
Password:  
Show Password