LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 09-20-2004, 12:17 PM   #1
Sn7
LQ Newbie
 
Registered: May 2004
Posts: 25

Rep: Reputation: 15
waiting script


How can I write a linux script that will execute a command after say 5 seconds...

Example: After 5 seconds the command init6 is executed?

Thanks
 
Old 09-20-2004, 12:21 PM   #2
mikedeatworld
Member
 
Registered: Nov 2003
Location: Farmington Michigan
Distribution: UBUNTU - Slackware - SuSE 9.1 - Knoppix - Fedora
Posts: 828

Rep: Reputation: 30
http://linux.about.com/library/cmd/blcmdl_na.htm

try the command: time
 
Old 09-20-2004, 12:50 PM   #3
Sn7
LQ Newbie
 
Registered: May 2004
Posts: 25

Original Poster
Rep: Reputation: 15
Say I've got a scrript one.sh and two.sh, I want "one.sh" to be terminated after 10 seconds and script "two.sh" must carry on, is this possible?

Thanks
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Hard Drive Problems: timeout waiting for DMA; error waiting for DMA mintee Linux - Hardware 10 09-21-2007 05:06 AM
waiting for 10.2 YourMind Slackware 4 08-07-2005 06:57 PM
bash script suggestions for waiting for ssh -L iggymac Programming 4 03-22-2005 07:04 PM
Selectively 'waiting' in a shell script subu_s Programming 2 12-20-2004 05:57 AM
waiting for packages? rafc Debian 2 05-11-2004 08:26 AM


All times are GMT -5. The time now is 05:51 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration