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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Script for Scheduling a process

Status
Not open for further replies.

arjagadish

Technical User
Jan 6, 2003
36
IN
I need a shell script to execute process in every 30 secs.

What command should I use and syntax. An example would be a great help for me.
 
cron will allow to to execute every minute, but you can't get down to 30 secs. For this see the man pages for crontab and cron

To run every 30 secs you could have a wrapper script something like ...
Code:
while true
do
  run script here
  sleep 30
done
... could be a real drain on resources though!

Greg.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top