POSIX::RT::Spawn - Perl interface to the posix_spawn function
use POSIX::RT::Spawn; my $pid = spawn 'command', 'arg1', 'arg2' or die "failed to spawn: $!"; waitpid $pid, 0; die "command failed with status: ", $?>>8 if $?;
POSIX::RT::Spawn module provides an interface to the posix_spawn(2) function for creating new processes.
$pid = spawn 'echo', 'hello world'
Does exactly the same thing as
system LIST, except the parent process does not wait for the child process to exit. Also, the return value is the child pid on success, or false on failure.
See "system" in perlfunc for more details.
Please report any bugs or feature requests to http://rt.cpan.org/Public/Bug/Report.html?Queue=POSIX-RT-Spawn. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
You can find documentation for this module with the perldoc command.
You can also look for information at:
Copyright (C) 2011-2012 gray <gray at cpan.org>, all rights reserved.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
gray, <gray at cpan.org>