Re: Forking and subshells - Keeping the parent active
- From: Grant <g_r_a_n_t_@xxxxxxxxxxx>
- Date: Sun, 29 Jun 2008 13:34:00 +1000
On Sat, 28 Jun 2008 21:30:51 -0500, Bob Bob <bob3bob3@xxxxxxxxxxxxxx> wrote:
I am finding this hard to find information on..
Running a bash script, that is setup to fork a subshell (also a bash script)
Want the parent to keep running while the child is doing its processing.
There is a trap in the parent script to make it sleep if the child runs
over time. The communication of this event is a simple "while -f
filename" in the parent that is setup by a "touch filename" at the start
of the child script and a subsequent "rm -f filename" at the end.
Not rocket science or anything!
Within the parent script the fork is simply;
sh childscript
That's not a fork!
within a for next loop
What is happening is that the parent stops until the child has finished.
The parent has a semi time critical role so this isnt so good!
How do you do this?
You ask in a suitable group, say comp.unix.shell ;)
Grant.
--
http://bugsplatter.mine.nu/
.
- References:
- Forking and subshells - Keeping the parent active
- From: Bob Bob
- Forking and subshells - Keeping the parent active
- Prev by Date: Forking and subshells - Keeping the parent active
- Next by Date: Re: Forking and subshells - Keeping the parent active
- Previous by thread: Forking and subshells - Keeping the parent active
- Next by thread: Re: Forking and subshells - Keeping the parent active
- Index(es):
Relevant Pages
|