ianw1974 Posted February 17, 2006 Report Share Posted February 17, 2006 What I want to do is get the script to start, but wait for 30 seconds. Then after this 30 seconds, to resume. How would I be able to do this? Eg (unfortunately not correct syntax, but you get the idea): wait 30 seconds then /etc/init.d/myservice start Quote Link to comment Share on other sites More sharing options...
jboy Posted February 17, 2006 Report Share Posted February 17, 2006 These might be of help. I'm not in linux right now, so I can't test it. Not sure if this after command is included in the Mandriva packages, but if not it's probably available somewhere. after command (reference 1) after command (reference 2) Quote Link to comment Share on other sites More sharing options...
Guest Hobbletoe Posted February 17, 2006 Report Share Posted February 17, 2006 Check out the sleep command. It is what you'll want to use. sleep 30 /etc/init.d/myservice start Quote Link to comment Share on other sites More sharing options...
ianw1974 Posted February 17, 2006 Author Report Share Posted February 17, 2006 The sleep command works a treat. Although I fine tuned it a bit more, so that I don't have to wait 30 seconds. I wasn't sure how long I needed. Seems I only need around 5-10 seconds max. Many thanks for that :D Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.