in reply to How to execute external script from CGI
Hi,
"no luck" isn't "diagnostic" ;)
use Capture::Tiny qw/ capture /; sub Download { my @cmd = ( 'wget', '--help' ); my( $stdout, $stderr, $exit ) = capture { system { $cmd[0] } @cmd; };; die "( $stdout, $stderr, $exit )"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to execute external script from CGI
by vskatusa (Acolyte) on May 22, 2020 at 18:41 UTC | |
by hippo (Archbishop) on May 23, 2020 at 07:05 UTC |