0
1
I know there is a command (reput) which we can use if a file transfer fails half way through. But how we can find out whether a file transfer fails half way through or not uisng psftp. Is there any command for this.
I am executing psftp.exe from a web application. This web application will pass a list of files to move to the server. And I can achieve this by using mput commands in the psftp. But ,During this file transfer , how can I find out which file transfer failed in half way through and accordingly i can make use of reput command to continue the file transfer from where it left off.
What web application? There's a native SFTP library for most languages. Use that, instead of running an external console application for the transfer. – Martin Prikryl – 2017-11-16T08:47:10.647
From ColdFusion. But , I think that doesnt matter right?? , since my question is how we can find out whether a file transfer fails half way through or not uisng psftp/pscp – user3742125 – 2017-11-16T09:09:53.713
All that psftp/pscp tells you, is if a script went ok or not. You will never tell if it failed because a connection cannot be opened, source file does not exist, or is not readable, or target path does not exist, or is not writable, etc. Unless you try to parse the error message out of a log. While a library with a well defined API will tell you an exact reason. – Martin Prikryl – 2017-11-16T09:28:32.747
Also, you keep asking questions (using multiple accounts), without responding to answers you are getting here. – Martin Prikryl – 2017-11-16T09:30:39.593
thanks for your response. But , what you mean by "keep on asking questions"...Do you have any reference – user3742125 – 2017-11-16T11:13:40.823
1, 2, 3 – Martin Prikryl – 2017-11-16T11:21:05.123
okay..I couldnt recollect every thing..completely messed up with something. Sorry... Answered the second one. but not able to mark as answer the first and second – user3742125 – 2017-11-16T11:25:40.873
Because you have posted 3 using a different account. – Martin Prikryl – 2017-11-16T11:29:59.937
one last question . After that i will move this to chat. If there is no 100% in the pscp statistics then does it mean that file is not copied to remote server or copied to server but it is not fully transferred? – user3742125 – 2017-11-16T11:33:34.420
Let us continue this discussion in chat.
– user3742125 – 2017-11-16T13:00:43.053Copied to server but it is not fully transferred. – Martin Prikryl – 2017-11-16T13:44:48.520