in reply to Re: qx to call command doesn't work via CGI
in thread qx to call command doesn't work via CGI
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;
|
|---|