in reply to Re^2: Can I use Mojo::IOLoop::Subprocess for a non-blocking process?
in thread Can I use Mojo::IOLoop::Subprocess for a non-blocking process?
my $cmd = "cd /home/foo/$row->{'dir'} && " . "./$row->{'name'}.pl >some.out 2>some.err &"; my $result = system ( $cmd );
Potential shell injection vulnerability ($row->{'dir'} and $row->{'name'}). Consider using fork and exec manually.
Rough sketch:
Related: The problem of "the" default shell
Alexander
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Can I use Mojo::IOLoop::Subprocess for a non-blocking process?
by talexb (Chancellor) on Mar 31, 2019 at 19:04 UTC | |
|
Re^4: Can I use Mojo::IOLoop::Subprocess for a non-blocking process?
by Anonymous Monk on Mar 30, 2019 at 17:48 UTC |