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
In reply to Re: Process autorestart after 10seconds!
by Zaxo
in thread Process autorestart after 10seconds!
by KiLLjoY aka SerZH
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |