Error code 2
I saw a similar topic that was asking about the status/error code 2, but couldn't see an answer.
I'm transferring files using a script, and catching the exit code of the application. The exit code is indicating to me that there was an error, and when I check the logs, the only Status/error code that is not 0, is 2.
. 2010-07-29 18:37:59.866 Copying 1 files/directories to remote directory "/test" . 2010-07-29 18:37:59.866 PrTime: Yes; PrRO: No; Rght: rw-r--r--; PrR: No (No); FnCs: N; RIC: 01; Resume: S (102400); CalcS: No; Mask: . 2010-07-29 18:37:59.866 TM: M; ClAr: No; CPS: 0; ExclM(No): . 2010-07-29 18:37:59.866 AscM: *.*html; *.htm; *.txt; *.php; *.php3; *.cgi; *.c; *.cpp; *.h; *.pas; *.bas; *.tex; *.pl; .htaccess; *.xtml; *.css; *.cfg; *.ini; *.sh; *.xml . 2010-07-29 18:37:59.866 File: "D:\logs\MktData\20100729\5162318\filename" . 2010-07-29 18:37:59.882 Copying "D:\logs\MktData\20100729\5162318\filename" to remote directory started. . 2010-07-29 18:37:59.882 Binary transfer mode selected. . 2010-07-29 18:37:59.882 Checking existence of file. > 2010-07-29 18:37:59.882 Type: SSH_FXP_LSTAT, Size: 65, Number: 220679 < 2010-07-29 18:38:02.522 Type: SSH_FXP_STATUS, Size: 29, Number: 220679 < 2010-07-29 18:38:02.522 Status/error code: 2 . 2010-07-29 18:38:02.522 Checking existence of partially transfered file. > 2010-07-29 18:38:02.522 Type: SSH_FXP_LSTAT, Size: 74, Number: 220935 < 2010-07-29 18:38:02.725 Type: SSH_FXP_STATUS, Size: 29, Number: 220935 < 2010-07-29 18:38:02.725 Status/error code: 2 . 2010-07-29 18:38:02.725 Opening remote file. > 2010-07-29 18:38:02.725 Type: SSH_FXP_OPEN, Size: 90, Number: 221187 < 2010-07-29 18:38:04.960 Type: SSH_FXP_HANDLE, Size: 13, Number: 221187 > 2010-07-29 18:38:04.960 Type: SSH_FXP_WRITE, Size: 4121, Number: 221702 . 2010-07-29 18:38:04.975 29 skipped SSH_FXP_WRITE, SSH_FXP_READ, SSH_FXP_DATA and SSH_FXP_STATUS packets. > 2010-07-29 18:38:04.975 Type: SSH_FXP_CLOSE, Size: 13, Number: 225796 < 2010-07-29 18:38:04.991 Type: SSH_FXP_STATUS, Size: 24, Number: 225286 < 2010-07-29 18:38:04.991 Type: SSH_FXP_STATUS, Size: 24, Number: 225542 < 2010-07-29 18:38:05.147 Type: SSH_FXP_STATUS, Size: 24, Number: 225796 < 2010-07-29 18:38:05.210 Status/error code: 0 > 2010-07-29 18:38:05.210 Type: SSH_FXP_RENAME, Size: 134, Number: 226066 < 2010-07-29 18:38:11.116 Type: SSH_FXP_STATUS, Size: 24, Number: 226066 < 2010-07-29 18:38:11.116 Status/error code: 0 > 2010-07-29 18:38:11.116 Type: SSH_FXP_SETSTAT, Size: 77, Number: 221449 < 2010-07-29 18:38:11.897 Type: SSH_FXP_STATUS, Size: 24, Number: 221449 < 2010-07-29 18:38:11.897 Status/error code: 0
What does the error mean?
Has the file transferred successfully in the end?
Is it possible to get a successful exit code even if this error occurs if it means the file was transferred successfully?
Thanks.