LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:04 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration