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 > 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
shell scripting-processing multiple scripts RSC1985 Shell Programming and Scripting 2 07-06-2009 12:35 PM
Sh script to run multiple php scripts holyearth UNIX for Dummies Questions & Answers 1 12-30-2008 06:26 PM
Patterns and string processing in shell scripts iBot UNIX and Linux RSS News 0 12-26-2008 10:10 AM
1 script or multiple scripts?? - check files, run jobs jnanasakti Shell Programming and Scripting 6 11-05-2008 01:10 PM
Time based Processing of the Scripts krk_555 Shell Programming and Scripting 3 10-24-2007 08:48 PM

Reply
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 07-06-2009
RSC1985 RSC1985 is offline
Registered User
  
 

Join Date: Jun 2009
Posts: 25
Script Problem-Processing multiple scripts

Hi All,
I have four scripts to run.
My 1st script will make script2 and script3 to run. I am setting a cron job for this script1 to run continuously.
This script1 will check for 2 text files and based on the existance of those text files it will initiate the script2 and script3.

Now my doubt is that is there a way to know when the script2 finishes its processing and script3 finishes its processing?
Please help me with your ideas.
Thanks,
RSC1985
  #2 (permalink)  
Old 07-06-2009
zaxxon's Avatar
zaxxon zaxxon is offline Forum Staff  
Moderator
  
 

Join Date: Sep 2007
Location: Germany
Posts: 2,259
Script1 could check with ps for example if script2 or 3 are still running. Also you could let them write a pid file and check if it is not cleaned up/deleted or something or compare the Pid in the file with running processes where we are back at ps again.
  #3 (permalink)  
Old 07-06-2009
RSC1985 RSC1985 is offline
Registered User
  
 

Join Date: Jun 2009
Posts: 25
Thanks a lot for the prompt response i got the solution from your reply.
Reply

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 12:26 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