in reply to Re^4: perl and sudo basic question
in thread perl and sudo basic question
I don't know how it happened, but the Sudo.pm is wrong, this code is wrong :
So I changed manually the code to return the correct info like this:%ret = { 'error' => (sprintf 'Error: the sudo binary "%s" is not set t +o group id = 0',$sudo) }; return \%ret;
Now it is giving me the correct error information. But the actual script seems to be not running. Here is the test.sh file info :$ret = { 'error' => (sprintf 'Error: the sudo binary "%s" is not set t +o group id = 0',$sudo) }; return $ret;
I haven't seen hello in the display OR the file /tmp/testfile has not been created. The "result" code is 256, what does it mean.echo hello echo something >> /tmp/testfile
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^6: perl and sudo basic question
by Tomte (Priest) on Jul 11, 2007 at 07:54 UTC |
In Section
Seekers of Perl Wisdom