On Friday, April 5, 2002, at 05:36 , Alex Read wrote:

> I would like my perl script to login to a different machine and then
> execute the rest of the script on that machine.  I'm working in a
> UNIX/LINUX environment.  Can anyone point me in the right direction?
> Thanks

p1: the trick you are looking for is really an ssh2 type
or rsh type - where you invoke a remote shell on a far
machine. I personally would advocate the SSH2 trick.

p2: your basic requirement of course is that the same script
needs to be installed on all of the machines that you plan to
connect to - and best if it is in the same place. One trick
of course is to have it in a commonly mounted file system....

p3: in

http://www.wetware.com/drieux/src/unix/perl/OK.UglyCode.txt

look at the dtk_cmd_line function for a way to do the 'system'
style invokation of ssh2 - and it expects to find the $progname
in the '$ENV{'PATH'}' on the remote machine.

This of course provides the 'you have to still validate by hand'
level of security. The alternative is to 'embed' the login user
and passwd on a machine by machine bases - and that would of
course require you to worry about how to get that into and
out of encryption so that you don't 'hand out the passwd' in
plain text and all....

ciao
drieux

---


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

Reply via email to