Apage error_log shows " defined at samba.pl line...". Apache runs as the same users I'm running the command line example as. I checked this in the httpd.conf and with the whoami command.my $command = '/usr/sfw/bin/smbclient -L rest of command goes here +'; my $output = qx{$command}; if (defined $output){ warn "$output defined"; }else{ warn "$output undefined"; } warn Dumper $output;
In reply to Re^2: qx to call command doesn't work via CGI
by Anonymous Monk
in thread qx to call command doesn't work via CGI
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |