Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I shedule a script to execute via crontab? 1

Status
Not open for further replies.

stla

IS-IT--Management
Mar 12, 2003
190
DE
I have created a script and save it here:

/etc/cron.daily/my_script

How do I 'add' my script to the crontab so that it executes at a specific time?

I am logged in as 'root'.

Normally I would use #crontab -e but this seems to be the wrong command as my other scripts aren't in here.

Any ideas?

Best regards
 
Your other scripts should appear when you issue a crontab -l command. Do they?



I want to be good, is that not enough?
 
if you put the script in cron.daily, it should execute every morning about 4:am automatically, you dont have to do anything.
 
Opps sorry, I'm thinking of the more trad. *nix variants!

I want to be good, is that not enough?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top