![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Passing environment variables to parent shells | konndanley | UNIX for Dummies Questions & Answers | 3 | 08-04-2007 05:15 PM |
| Killing parent shells from subshells (KSH) | rockysfr | Shell Programming and Scripting | 4 | 06-28-2007 07:53 PM |
| Parent/Child Processes | yoi2hot4ya | Shell Programming and Scripting | 2 | 05-31-2006 01:27 PM |
| kill parent and child | larry | UNIX for Dummies Questions & Answers | 4 | 01-12-2003 12:18 AM |
| what are parent and child processes all about? | xyyz | UNIX for Dummies Questions & Answers | 1 | 04-26-2002 03:53 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
how to make a parent wait on a child shells running in background?
Hi
I have a shell script A which calls another 10 shell scripts which run in background. How do i make the parent script wait for the child scripts complete, or in other words, i must be able to do a grep of parent script to find out if the child scripts are still running. My Code: nohup a.sh > /dev/null 2>&1 Code in a.sh: nohup b.sh > /opt/portal/6.5/apps/b.txt & nohup c.sh > /opt/portal/6.5/apps/c.txt & nohup d.sh > /opt/portal/6.5/apps/d.txt & nohup e.sh > /opt/portal/6.5/apps/e.txt & nohup f.sh > /opt/portal/6.5/apps/f.txt & nohup g.sh > /opt/portal/6.5/apps/g.txt & i try to grep: ps -ef|grep a.sh|grep -v grep I must be able to do this successfully... Kindly help.. Regards, Albert |