Short of watching for a PID to disappear within a loop, is there a good
way of waiting for a subprocess of a subprocess? Unix wait only works on
immediate subprocesses.
Thanks, Dave.
Thanks, Dave.
Of course, it has to be within the same process group as the script.
-Brian
xterm -e top&
ps -ef|grep top
#this returns two processes, one for the xterm (the immediate sub
process)
#and one for "top"
wait top_pid #where top_pid is the pid of the "top" process
Am I not using wait properly?
Thanks, Dave.
Not sure why you would want to do this tho - why would you want to call a
program that calls another program, but only be interested when the second
program terminates? Why not just call the second program from the shell? -
can you elaborate?
Cheers,
S.
Quote:> If I execute the following series of commands, the final "wait" doesn't
> wait for the PID of the "top" process. It immediatly returns.
> xterm -e top&
> ps -ef|grep top
> #this returns two processes, one for the xterm (the immediate sub
> process)
> #and one for "top"
> wait top_pid #where top_pid is the pid of the "top" process
> Am I not using wait properly?
> Thanks, Dave.
1. Sub-sub-sub-sub-sub subdomains?
No, it's not a typo.
My question is quite simple: I've read on how to set up subdomains on
apache using the wildcard mask, but what about subdomains several
levels deep?
Do I need to create one DNS entry for every "subdomain level" so to
speak?.
Lets say I currently have... whatever... "cool.com" (then I'd sell it
;-). No I mean... lets pretend I have something like "cool.com". With
"traditional" apache wildcard subdomains setup and the right entries
on bind, I can have "anything.cool.com" "a.cool.com" "b.cool.com", etc
all pointing to the same web page.
But what if I want to do a hostname in the form
"http://This.bind.is.really.cool.com"? That's 4 levels of
subdomains.
Can someone explain me how to setup something like this, both form the
apache and bind sides??
Regards
Willy
PS: I'm posting this same question to the bind newsgroup since this
involves setting up correctly both daemons.
3. How to Kill Process and Its sub-process and its sub-process??
5. How to Kill a process and its sub-process and its sub-process at a time..
7. NIS+ Sub-Domain client: should it be a member of the master domain AND sub-domain?
8. dhcp lan ; Fedora without ifconfig
9. cdrom.com: slack 7/next/sub/sub.next...?
10. Home sub dir of it's own sub?
11. How do I wait on sub shells
13. I/O to sub processes - HELP