fork and exec is definitely the way to go. As mentioned, perlipc will tell you how. Here's a basic fork/exec to get you going:
my @command = qw( /mevs/$version/bin/mevs /mevs/$version/data/config_data/mevs2.cfg online ); $SIG{CHLD} = 'IGNORE'; defined(my $pid = fork) or die "Can't fork ($!)"; if ( $pid ) { # child exec @command or die "Can't exec ($!)"; } # parent continues... print "new pid: [$pid]\n"; # print pid
In reply to Re: Creating External Processes without losing control
by edan
in thread Creating External Processes without losing control
by gerry
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |