in reply to Re: Perl sftp behavior when there are no files in the share
in thread Perl sftp behavior when there are no files in the share
Thank you sir Robotics
Even though it solves my problem mind you that I have a print statements just after when the sub "get_LOGS" is called.
print "File \"$GETL\" downloaded to ==> \"$LOGS_LOCAL
so the script return the following output
Connecting to the sftp share! Please wait....!
OK. On the share! Downloading the file "mmm"...................!
File does not seem to be present on the remote share. Please re-request..!!!
Couldn't stat remote file: No such fileFile "mmm" downloaded to ==> "/x02/abc/abcd/20130321"
Dont I need condition in my "get_LOGS" perhaps after the following line? Could you please try to write that for me?
$sftp->get($REM_FILE) or print "File does not seem to be present on the remote share. Please re-request..!!!\n" . $sftp->error\n;