Computing.Net > Forums > Unix > crontab command

Computing.Net: Over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to sign up now, it's free!

crontab command

Reply to Message Icon

Original Message
Name: fatchoy
Date: November 26, 2002 at 20:39:07 Pacific
Subject: crontab command
OS: hp ux 7.3.4
CPU/Ram: p166/64mb
Comment:

Hi

I face some difficulty when modify my existing cronfile and
schedule a new job
eg.(10 12 * * * cd /data/schedule; ./elpida_link > /data/schedule/elpida.log)


After modify and saved the cronfile (vi cronfile) ,i issued a command "crontab cronfile" to submit the new cronfile to cron.

I wait and wait but it seem that the job didnt start at all
Anyone can help to offer some advise.

Thanks


Report Offensive Message For Removal


Response Number 1
Name: Jimbo
Date: November 26, 2002 at 22:43:09 Pacific
Reply: (edit)

Make sure that the script is executable by the user trying to run it. Also, have a look at your cron log. Not sure where it's at on HPUX though... /var/cron/log ???

-jim


Report Offensive Follow Up For Removal

Response Number 2
Name: fatchoy
Date: November 26, 2002 at 23:51:52 Pacific
Reply: (edit)

Hi jim

How can i set the file so that the script is
executable by the user trying to run it?How to set in cronfile?


Report Offensive Follow Up For Removal

Response Number 3
Name: Jimbo
Date: November 27, 2002 at 01:42:01 Pacific
Reply: (edit)

cd to /data/schedule

Make sure that elpida_link has execute permission by running ls -l. Use chmod to set execute permission.

example:
chmod 755 elpida_link

Sets execute for all users.

man chown and chmod for more info.

-jim


Report Offensive Follow Up For Removal

Response Number 4
Name: dineshnegi
Date: December 4, 2002 at 02:07:47 Pacific
Reply: (edit)

hi
u can also use crontab -e
to edit the cron jobs


dineshnegi


Report Offensive Follow Up For Removal







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Unix Forum Home








Do you have your own blog?

Yes
No
I did before
I will soon


View Results

Poll Finishes In 2 Days.
Discuss in The Lounge
Poll History




Data Recovery Software