in reply to cgi wrapper??
Use Net::Telnet to programatically sign on and execute your script on the remote host.
Example:
use Net::Telnet (); #set up telnet session the prompt # can be tricky if not the same #on each machine but some #creative regex'ing should get you over tht hump $t = new Net::Telnet (Timeout => 2-, Prompt => '/bash\$ $/'); $t->open("your.remote.host.com"); $t->login($username, $passwd); @lines = $t->cmd("./your_remote_script.pl"); # returns any result or error lines print @lines;
I have used this approach in several fairly complex situations like compiling code on a machine that requires 3 hops through a firewall and returning results to me.
mitd-Made in the Dark
'My favourite colour appears to be grey.'
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: cgi wrapper??
by RayRay459 (Pilgrim) on Aug 28, 2001 at 20:23 UTC | |
by mitd (Curate) on Aug 29, 2001 at 00:57 UTC |