Re: [Ssh-sftp-perl-users] Net::SSH help needed
Brought to you by:
dbrobins
From: Mark A. F. <mar...@ea...> - 2004-10-21 16:19:52
|
<HEAD> <META content="MSHTML 6.00.2800.1458" name=GENERATOR></HEAD> <BODY> <DIV>You need to wrap all your ssh method calls inside an eval. Search the archive. Examples have been posted by myself a couple times.</DIV> <DIV> </DIV> <DIV>For what it's worth: I've been using the Perl Expect.pm module (on CPAN) to drive the native OpenSSH sftp binary. Interrogate results, etc. It works nicely. Not sure how it would work with the ssh binary (how it would handle a shell session.)<BR></DIV> <DIV>Mark</DIV> <DIV><BR><BR>-----Original Message----- <BR>From: "MUTNURU, RISHI KAUNDINYA (STSD)" <MR...@HP...><BR>Sent: Oct 21, 2004 5:45 AM <BR>To: ssh...@li..., per...@li... <BR>Subject: [Ssh-sftp-perl-users] Net::SSH help needed <BR><BR></DIV><ZZZHTML><ZZZHEAD><ZZZMETA content="text/ZZZhtml; charset=us-ascii" http-equiv="Content-Type"><ZZZMETA content="MSHTML 6.00.2800.1458" name="GENERATOR"> <STYLE></STYLE> </ZZZHEAD><ZZZBODY bgColor="#ffffff"> <DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN class=781394212-21102004>Hi,</SPAN></FONT></DIV> <DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN class=781394212-21102004></SPAN></FONT> </DIV><FONT face=Arial color=#0000ff size=2></FONT> <DIV>The Net::SSH::Perl module has by default the Die mode and if any error occur while establishing SSH connection,it terminates the program and comes out of the program.</DIV> <DIV><SPAN class=781394212-21102004>According to my requirements, the program should not die even though the login fails. Can anybody suggest how to get rid of this issue.</SPAN></DIV> <DIV><SPAN class=781394212-21102004></SPAN> </DIV> <DIV><SPAN class=781394212-21102004><FONT face=Arial color=#0000ff size=2>Regards,</FONT></SPAN></DIV> <DIV><SPAN class=781394212-21102004><FONT face=Arial color=#0000ff size=2>Rishi</FONT></SPAN></DIV> <DIV><SPAN class=781394212-21102004><FONT face=Arial color=#0000ff size=2></FONT></SPAN> </DIV> <DIV><BR></DIV> <BLOCKQUOTE dir=ltr style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px"><FONT face=Arial color=#0000ff size=2></FONT> </BLOCKQUOTE></ZZZBODY></ZZZHTML></BODY> |