Re: [webmin-devel] New headache

"Jamie Cameron" <[email protected]> Mon, 10 Jan 2011 14:15:18 -0800 (PST)
Newsgroups gmane.comp.web.webmin.devel
Message-ID <[email protected]>
On 10/Jan/2011 13:07 Jeffrey Kesselman <[email protected]> wrote ..
> This runs, but both $result and $err have nothing in them when I print them.
> 
> Why?  This is on OpenSolaris:
> 
> sub get_reddwarf_status
> {
>    my $result;
>    my $err;
>    execute_command("echo test",undef,$result,$err);
>    print STDERR "result: ",$result,"\n";
>    print STDERR "err: ",$err,"\n";
>    return $result;
> }

You need to pass in references, like :

execute_command("echo test",undef,\$result,\$err);

 - Jamie

------------------------------------------------------------------------------
Gaining the trust of online customers is vital for the success of any company
that requires sensitive data to be transmitted over the Web.   Learn how to 
best implement a security strategy that keeps consumers' information secure 
and instills the confidence they need to proceed with transactions.
http://p.sf.net/sfu/oracle-sfdevnl 
-
Forwarded by the Webmin development list at [email protected]
To remove yourself from this list, go to
http://lists.sourceforge.net/lists/listinfo/webadmin-devel