ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> perl-win32-users
perl-win32-users
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

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved