Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to capture back ground process's success 1

Status
Not open for further replies.

srishan

MIS
Oct 29, 2002
55
US
If we wrap pl/sql programs in UNIX one after another, want them to run in back ground. Want to check for the status of one program for successful completion before kicking the next pl/sql program. How can we do this in UNIX?

How to check background process's exit condition before we start an new process?

Your infor is appreciated.

thx,
srishan
 
I would write a script that checks &quot;ps -ef | grep <process name> and write an if statement that states if it is exists, sleep for 10 seconds and retry.
 
Hi

The command

echo $?

gives you the exit code of the previous commnd. So perhaps you could put something like the echo command inside an IF loop.

Kind Regards
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top