Error in the Perl coding
by Jutu Subramanian, Srinivasan (Cognizant) other posts by this author
Sep 28 2004 12:12PM messages near this date
view in the new Beta List Site
XML Twig - perl
|
Module to retrieve Windows open Shared files
hai,
How to handle the error case for the following.
1. my $sftp= Net::SFTP-> new($hostname, %sftp_args) or $ftpstatus=1;
If the above said is unsuccessful, ftpstatus should be '1' . But, For my case,
If the username, password is wrong. It terminates the flow.
I m getting the error as 'Error: Permission denied at C:/Perl/site/lib/Net/SFTP.pm line 37'
I need to put the above statement in a loop to retry to establish the connection.
2. How SFTP code, SFTP status, SFTP message to be handled like FTP status,code and message
and SFTP close and SFTP binary mode to be handled?
Kindly reply if anybody knows this.
regards
Srinivasan.JS
This e-mail and any files transmitted with it are for the sole use of the intended recipient
(s) and may contain confidential and privileged information.
If you are not the intended recipient, please contact the sender by reply e-mail and destroy
all copies of the original message.
Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of
this email or any action taken in reliance on this e-mail is strictly
prohibited and may be unlawful.
Visit us at http://www.cognizant.com
_______________________________________________
Perl-Win32-Users mailing list
Perl-Win32-Users@[...].com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Thread:
Jutu Subramanian, Srinivasan (Cognizant)
Michael Twaddell
|