The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #4 (permalink)  
Old 11-01-2006
nonkey nonkey is offline
Registered User
 

Join Date: Oct 2006
Posts: 6
Quote:
Originally Posted by jeffreydavisjr
Well I have some scripts that I run manually everyday. I was wondering if it was possible to get these scripts to automatically run at say 4:30am every mourning.

I am using UNIX Sco 5.0.6. Thanks.
Usually /etc/crontab file contains configuration for cron daemon, which schedule scripts or programs according to it.

To automate running scripts at 4:30am every day you must write string to crontab file something like:

30 4 * * * * user /home/user/script.sh

First column - minutes, second - hours (24-h format)

You can setup any time to within 1 minute (if you need seconds - you can run 'sleep' or so at the script).


--
Vladimir
Nothing but Unix
http://unix-news.blogspot.com/
Reply With Quote