Hi Martin,

This is because you didn't use the back-tick's :

$stuff=`rsh server2 -l user /bin/uname -X`;

(Don't mix them up with the <'> );
This will actualy execute the command, currently you only set a var.
Also system() and exec() could help you out.

Regs David
> 
> Hi everybody,
> 
> I don't know to solve this CGI problem:
> My CGI script run on the one server1 and I want get the result from another
> server2 like this:
> 
> #!/usr/local/bin/perl -w
> 
> $delay = 10;
> $date = "/bin/date";
> $stuff="rsh server2 -l user /bin/uname -X";
> print "Refresh: ", $delay, "\n";
> print "Content-type: text/plain", "\n\n";
> print `$date`;
> print `$stuff`;
> exit(0);
> 
> but problem is that this script not show the result on the HTML site.
> 
> Can you help me?
> 
> Martin Pestun
> Slovakia
> 
> 
> 
> -- 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to