Example
unless (defined($child_pid=fork())) {die "Can not fork.\n"}; if ($child_pid) { # parent system "$app1" || die "Could not launch target\n"; exit; } else { # child system "$app2" || die "Could not launch target\n"; exit; }
In reply to launch and then exit out of app by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |