Topic "Return Error Code 1 Help"

Author Message
trucker_bv

Guest


Can someone help me figure out why I am getting a return error code of 1? Running latest version on XP SP3 machine. Is it because of the timestamps error?

Brent

. 2010-12-07 08:10:43.880 --------------------------------------------------------------------------
. 2010-12-07 08:10:43.880 WinSCP Version 4.2.9 (Build 938) (OS 5.1.2600 Service Pack 3)
. 2010-12-07 08:10:43.896 Login time: Tuesday, December 07, 2010 8:10:43 AM
. 2010-12-07 08:10:43.896 --------------------------------------------------------------------------
. 2010-12-07 08:10:43.896 Session name: xxxx@xxxx.xxxxxxxxxxx.xxx.xxx
. 2010-12-07 08:10:43.912 Host name: xxxx.xxxxxxxxxxx.xxx.xxx (Port: 22)
. 2010-12-07 08:10:43.912 User name: xxxx (Password: Yes, Key file: No)
. 2010-12-07 08:10:43.912 Tunnel: No
. 2010-12-07 08:10:43.912 Transfer Protocol: SFTP
. 2010-12-07 08:10:43.912 Ping type: -, Ping interval: 30 sec; Timeout: 15 sec
. 2010-12-07 08:10:43.912 Proxy: none
. 2010-12-07 08:10:43.927 SSH protocol version: 2; Compression: No
. 2010-12-07 08:10:43.927 Bypass authentication: No
. 2010-12-07 08:10:43.927 Try agent: Yes; Agent forwarding: No; TIS/CryptoCard: No; KI: Yes; GSSAPI: No
. 2010-12-07 08:10:43.927 Ciphers: aes,blowfish,3des,WARN,arcfour,des; Ssh2DES: No
. 2010-12-07 08:10:43.927 SSH Bugs: -,-,-,-,-,-,-,-,-
. 2010-12-07 08:10:43.943 SFTP Bugs: -,-
. 2010-12-07 08:10:43.943 Return code variable: Autodetect; Lookup user groups: Yes
. 2010-12-07 08:10:43.943 Shell: default
. 2010-12-07 08:10:43.943 EOL: 0, UTF: 2
. 2010-12-07 08:10:43.943 Clear aliases: Yes, Unset nat.vars: Yes, Resolve symlinks: Yes
. 2010-12-07 08:10:43.943 LS: ls -la, Ign LS warn: Yes, Scp1 Comp: No
. 2010-12-07 08:10:43.959 Local directory: default, Remote directory: home, Update: No, Cache: Yes
. 2010-12-07 08:10:43.959 Cache directory changes: Yes, Permanent: Yes
. 2010-12-07 08:10:43.959 DST mode: 1
. 2010-12-07 08:10:43.959 --------------------------------------------------------------------------
. 2010-12-07 08:10:43.974 Looking up host "xxxx.xxxxxxxxxxx.xxx.xxx"
. 2010-12-07 08:10:43.974 Connecting to xxx.xx.xxx.xx port 22
. 2010-12-07 08:10:44.255 Server version: SSH-2.0-GXSSSHD_Comments
. 2010-12-07 08:10:44.255 We believe remote version has SSH-2 ignore bug
. 2010-12-07 08:10:44.255 Using SSH protocol version 2
. 2010-12-07 08:10:44.255 We claim version: SSH-2.0-WinSCP_release_4.2.9
. 2010-12-07 08:10:44.443 Using Diffie-Hellman with standard group "group14"
. 2010-12-07 08:10:44.443 Doing Diffie-Hellman key exchange with hash SHA-1
. 2010-12-07 08:10:44.990 Host key fingerprint is:
. 2010-12-07 08:10:45.005 ssh-rsa 1024 80:5a:4c:76:5e:53:d1:b8:1a:db:3f:e4:55:f7:81:a9
. 2010-12-07 08:10:45.005 Initialised AES-256 CBC client->server encryption
. 2010-12-07 08:10:45.005 Initialised HMAC-SHA1 client->server MAC algorithm
. 2010-12-07 08:10:45.021 Initialised AES-256 CBC server->client encryption
. 2010-12-07 08:10:45.021 Initialised HMAC-SHA1 server->client MAC algorithm
! 2010-12-07 08:10:45.349 Using username "xxxx".
. 2010-12-07 08:10:45.412 Prompt (6, SSH password, , &Password: )
. 2010-12-07 08:10:45.412 Using stored password.
. 2010-12-07 08:10:45.412 Sent password
. 2010-12-07 08:10:45.521 Access granted
. 2010-12-07 08:10:45.599 Opened channel for session
. 2010-12-07 08:10:46.005 Started a shell/command
. 2010-12-07 08:10:46.083 --------------------------------------------------------------------------
. 2010-12-07 08:10:46.083 Using SFTP protocol.
. 2010-12-07 08:10:46.099 Doing startup conversation with host.
> 2010-12-07 08:10:46.099 Type: SSH_FXP_INIT, Size: 5, Number: -1
< 2010-12-07 08:10:46.177 Type: SSH_FXP_VERSION, Size: 5, Number: -1
. 2010-12-07 08:10:46.177 SFTP version 3 negotiated.
. 2010-12-07 08:10:46.177 We believe the server has signed timestamps bug
. 2010-12-07 08:10:46.193 We will use UTF-8 strings for status messages only
. 2010-12-07 08:10:46.193 Getting current directory name.
. 2010-12-07 08:10:46.193 Getting real path for '.'
> 2010-12-07 08:10:46.208 Type: SSH_FXP_REALPATH, Size: 10, Number: 16
< 2010-12-07 08:10:46.255 Type: SSH_FXP_NAME, Size: 43, Number: 16
. 2010-12-07 08:10:46.255 Real path is '/xxxx'
. 2010-12-07 08:10:46.255 Startup conversation with host finished.
< 2010-12-07 08:10:46.255 Script: Active session: [1] xxxx@xxxx.xxxxxxxxxxx.xxx.com
> 2010-12-07 08:10:46.271 Script: cd /././POLLABLE
. 2010-12-07 08:10:46.271 Cached directory change via "/././POLLABLE" to "/xxxx/././POLLABLE".
. 2010-12-07 08:10:46.271 Getting current directory name.
< 2010-12-07 08:10:46.271 Script: /xxxx/././POLLABLE
> 2010-12-07 08:10:46.271 Script: get *
. 2010-12-07 08:10:46.287 Listing directory "/xxxx/././POLLABLE".
> 2010-12-07 08:10:46.287 Type: SSH_FXP_OPENDIR, Size: 27, Number: 267
< 2010-12-07 08:10:46.318 Type: SSH_FXP_HANDLE, Size: 27, Number: 267
> 2010-12-07 08:10:46.333 Type: SSH_FXP_READDIR, Size: 27, Number: 524
< 2010-12-07 08:10:46.396 Type: SSH_FXP_STATUS, Size: 45, Number: 524
< 2010-12-07 08:10:46.396 Status code: 1
. 2010-12-07 08:10:46.396 Listing file "/xxxx/././POLLABLE/..".
> 2010-12-07 08:10:46.396 Type: SSH_FXP_LSTAT, Size: 30, Number: 775
< 2010-12-07 08:10:46.458 Type: SSH_FXP_ATTRS, Size: 21, Number: 775
> 2010-12-07 08:10:46.458 Type: SSH_FXP_CLOSE, Size: 27, Number: 1028
> 2010-12-07 08:10:46.458 Script: exit
. 2010-12-07 08:10:46.474 Closing connection.
. 2010-12-07 08:10:46.474 Sending special code: 12
. 2010-12-07 08:10:46.474 Sent EOF message
Advertisements
Guest




I am connecting through a batch script with the following command.

%EDIDIR%\winscp.com -v /log="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxlog" /command "option batch on" "option batch abort" "open sftp://xxxx:xxxxxxxx@sftp.xxxxxxxxxxx.xxx.com:22" "cd /././POLLABLE" "get *" "exit"

Thanks in advance!
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24994
Location: Prague, Czechia
There's no reason your should get exit code 1. How do you check for the exit code?

Also read FAQ:
https://winscp.net/eng/docs/faq_exit_code

Btw, note that there's no -v switch.
_________________
Martin Prikryl
Guest




I will look into this information you provided. Thanks a lot. Brent
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License