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.
get_LOGS("172.25.70.221","abc","abc123","/x01/INT/abc/vim",$GETL); print "File \"$GETL\" downloaded to ==> \"$LOGS_LOCAL +_PATH$TODAY\"\n\n";
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;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Perl sftp behavior when there are no files in the share
by soonix (Chancellor) on Mar 21, 2013 at 22:03 UTC | |
by Bindo (Acolyte) on Mar 22, 2013 at 05:53 UTC | |
by Bindo (Acolyte) on Mar 27, 2013 at 08:39 UTC | |
by soonix (Chancellor) on Mar 27, 2013 at 14:47 UTC | |
by Bindo (Acolyte) on Mar 27, 2013 at 15:29 UTC | |
by soonix (Chancellor) on Mar 27, 2013 at 18:41 UTC | |
|