in reply to Process autorestart after 10seconds!
The following sleeps 10 seconds and starts a new process, continuing from that point in the child process.
The child inherits the environment of the parent process, so you still have the original process's variables and their values.{ sleep 10; my $cpid = fork; exit 1 if not defined $cpid; exit 0 if $cpid; }
After Compline,
Zaxo
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Process autorestart after 10seconds!
by tachyon (Chancellor) on Aug 29, 2004 at 14:20 UTC | |
by Zaxo (Archbishop) on Aug 29, 2004 at 16:17 UTC |