Feel free to read perldoc -f fork, and look at some examples online. This is not really advanced perl, but it requires some attention.if (my $pid = fork) { # parent ($pid is process id of child) parent_function(); } else { # child child_function(); exit; }
In reply to Re^3: Running a process in the background
by tstock
in thread Running a process in the background
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |