The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
waiting mpang_ Shell Programming and Scripting 1 10-03-2007 10:52 PM
Process(s) ID waiting on IO? Citrus143 UNIX for Advanced & Expert Users 9 03-29-2007 01:28 PM
browser waiting munna_dude UNIX for Advanced & Expert Users 1 02-10-2007 10:38 PM
Looping and waiting mikie Shell Programming and Scripting 3 11-29-2006 02:04 AM
waiting process shukla_chanchal Linux 2 11-03-2005 04:00 PM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 06-15-2007
Registered User
 

Join Date: Nov 2006
Posts: 23
Waiting between commands

Hello,

Taking my scripting one step farther, I want to run a number of commands one after the other, but the system should wait between commands. How do I do this? Do I use the /wait command, or is it a function wait()?

Code:
rsync command
/wait
tar command
/wait
move to a new folder
/wait
tidy up and delete existing files
exit
And I would wrap that all up into a script (see my previous thread on running a command as a script.

So /wait or wait(); ?

And also, does it make a difference what system the script is run on? My webhost uses proper CentOS linux, but when I run the same on my desktop (or the tidy part of the script) it's a cygwin port on Windows XP.

Thanks.

H.
Reply With Quote
Forum Sponsor
  #2  
Old 06-16-2007
Registered User
 

Join Date: May 2006
Posts: 101
maybe you should try ''man sleep'' or "man usleep"
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 09:35 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0