Issue with Get command
I have added this little ultra easy script to an automation software
open sftp://user:@Dpw@ipadress
get path_ofthemachine_ihave_connected path_local_machine
exit
I have got two problems:
The first one is, even downloading the files and putting them in the correct folder, log tells me this:
"The system cannot find the path specified."
I could survive with that whenever i got the files but,
the problem comes when, for one reason or another, the automation makes the call to my script more than once and sftp ask for feedback from the user:
Choose, if you want to overwrite the file or skip this transfer and keep existing file.
New: 287 bytes, 11/23/2015 1:44:53 PM
Existing: 287 bytes, 11/23/2015 1:44:53 PM
(Y)es, (N)o, (C)ancel, Yes to A(l)l, N(o) to All, A(p)pend, New na(m)e, Ne(w)er only: Cancel
I think for this reason, the program gets stucked and tries to make calls forever.
Ive also tried to use this switch:
get -neweronly path_remote_machine path_local_machine
Also with no success. It says that -neweronly is not a recognized switch.
Did you face this issue before?
Does anyone have some solution or tip?
Thanks in advance,
rain
open sftp://user:@Dpw@ipadress
get path_ofthemachine_ihave_connected path_local_machine
exit
I have got two problems:
The first one is, even downloading the files and putting them in the correct folder, log tells me this:
"The system cannot find the path specified."
I could survive with that whenever i got the files but,
the problem comes when, for one reason or another, the automation makes the call to my script more than once and sftp ask for feedback from the user:
Choose, if you want to overwrite the file or skip this transfer and keep existing file.
New: 287 bytes, 11/23/2015 1:44:53 PM
Existing: 287 bytes, 11/23/2015 1:44:53 PM
(Y)es, (N)o, (C)ancel, Yes to A(l)l, N(o) to All, A(p)pend, New na(m)e, Ne(w)er only: Cancel
I think for this reason, the program gets stucked and tries to make calls forever.
Ive also tried to use this switch:
get -neweronly path_remote_machine path_local_machine
Also with no success. It says that -neweronly is not a recognized switch.
Did you face this issue before?
Does anyone have some solution or tip?
Thanks in advance,
rain