[wplug] perl help

Mike Kuentz (2) JunkEmail at rapidigm.com
Mon Feb 16 09:06:48 EST 2004


have you tried Net::SSH from CPAN?  Make's life a little easier to work
wit SSH out of perl.

Mike

> -----Original Message-----
> From: wplug-admin at wplug.org [mailto:wplug-admin at wplug.org] On 
> Behalf Of Ryan W. Frenz
> Sent: Sunday, February 15, 2004 11:27 AM
> To: wplug at wplug.org
> Subject: [wplug] perl help
> 
> 
> Sorry if this is an easy question -- I'm relatively new to perl.  I'm 
> trying to launch ssh from a perl script.  I can launch it fine, but I 
> need the user to be able to enter password when ssh prompts for it.  
> Right now, I'm just getting the prompt for password but then 
> "permission 
> denied" instantly.  I guess I need perl to allow the user to 
> enter the 
> password, then regain control after that.  Any ideas?  I hope the 
> question made sense.  I've attached the script...
> 
> Thanks,
> Ryan
> 
> # ! perl
> 
> $prog = $ARGV[0]
> $machine = $ARGV[1];
> $label = $ARGV[2];
> 
> `ssh $machine $prog`
> 
> open(FD, ">>file");
> print FD "ssh $machine $prog";
> _______________________________________________
> wplug mailing list
> wplug at wplug.org
> http://www.wplug.org/mailman/listinfo/wplug
> 



More information about the wplug mailing list