The UNIX and Linux Forums  

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 here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to pass two or more parameters to the main in shell script pinky UNIX for Dummies Questions & Answers 0 10-12-2007 08:54 AM
Return value (int) from main to calling shell flounder High Level Programming 3 09-25-2006 07:14 PM
Problem starting a script from a 'main'-script Rakker UNIX for Dummies Questions & Answers 3 06-28-2005 05:12 AM
calling dos2unix on shell script from within the script vino Shell Programming and Scripting 4 04-08-2005 12:38 AM
c++ calling main() function norsk hedensk High Level Programming 3 01-22-2003 04:28 PM

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-07-2005
Registered User
 

Join Date: Aug 2005
Posts: 6
Exclamation Calling subscript but sleep halts the main script

Ok, I have written a main script which checks a directory contents every 30 secs then sleeps. The subscript does a usermod, if the user is logged on, it sleeps for 30 secs and then trys again over and over again.

Here's the problem. when the subscript is called ./subscript.sh or exec subscript.sh and sleeps, it halts the main script until it finishes. How can I call the subscript without having the main care what happens to it and have it contain to run?
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 09-12-2005
Registered User
 

Join Date: Aug 2005
Posts: 6
bah, nevermind i just tossed it into the background using &
Reply With Quote
Google UNIX.COM
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 02:42 AM.


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

Content Relevant URLs by vBSEO 3.2.0