Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Mon Mar 15, 2004 7:27 pm 
Offline
Senior Newbie
User avatar

Joined: Wed Oct 15, 2003 12:49 pm
Posts: 14
Hi,

I am trying to get the code to make script to start some process when our server is booted but they can not be run all at onces, so does anyone know the shell code to hold the next command for X amount of mins before running it ?

Regards,
Garry

_________________
Regards,
Garry


Top
   
 Post subject:
PostPosted: Mon Mar 15, 2004 7:30 pm 
Offline
Linode Staff
User avatar

Joined: Tue Apr 15, 2003 6:24 pm
Posts: 3090
Website: http://www.linode.com/
Location: Galloway, NJ
"sleep 30" will sleep for 30 seconds. Is that what you're looking for?

-Chris


Top
   
 Post subject:
PostPosted: Mon Mar 15, 2004 7:32 pm 
Offline
Senior Newbie
User avatar

Joined: Wed Oct 15, 2003 12:49 pm
Posts: 14
I thikn so will give that a try, thank you :)

Regards,
Garry

_________________
Regards,

Garry


Top
   
 Post subject: At / Sleep
PostPosted: Wed Mar 17, 2004 4:16 pm 
Offline
Senior Member
User avatar

Joined: Wed Mar 17, 2004 4:11 pm
Posts: 554
Website: http://www.unixtastic.com
Location: Europe
If you are running atd:
at now + X mins jobname

With sleep:
sleep $(( mins * 60 )) ; jobname

After another process has finished:
wait otherpid ; jobname


Top
   
 Post subject: RC scripts
PostPosted: Wed Mar 17, 2004 4:17 pm 
Offline
Senior Member
User avatar

Joined: Wed Mar 17, 2004 4:11 pm
Posts: 554
Website: http://www.unixtastic.com
Location: Europe
Or even better add a RC script with a sequence number higher than the others...


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group