in reply to cgi wrapper??

I like to suggest a different method that does not involve cgi wrappers and if (I hope this true) your support environment is *nix it is simple.

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
    That may work for me, but i will have to send a username and password in clear text over the wire. Not sure if that will fly with our network security team. but i will check that out as well. Thanks, mitd.
    Ray
      Ray,

      So assuming from your response you are in a *NIX environment, right? So Net::Telnet will 'technically' work but your Security folks will balk at 'plan-text' id/pw's.

      So I am a little confused since you have stated no SSH, how do your security folks provide SECURE access to the remote machines?

      mitd-Made in the Dark
      'My favourite colour appears to be grey.'