wait for 5 seconds in shell script | Unix Linux Forums | Shell Programming and Scripting

  Go Back    

Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

wait for 5 seconds in shell script

Shell Programming and Scripting

Closed Thread    
Thread Tools Search this Thread Display Modes
Old 08-30-2007
gopsman gopsman is offline
Registered User
Join Date: May 2007
Last Activity: 5 December 2007, 4:30 AM EST
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
wait for 5 seconds in shell script


how can i wait for 5 seconds inside my shell script? 'wait 5' command doesnot seem to be working?
Sponsored Links
Old 08-30-2007
vino's Avatar
vino vino is offline Forum Advisor  
Supporter (in vino veritas)
Join Date: Feb 2005
Last Activity: 9 April 2013, 8:19 AM EDT
Location: Sydney, Down Under
Posts: 2,847
Thanks: 0
Thanked 12 Times in 12 Posts
What exactly is the scenario. You can use sleep 10 to sleep for 10 seconds.
Sponsored Links
Old 08-30-2007
namishtiwari namishtiwari is offline Forum Advisor  
Registered User
Join Date: Aug 2007
Last Activity: 2 October 2012, 1:31 PM EDT
Location: Bangalore
Posts: 390
Thanks: 0
Thanked 0 Times in 0 Posts
use sleep command instead of wait.and the wait time you can put accordingly.

Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to Exit a shell script if no input is available for 10 seconds mkarthikeyan82 UNIX for Dummies Questions & Answers 3 04-26-2012 10:23 AM
execute the shell script per ten seconds AKB48 Shell Programming and Scripting 6 03-09-2012 09:15 AM
calling a shell script in background and wait using "wait" in while loop mihirvora16 Shell Programming and Scripting 2 12-26-2011 08:49 AM
Shell script runs fine in Solaris, in Linux hangs at wait command aksaravanan Shell Programming and Scripting 13 11-01-2010 11:40 AM
shell script that will automatically check if specifed user is log in or not, in 30 seconds gurmad Shell Programming and Scripting 2 11-27-2009 12:06 AM

All times are GMT -4. The time now is 12:40 AM.