Chart-XMGR
view release on metacpan or search on metacpan
if ($pid = fork) {
# Parent
# Open pipe
$xmgr->{Pipe} = new IO::File;
$xmgr->{Pipe}->open("> ". $xmgr->npipe) or
die "Can't open named pipe: $!";
} elsif (defined $pid) {
# Child
exec 'xmgr -noask -npipe '.$xmgr->npipe . ' -timer 900';
} else {
die "Can't fork: $!\n";
}
} else {
# An anonymous pipe
$xmgr->{Pipe} = new IO::Pipe;
$xmgr->{Pipe}->writer('xmgr -pipe -noask');
( run in 1.021 second using v1.01-cache-2.11-cpan-49f99fa48dc )