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 do I know all processes are finished? Carla Shell Programming and Scripting 2 04-28-2008 09:29 AM
** Finished ** Syncid.rc syndex Shell Programming and Scripting 1 07-10-2007 07:18 AM
background job finished notification nkeller UNIX for Dummies Questions & Answers 4 03-08-2007 09:41 AM
Has my script finished? Bab00shka UNIX for Dummies Questions & Answers 5 07-23-2002 06:39 AM
Finding Out When A Process Has Finished? 1cuervo UNIX for Advanced & Expert Users 5 11-02-2001 02:59 AM

Closed Thread
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 01-03-2008
Registered User
 

Join Date: Jan 2008
Posts: 12
How to know a executable has finished his task

Hi frnds,

I want to know is there a way by which we can know that a C++ executable has finished its job in shell script.

My task is as follows:

1.Shell script calls a executable

2.Executable executes and performs its job of generating some reports.

Now i want my shell script to detect this that is C++ executable has completed its job so that shell script can send the reports as attachement.

Please help me urgently on this
Forum Sponsor
  #2  
Old 01-03-2008
Registered User
 

Join Date: Oct 2006
Posts: 14
Perform a simple

ps -aef |grep [process name] |grep -v grep

If it doesn't return any data, process is finished.
  #3  
Old 01-03-2008
Registered User
 

Join Date: Jan 2007
Posts: 2,965
What is the difference between this and How to check succeesfull finish of a executable from the sheel script?
  #4  
Old 01-03-2008
Registered User
 

Join Date: Jan 2008
Posts: 12
Wat this done means
  #5  
Old 01-03-2008
vino's Avatar
Supporter (in vino veritas)
 

Join Date: Feb 2005
Location: Bangalore, India
Posts: 2,699
Duplicate thread. That is against the rules. Use How to check succeesfull finish of a executable from the sheel script
Google The UNIX and Linux Forums
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 07:20 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