Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

Re: WinSCP_log (ECommand) Error changing directory

Does the directory /root/project/v3/VARIABLE exist on the server?
alexbor

WinSCP_log (ECommand) Error changing directory

on the other server script work

but on that server don't work





script

option confirm off
option batch continue
open sftp://root:xxxxx@xxxxxxx
cd project/v3/VARIABLE
get MachineStates.txt E:\ROBI\Devices\ATP121\Status\
close
exit


log file

2009-08-10 19:03:09.688 Using SFTP protocol.
. 2009-08-10 19:03:09.688 Doing startup conversation with host.
> 2009-08-10 19:03:09.688 Type: SSH_FXP_INIT, Size: 5, Number: -1
< 2009-08-10 19:03:09.735 Type: SSH_FXP_VERSION, Size: 5, Number: -1
. 2009-08-10 19:03:09.735 SFTP version 3 negotiated.
. 2009-08-10 19:03:09.735 We believe the server has signed timestamps bug
. 2009-08-10 19:03:09.735 We will use UTF-8 strings for status messages only
. 2009-08-10 19:03:09.735 Limiting packet size to OpenSSH sftp-server limit of 262148 bytes
. 2009-08-10 19:03:09.735 Getting current directory name.
. 2009-08-10 19:03:09.735 Getting real path for '.'
> 2009-08-10 19:03:09.735 Type: SSH_FXP_REALPATH, Size: 10, Number: 16
< 2009-08-10 19:03:09.766 Type: SSH_FXP_NAME, Size: 31, Number: 16
. 2009-08-10 19:03:09.766 Real path is '/root'
. 2009-08-10 19:03:09.766 Startup conversation with host finished.
. 2009-08-10 19:03:09.782 Changing directory to "project/v3/VARIABLE".
. 2009-08-10 19:03:09.782 Getting real path for '/root/project/v3/VARIABLE'
> 2009-08-10 19:03:09.782 Type: SSH_FXP_REALPATH, Size: 34, Number: 272
< 2009-08-10 19:03:09.813 Type: SSH_FXP_STATUS, Size: 29, Number: 272
< 2009-08-10 19:03:09.813 Status/error code: 2, Message: 272, Server: No such file, Language:
* 2009-08-10 19:03:09.813 (ECommand) Error changing directory to 'project/v3/VARIABLE'.
* 2009-08-10 19:03:09.813 Cannot get real path for '/root/project/v3/VARIABLE'.
* 2009-08-10 19:03:09.813 No such file or directory.
* 2009-08-10 19:03:09.813 Error code: 2
* 2009-08-10 19:03:09.813 Error message from server: No such file
* 2009-08-10 19:03:09.813 Request code: 16
. 2009-08-10 19:03:09.813 Listing file "MachineStates.txt".
> 2009-08-10 19:03:09.813 Type: SSH_FXP_LSTAT, Size: 32, Number: 519
< 2009-08-10 19:03:09.860 Type: SSH_FXP_STATUS, Size: 29, Number: 519
< 2009-08-10 19:03:09.860 Status/error code: 2, Message: 519, Server: No such file, Language:
. 2009-08-10 19:03:09.860 Closing connection.