The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



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

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
wait ${!} risshanth Shell Programming and Scripting 2 06-06-2008 04:57 AM
About wait Puntino UNIX for Dummies Questions & Answers 5 04-27-2008 05:07 AM
Need to execute 2 scripts, wait, execute 2 more wait, till end of file halo98 Shell Programming and Scripting 1 08-01-2006 05:42 PM
86% CPU for wait big123456 UNIX for Advanced & Expert Users 3 11-04-2005 10:07 AM
Wait Command lesstjm Shell Programming and Scripting 1 03-28-2005 03:55 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 10-21-2002
ultraman ultraman is offline
Registered User
  
 

Join Date: Oct 2002
Posts: 1
Help with wait command

I have a script that runs numerous other scripts. I am using a wait command to try and get the calling script to wait for all process called to finish before proceeding.

Issues

How can I set wait to timeout IE a called program never terminates.

Alternatively how can I check the called process and then decide to kill them if they have gone past as set time reference. So the calling script can continue.

I am finding sometimes wait never terminates and other times it terminates prematurely.

Thanks


  #2 (permalink)  
Old 10-21-2002
Vishnu Vishnu is offline
Registered User
  
 

Join Date: Aug 2002
Location: Marlboro, MA
Posts: 114
are you trying to run all the scripts at once from the parent script, using & ? if you call the scripts one after the other, the shell waits for one script to finish before starting the next in the code, though you can run several scripts at once in the back ground using &.

post your script code.. that would help...
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 06:19 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0