[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] Force detachment of a process?
- Subject: [ale] Force detachment of a process?
- From: ttlchaos at randomc.com (Eric Webb)
- Date: Sun, 22 Dec 2002 23:00:26 +0000
Let's say that program A calls korn script B. Korn script B does some
checking, and optionally backgrounds perl script C ("program.pl > logfile
&"). It appears that korn script B completes right away as it should,
leaving perl script C running in the background. Unfortunately, control is
never passed back to program A until perl script C exits.
While perl script C is being backgrounded, it isn't being detached from the
parent. How can I force this? The only idea I have is for korn script B to
nohup background perl script C, then look up it's own process # and kill
itself. Would that sever the connection of child C back to parent A?
This is being done on AIX, it it matters, though I presume the principles
work everywhere.
-E.
_______________________________________________
Ale mailing list
Ale at ale.org
http://www.ale.org/mailman/listinfo/ale