Quote:
Originally posted by sathyaram_s
Completion on background process ...
pooja, Can you elaborate a bit on what you need
Cheers
Sathyaram
|
Hello Sathyaram,
My requirement is, i am sending something for background processing and dependent on its completion i wud like to proceed further.
At present what i am doing is , i am taking the process ids of background processes intiated in a file .Then using this command,
var=ps -ef | egrep -c -f <file which contains process ids for background proceses>
and checking till var != 0
(I am sure there will be much better ways to do this.)
Here i am facing a problem,
egrep is doing a pattern searching , i want to find full word not the part of word.
Also, if there is better way to do this , please tell me
thanx in advance.
--Pooja