Topic "Get Fails in scripting"

Author Message
jeffgrundy
[View user's profile]

Joined: 2005-10-20
Posts: 4
I have created the following script:

option batch on
option confirm off
open user2@192.168.1.1
cd /mnt/vg01/cfs/input/SentryTest
option transfer auto <== I tried transfer binary here too
ls
get examplefile.txt C:\
close


When run it gives the following output:

batch on
confirm off
Initialisation...
Searching for host...
Connecting to host...
Authenticating...
Using username "user2".
Authenticated.
Starting the session...
Reading remote directory...
Session started.
Active session: [1] user2@192.168.1.1
/mnt/vg01/cfs/input/SentryTest
transfer automatic
drwxr-xr-x 2 cfsxfer klop 4096 Oct 20 17:03:51 2005 .
drwxrwxr-x 3 root klop 16384 Oct 20 17:11:24 2005 ..
-rw-r--r-- 1 cfsxfer klop 121 Oct 14 15:34:37 2005 examplefile.txt
Host has not answered for 15 seconds.
Wait for another 15 seconds? Pressing 'Abort' button will close session.
(A)bort, (R)etry: Abort
Copying files from remote side failed.
Terminated by user.
Session 'user2@192.168.1.1' closed.
No session.
No session.
winscp>

I am able to transfer the file using the gui interface.

What am I doing wrong?
_________________
jeff
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24993
Location: Prague, Czechia
Can you post a log file?
_________________
Martin Prikryl
jeffgrundy
[View user's profile]

Joined: 2005-10-20
Posts: 4
. 2005-10-24 14:39:10.589 --------------------------------------------------------------------------
. 2005-10-24 14:39:10.589 WinSCP Version 3.7.6 (Build 306) (OS 5.1.2600 Service Pack 2)
. 2005-10-24 14:39:10.589 Login time: Monday, October 24, 2005 2:39:10 PM
. 2005-10-24 14:39:10.589 --------------------------------------------------------------------------
. 2005-10-24 14:39:10.589 Session name: user@192.168.1.1
. 2005-10-24 14:39:10.589 Host name: 192.168.1.1 (Port: 22)
. 2005-10-24 14:39:10.589 User name: user (Password: Yes, Key file: No)
. 2005-10-24 14:39:10.589 Transfer Protocol: SCP
. 2005-10-24 14:39:10.589 SSH protocol version: 2; Compression: No
. 2005-10-24 14:39:10.589 Agent forwarding: No; TIS/CryptoCard: No; KI: Yes; GSSAPI: No
. 2005-10-24 14:39:10.589 Ciphers: aes,blowfish,3des,WARN,des; Ssh2DES: No
. 2005-10-24 14:39:10.589 Ping type: -, Ping interval: 30 sec; Timeout: 15 sec
. 2005-10-24 14:39:10.589 SSH Bugs: -,-,-,-,-,-,-,-
. 2005-10-24 14:39:10.589 SFTP Bugs: -,-,-
. 2005-10-24 14:39:10.589 Proxy: none
. 2005-10-24 14:39:10.589 Return code variable: Autodetect; Lookup user groups: Yes
. 2005-10-24 14:39:10.589 Shell: default, EOL: 0
. 2005-10-24 14:39:10.589 Local directory: default, Remote directory: home, Update: No, Cache: Yes
. 2005-10-24 14:39:10.589 Cache directory changes: Yes, Permanent: Yes
. 2005-10-24 14:39:10.589 Clear aliases: Yes, Unset nat.vars: Yes, Resolve symlinks: Yes
. 2005-10-24 14:39:10.589 Alias LS: No, Ign LS warn: Yes, Scp1 Comp: No
. 2005-10-24 14:39:10.589 --------------------------------------------------------------------------
. 2005-10-24 14:39:10.589 Looking up host "192.168.1.1"
. 2005-10-24 14:39:10.589 Connecting to 192.168.1.1 port 22
. 2005-10-24 14:39:10.605 Waiting for the server to continue with the initialisation
. 2005-10-24 14:39:10.605 Looking for incoming data
. 2005-10-24 14:39:10.605 Select result is 1
. 2005-10-24 14:39:10.605 Server version: SSH-1.99-OpenSSH_3.9p1
. 2005-10-24 14:39:10.605 We claim version: SSH-2.0-WinSCP_release_3.7.6
. 2005-10-24 14:39:10.605 Using SSH protocol version 2
. 2005-10-24 14:39:10.605 Waiting for the server to continue with the initialisation
. 2005-10-24 14:39:10.605 Looking for incoming data
. 2005-10-24 14:39:10.605 Select result is 1
. 2005-10-24 14:39:10.605 Doing Diffie-Hellman group exchange
. 2005-10-24 14:39:10.605 Waiting for the server to continue with the initialisation
. 2005-10-24 14:39:10.605 Looking for incoming data
. 2005-10-24 14:39:10.651 Select result is 1
. 2005-10-24 14:39:10.651 Doing Diffie-Hellman key exchange
. 2005-10-24 14:39:10.792 Waiting for the server to continue with the initialisation
. 2005-10-24 14:39:10.792 Looking for incoming data
. 2005-10-24 14:39:10.808 Select result is 1
. 2005-10-24 14:39:11.011 Host key fingerprint is:
. 2005-10-24 14:39:11.011 ssh-rsa 1024 bd:40:9f:04:66:de:dc:72:db:34:0e:05:ab:d7:45:93
. 2005-10-24 14:39:11.011 Initialised AES-256 client->server encryption
. 2005-10-24 14:39:11.011 Initialised HMAC-SHA1 client->server MAC algorithm
. 2005-10-24 14:39:11.011 Initialised AES-256 server->client encryption
. 2005-10-24 14:39:11.011 Initialised HMAC-SHA1 server->client MAC algorithm
. 2005-10-24 14:39:11.011 Waiting for the server to continue with the initialisation
. 2005-10-24 14:39:11.011 Looking for incoming data
. 2005-10-24 14:39:11.058 Select result is 1
! 2005-10-24 14:39:11.058 Using username "user".
. 2005-10-24 14:39:11.058 Waiting for the server to continue with the initialisation
. 2005-10-24 14:39:11.058 Looking for incoming data
. 2005-10-24 14:39:11.058 Select result is 1
. 2005-10-24 14:39:11.058 Session password prompt (user@192.168.1.1's password: )
. 2005-10-24 14:39:11.058 Using stored password.
. 2005-10-24 14:39:11.058 Sent password
. 2005-10-24 14:39:11.058 Waiting for the server to continue with the initialisation
. 2005-10-24 14:39:11.058 Looking for incoming data
. 2005-10-24 14:39:11.058 Select result is 1
. 2005-10-24 14:39:11.058 Access granted
. 2005-10-24 14:39:11.058 Waiting for the server to continue with the initialisation
. 2005-10-24 14:39:11.058 Looking for incoming data
. 2005-10-24 14:39:11.073 Select result is 1
. 2005-10-24 14:39:11.073 Opened channel for session
. 2005-10-24 14:39:11.073 Waiting for the server to continue with the initialisation
. 2005-10-24 14:39:11.073 Looking for incoming data
. 2005-10-24 14:39:11.073 Select result is 1
. 2005-10-24 14:39:11.073 Started a shell/command
. 2005-10-24 14:39:11.073 --------------------------------------------------------------------------
. 2005-10-24 14:39:11.073 Using SCP protocol.
. 2005-10-24 14:39:11.073 Doing startup conversation with host.
. 2005-10-24 14:39:11.073 Skipping host startup message (if any).
. 2005-10-24 14:39:11.073 Sent 36 bytes
. 2005-10-24 14:39:11.073 There are 0 bytes remaining in the send buffer
. 2005-10-24 14:39:11.073 Sent 1 bytes
. 2005-10-24 14:39:11.073 There are 0 bytes remaining in the send buffer
> 2005-10-24 14:39:11.073 echo "WinSCP: this is end-of-file:0"
. 2005-10-24 14:39:11.073 Waiting for another 1 bytes
. 2005-10-24 14:39:11.073 Looking for incoming data
. 2005-10-24 14:39:11.105 Select result is 1
. 2005-10-24 14:39:11.105 Received 1 bytes
. 2005-10-24 14:39:11.105 Received 29 bytes
< 2005-10-24 14:39:11.105 WinSCP: this is end-of-file:0
. 2005-10-24 14:39:11.105 Detecting variable containing return code of last command.
. 2005-10-24 14:39:11.105 Trying "$status".
. 2005-10-24 14:39:11.105 Sent 53 bytes
. 2005-10-24 14:39:11.105 There are 0 bytes remaining in the send buffer
. 2005-10-24 14:39:11.105 Sent 1 bytes
. 2005-10-24 14:39:11.105 There are 0 bytes remaining in the send buffer
> 2005-10-24 14:39:11.105 echo "$status" ; echo "WinSCP: this is end-of-file:0"
. 2005-10-24 14:39:11.105 Waiting for another 1 bytes
. 2005-10-24 14:39:11.105 Looking for incoming data
. 2005-10-24 14:39:11.151 Select result is 1
. 2005-10-24 14:39:11.151 Received 1 bytes
. 2005-10-24 14:39:11.151 Waiting for another 1 bytes
. 2005-10-24 14:39:11.151 Looking for incoming data
. 2005-10-24 14:39:11.339 Select result is 1
. 2005-10-24 14:39:11.339 Received 1 bytes
. 2005-10-24 14:39:11.339 Received 29 bytes
< 2005-10-24 14:39:11.339 WinSCP: this is end-of-file:0
. 2005-10-24 14:39:11.339 Trying "$?".
. 2005-10-24 14:39:11.339 Sent 48 bytes
. 2005-10-24 14:39:11.339 There are 0 bytes remaining in the send buffer
. 2005-10-24 14:39:11.339 Sent 1 bytes
. 2005-10-24 14:39:11.339 There are 0 bytes remaining in the send buffer
> 2005-10-24 14:39:11.339 echo "$?" ; echo "WinSCP: this is end-of-file:0"
. 2005-10-24 14:39:11.339 Waiting for another 1 bytes
. 2005-10-24 14:39:11.339 Looking for incoming data
. 2005-10-24 14:39:11.370 Select result is 1
. 2005-10-24 14:39:11.370 Received 1 bytes
. 2005-10-24 14:39:11.370 Received 1 bytes
< 2005-10-24 14:39:11.370 0
. 2005-10-24 14:39:11.370 Waiting for another 1 bytes
. 2005-10-24 14:39:11.370 Looking for incoming data
. 2005-10-24 14:39:11.526 Select result is 1
. 2005-10-24 14:39:11.526 Received 1 bytes
. 2005-10-24 14:39:11.526 Received 29 bytes
< 2005-10-24 14:39:11.526 WinSCP: this is end-of-file:0
. 2005-10-24 14:39:11.542 Return code variable "$?" selected.
. 2005-10-24 14:39:11.542 Clearing all aliases.
. 2005-10-24 14:39:11.542 Sent 54 bytes
. 2005-10-24 14:39:11.542 There are 0 bytes remaining in the send buffer
. 2005-10-24 14:39:11.542 Sent 1 bytes
. 2005-10-24 14:39:11.542 There are 0 bytes remaining in the send buffer
> 2005-10-24 14:39:11.542 unalias "echo" ; echo "WinSCP: this is end-of-file:$?"
. 2005-10-24 14:39:11.542 Waiting for another 1 bytes
. 2005-10-24 14:39:11.542 Looking for incoming data
. 2005-10-24 14:39:11.573 Select result is 1
! 2005-10-24 14:39:11.573 -bash: line 4: unalias: echo: not found
. 2005-10-24 14:39:11.573 Waiting for another 1 bytes
. 2005-10-24 14:39:11.573 Looking for incoming data
. 2005-10-24 14:39:11.730 Select result is 1
. 2005-10-24 14:39:11.730 Received 1 bytes
. 2005-10-24 14:39:11.730 Received 29 bytes
< 2005-10-24 14:39:11.730 WinSCP: this is end-of-file:1
. 2005-10-24 14:39:11.730 Sent 53 bytes
. 2005-10-24 14:39:11.730 There are 0 bytes remaining in the send buffer
. 2005-10-24 14:39:11.730 Sent 1 bytes
. 2005-10-24 14:39:11.730 There are 0 bytes remaining in the send buffer
> 2005-10-24 14:39:11.730 unalias "pwd" ; echo "WinSCP: this is end-of-file:$?"
. 2005-10-24 14:39:11.730 Waiting for another 1 bytes
. 2005-10-24 14:39:11.730 Looking for incoming data
. 2005-10-24 14:39:11.776 Select result is 1
! 2005-10-24 14:39:11.776 -bash: line 5: unalias: pwd: not found
. 2005-10-24 14:39:11.776 Waiting for another 1 bytes
. 2005-10-24 14:39:11.776 Looking for incoming data
. 2005-10-24 14:39:11.933 Select result is 1
. 2005-10-24 14:39:11.933 Received 1 bytes
. 2005-10-24 14:39:11.933 Received 29 bytes
< 2005-10-24 14:39:11.933 WinSCP: this is end-of-file:1
. 2005-10-24 14:39:11.933 Sent 52 bytes
. 2005-10-24 14:39:11.933 There are 0 bytes remaining in the send buffer
. 2005-10-24 14:39:11.933 Sent 1 bytes
. 2005-10-24 14:39:11.933 There are 0 bytes remaining in the send buffer
> 2005-10-24 14:39:11.933 unalias "cd" ; echo "WinSCP: this is end-of-file:$?"
. 2005-10-24 14:39:11.933 Waiting for another 1 bytes
. 2005-10-24 14:39:11.933 Looking for incoming data
. 2005-10-24 14:39:11.980 Select result is 1
! 2005-10-24 14:39:11.980 -bash: line 6: unalias: cd: not found
. 2005-10-24 14:39:11.980 Waiting for another 1 bytes
. 2005-10-24 14:39:11.980 Looking for incoming data
. 2005-10-24 14:39:12.136 Select result is 1
. 2005-10-24 14:39:12.136 Received 1 bytes
. 2005-10-24 14:39:12.136 Received 29 bytes
< 2005-10-24 14:39:12.136 WinSCP: this is end-of-file:1
. 2005-10-24 14:39:12.136 Sent 52 bytes
. 2005-10-24 14:39:12.136 There are 0 bytes remaining in the send buffer
. 2005-10-24 14:39:12.136 Sent 1 bytes
. 2005-10-24 14:39:12.136 There are 0 bytes remaining in the send buffer
> 2005-10-24 14:39:12.136 unalias "ls" ; echo "WinSCP: this is end-of-file:$?"
. 2005-10-24 14:39:12.136 Waiting for another 1 bytes
. 2005-10-24 14:39:12.136 Looking for incoming data
. 2005-10-24 14:39:12.183 Select result is 1
! 2005-10-24 14:39:12.183 -bash: line 7: unalias: ls: not found
. 2005-10-24 14:39:12.183 Waiting for another 1 bytes
. 2005-10-24 14:39:12.183 Looking for incoming data
. 2005-10-24 14:39:12.339 Select result is 1
. 2005-10-24 14:39:12.339 Received 1 bytes
. 2005-10-24 14:39:12.339 Received 29 bytes
< 2005-10-24 14:39:12.339 WinSCP: this is end-of-file:1
. 2005-10-24 14:39:12.339 Sent 56 bytes
. 2005-10-24 14:39:12.339 There are 0 bytes remaining in the send buffer
. 2005-10-24 14:39:12.339 Sent 1 bytes
. 2005-10-24 14:39:12.339 There are 0 bytes remaining in the send buffer
> 2005-10-24 14:39:12.339 unalias "groups" ; echo "WinSCP: this is end-of-file:$?"
. 2005-10-24 14:39:12.339 Waiting for another 1 bytes
. 2005-10-24 14:39:12.339 Looking for incoming data
. 2005-10-24 14:39:12.386 Select result is 1
! 2005-10-24 14:39:12.386 -bash: line 8: unalias: groups: not found
. 2005-10-24 14:39:12.386 Waiting for another 1 bytes
. 2005-10-24 14:39:12.386 Looking for incoming data
. 2005-10-24 14:39:12.542 Select result is 1
. 2005-10-24 14:39:12.542 Received 1 bytes
. 2005-10-24 14:39:12.542 Received 29 bytes
< 2005-10-24 14:39:12.542 WinSCP: this is end-of-file:1
. 2005-10-24 14:39:12.542 Sent 53 bytes
. 2005-10-24 14:39:12.542 There are 0 bytes remaining in the send buffer
. 2005-10-24 14:39:12.542 Sent 1 bytes
. 2005-10-24 14:39:12.542 There are 0 bytes remaining in the send buffer
> 2005-10-24 14:39:12.542 unalias "scp" ; echo "WinSCP: this is end-of-file:$?"
. 2005-10-24 14:39:12.542 Waiting for another 1 bytes
. 2005-10-24 14:39:12.542 Looking for incoming data
. 2005-10-24 14:39:12.589 Select result is 1
! 2005-10-24 14:39:12.589 -bash: line 9: unalias: scp: not found
. 2005-10-24 14:39:12.589 Waiting for another 1 bytes
. 2005-10-24 14:39:12.589 Looking for incoming data
. 2005-10-24 14:39:12.745 Select result is 1
. 2005-10-24 14:39:12.745 Received 1 bytes
. 2005-10-24 14:39:12.745 Received 29 bytes
< 2005-10-24 14:39:12.745 WinSCP: this is end-of-file:1
. 2005-10-24 14:39:12.745 Sent 52 bytes
. 2005-10-24 14:39:12.745 There are 0 bytes remaining in the send buffer
. 2005-10-24 14:39:12.745 Sent 1 bytes
. 2005-10-24 14:39:12.745 There are 0 bytes remaining in the send buffer
> 2005-10-24 14:39:12.745 unalias "rm" ; echo "WinSCP: this is end-of-file:$?"
. 2005-10-24 14:39:12.745 Waiting for another 1 bytes
. 2005-10-24 14:39:12.745 Looking for incoming data
. 2005-10-24 14:39:12.776 Select result is 1
! 2005-10-24 14:39:12.776 -bash: line 10: unalias: rm: not found
. 2005-10-24 14:39:12.776 Waiting for another 1 bytes
. 2005-10-24 14:39:12.776 Looking for incoming data
. 2005-10-24 14:39:12.948 Select result is 1
. 2005-10-24 14:39:12.948 Received 1 bytes
. 2005-10-24 14:39:12.948 Received 29 bytes
< 2005-10-24 14:39:12.948 WinSCP: this is end-of-file:1
. 2005-10-24 14:39:12.948 Sent 52 bytes
. 2005-10-24 14:39:12.948 There are 0 bytes remaining in the send buffer
. 2005-10-24 14:39:12.948 Sent 1 bytes
. 2005-10-24 14:39:12.948 There are 0 bytes remaining in the send buffer
> 2005-10-24 14:39:12.948 unalias "mv" ; echo "WinSCP: this is end-of-file:$?"
. 2005-10-24 14:39:12.948 Waiting for another 1 bytes
. 2005-10-24 14:39:12.948 Looking for incoming data
. 2005-10-24 14:39:12.995 Select result is 1
! 2005-10-24 14:39:12.995 -bash: line 11: unalias: mv: not found
. 2005-10-24 14:39:12.995 Waiting for another 1 bytes
. 2005-10-24 14:39:12.995 Looking for incoming data
. 2005-10-24 14:39:13.136 Select result is 1
. 2005-10-24 14:39:13.151 Received 1 bytes
. 2005-10-24 14:39:13.151 Received 29 bytes
< 2005-10-24 14:39:13.151 WinSCP: this is end-of-file:1
. 2005-10-24 14:39:13.151 Sent 55 bytes
. 2005-10-24 14:39:13.151 There are 0 bytes remaining in the send buffer
. 2005-10-24 14:39:13.151 Sent 1 bytes
. 2005-10-24 14:39:13.151 There are 0 bytes remaining in the send buffer
> 2005-10-24 14:39:13.151 unalias "mkdir" ; echo "WinSCP: this is end-of-file:$?"
. 2005-10-24 14:39:13.151 Waiting for another 1 bytes
. 2005-10-24 14:39:13.151 Looking for incoming data
. 2005-10-24 14:39:13.183 Select result is 1
! 2005-10-24 14:39:13.183 -bash: line 12: unalias: mkdir: not found
. 2005-10-24 14:39:13.183 Waiting for another 1 bytes
. 2005-10-24 14:39:13.183 Looking for incoming data
. 2005-10-24 14:39:13.339 Select result is 1
. 2005-10-24 14:39:13.370 Received 1 bytes
. 2005-10-24 14:39:13.370 Received 29 bytes
< 2005-10-24 14:39:13.370 WinSCP: this is end-of-file:1
. 2005-10-24 14:39:13.370 Sent 55 bytes
. 2005-10-24 14:39:13.370 There are 0 bytes remaining in the send buffer
. 2005-10-24 14:39:13.370 Sent 1 bytes
. 2005-10-24 14:39:13.370 There are 0 bytes remaining in the send buffer
> 2005-10-24 14:39:13.370 unalias "chmod" ; echo "WinSCP: this is end-of-file:$?"
. 2005-10-24 14:39:13.370 Waiting for another 1 bytes
. 2005-10-24 14:39:13.370 Looking for incoming data
. 2005-10-24 14:39:13.401 Select result is 1
! 2005-10-24 14:39:13.401 -bash: line 13: unalias: chmod: not found
. 2005-10-24 14:39:13.401 Waiting for another 1 bytes
. 2005-10-24 14:39:13.401 Looking for incoming data
. 2005-10-24 14:39:13.542 Select result is 1
. 2005-10-24 14:39:13.542 Received 1 bytes
. 2005-10-24 14:39:13.542 Received 29 bytes
< 2005-10-24 14:39:13.542 WinSCP: this is end-of-file:1
. 2005-10-24 14:39:13.542 Sent 55 bytes
. 2005-10-24 14:39:13.542 There are 0 bytes remaining in the send buffer
. 2005-10-24 14:39:13.542 Sent 1 bytes
. 2005-10-24 14:39:13.542 There are 0 bytes remaining in the send buffer
> 2005-10-24 14:39:13.542 unalias "chgrp" ; echo "WinSCP: this is end-of-file:$?"
. 2005-10-24 14:39:13.542 Waiting for another 1 bytes
. 2005-10-24 14:39:13.542 Looking for incoming data
. 2005-10-24 14:39:13.589 Select result is 1
! 2005-10-24 14:39:13.589 -bash: line 14: unalias: chgrp: not found
. 2005-10-24 14:39:13.589 Waiting for another 1 bytes
. 2005-10-24 14:39:13.589 Looking for incoming data
. 2005-10-24 14:39:13.745 Select result is 1
. 2005-10-24 14:39:13.745 Received 1 bytes
. 2005-10-24 14:39:13.745 Received 29 bytes
< 2005-10-24 14:39:13.745 WinSCP: this is end-of-file:1
. 2005-10-24 14:39:13.745 Sent 55 bytes
. 2005-10-24 14:39:13.745 There are 0 bytes remaining in the send buffer
. 2005-10-24 14:39:13.745 Sent 1 bytes
. 2005-10-24 14:39:13.745 There are 0 bytes remaining in the send buffer
> 2005-10-24 14:39:13.745 unalias "chown" ; echo "WinSCP: this is end-of-file:$?"
. 2005-10-24 14:39:13.745 Waiting for another 1 bytes
. 2005-10-24 14:39:13.745 Looking for incoming data
. 2005-10-24 14:39:13.792 Select result is 1
! 2005-10-24 14:39:13.792 -bash: line 15: unalias: chown: not found
. 2005-10-24 14:39:13.792 Waiting for another 1 bytes
. 2005-10-24 14:39:13.792 Looking for incoming data
. 2005-10-24 14:39:13.964 Select result is 1
. 2005-10-24 14:39:13.964 Received 1 bytes
. 2005-10-24 14:39:13.964 Received 29 bytes
< 2005-10-24 14:39:13.964 WinSCP: this is end-of-file:1
. 2005-10-24 14:39:13.964 Sent 55 bytes
. 2005-10-24 14:39:13.964 There are 0 bytes remaining in the send buffer
. 2005-10-24 14:39:13.964 Sent 1 bytes
. 2005-10-24 14:39:13.964 There are 0 bytes remaining in the send buffer
> 2005-10-24 14:39:13.964 unalias "unset" ; echo "WinSCP: this is end-of-file:$?"
. 2005-10-24 14:39:13.964 Waiting for another 1 bytes
. 2005-10-24 14:39:13.964 Looking for incoming data
. 2005-10-24 14:39:14.042 Select result is 1
! 2005-10-24 14:39:14.042 -bash: line 16: unalias: unset: not found
. 2005-10-24 14:39:14.042 Waiting for another 1 bytes
. 2005-10-24 14:39:14.042 Looking for incoming data
. 2005-10-24 14:39:14.151 Select result is 1
. 2005-10-24 14:39:14.151 Received 1 bytes
. 2005-10-24 14:39:14.151 Received 29 bytes
< 2005-10-24 14:39:14.151 WinSCP: this is end-of-file:1
. 2005-10-24 14:39:14.151 Sent 57 bytes
. 2005-10-24 14:39:14.151 There are 0 bytes remaining in the send buffer
. 2005-10-24 14:39:14.151 Sent 1 bytes
. 2005-10-24 14:39:14.151 There are 0 bytes remaining in the send buffer
> 2005-10-24 14:39:14.151 unalias "unalias" ; echo "WinSCP: this is end-of-file:$?"
. 2005-10-24 14:39:14.151 Waiting for another 1 bytes
. 2005-10-24 14:39:14.151 Looking for incoming data
. 2005-10-24 14:39:14.198 Select result is 1
! 2005-10-24 14:39:14.198 -bash: line 17: unalias: unalias: not found
. 2005-10-24 14:39:14.198 Waiting for another 1 bytes
. 2005-10-24 14:39:14.198 Looking for incoming data
. 2005-10-24 14:39:14.355 Select result is 1
. 2005-10-24 14:39:14.355 Received 1 bytes
. 2005-10-24 14:39:14.355 Received 29 bytes
< 2005-10-24 14:39:14.355 WinSCP: this is end-of-file:1
. 2005-10-24 14:39:14.355 Sent 55 bytes
. 2005-10-24 14:39:14.355 There are 0 bytes remaining in the send buffer
. 2005-10-24 14:39:14.355 Sent 1 bytes
. 2005-10-24 14:39:14.355 There are 0 bytes remaining in the send buffer
> 2005-10-24 14:39:14.355 unalias "alias" ; echo "WinSCP: this is end-of-file:$?"
. 2005-10-24 14:39:14.355 Waiting for another 1 bytes
. 2005-10-24 14:39:14.355 Looking for incoming data
. 2005-10-24 14:39:14.386 Select result is 1
! 2005-10-24 14:39:14.386 -bash: line 18: unalias: alias: not found
. 2005-10-24 14:39:14.386 Waiting for another 1 bytes
. 2005-10-24 14:39:14.386 Looking for incoming data
. 2005-10-24 14:39:14.558 Select result is 1
. 2005-10-24 14:39:14.558 Received 1 bytes
. 2005-10-24 14:39:14.558 Received 29 bytes
< 2005-10-24 14:39:14.558 WinSCP: this is end-of-file:1
. 2005-10-24 14:39:14.558 Sent 52 bytes
. 2005-10-24 14:39:14.558 There are 0 bytes remaining in the send buffer
. 2005-10-24 14:39:14.558 Sent 1 bytes
. 2005-10-24 14:39:14.558 There are 0 bytes remaining in the send buffer
> 2005-10-24 14:39:14.558 unalias "ln" ; echo "WinSCP: this is end-of-file:$?"
. 2005-10-24 14:39:14.558 Waiting for another 1 bytes
. 2005-10-24 14:39:14.558 Looking for incoming data
. 2005-10-24 14:39:14.589 Select result is 1
! 2005-10-24 14:39:14.589 -bash: line 19: unalias: ln: not found
. 2005-10-24 14:39:14.589 Waiting for another 1 bytes
. 2005-10-24 14:39:14.589 Looking for incoming data
. 2005-10-24 14:39:14.745 Select result is 1
. 2005-10-24 14:39:14.745 Received 1 bytes
. 2005-10-24 14:39:14.745 Received 29 bytes
< 2005-10-24 14:39:14.745 WinSCP: this is end-of-file:1
. 2005-10-24 14:39:14.761 Sent 52 bytes
. 2005-10-24 14:39:14.761 There are 0 bytes remaining in the send buffer
. 2005-10-24 14:39:14.761 Sent 1 bytes
. 2005-10-24 14:39:14.761 There are 0 bytes remaining in the send buffer
> 2005-10-24 14:39:14.761 unalias "cp" ; echo "WinSCP: this is end-of-file:$?"
. 2005-10-24 14:39:14.761 Waiting for another 1 bytes
. 2005-10-24 14:39:14.761 Looking for incoming data
. 2005-10-24 14:39:14.792 Select result is 1
! 2005-10-24 14:39:14.792 -bash: line 20: unalias: cp: not found
. 2005-10-24 14:39:14.792 Waiting for another 1 bytes
. 2005-10-24 14:39:14.792 Looking for incoming data
. 2005-10-24 14:39:14.948 Select result is 1
. 2005-10-24 14:39:14.948 Received 1 bytes
. 2005-10-24 14:39:14.948 Received 29 bytes
< 2005-10-24 14:39:14.948 WinSCP: this is end-of-file:1
. 2005-10-24 14:39:14.948 Clearing national user variables.
. 2005-10-24 14:39:14.948 Sent 52 bytes
. 2005-10-24 14:39:14.948 There are 0 bytes remaining in the send buffer
. 2005-10-24 14:39:14.948 Sent 1 bytes
. 2005-10-24 14:39:14.948 There are 0 bytes remaining in the send buffer
> 2005-10-24 14:39:14.948 unset "LANG" ; echo "WinSCP: this is end-of-file:$?"
. 2005-10-24 14:39:14.948 Waiting for another 1 bytes
. 2005-10-24 14:39:14.948 Looking for incoming data
. 2005-10-24 14:39:14.995 Select result is 1
. 2005-10-24 14:39:14.995 Received 1 bytes
. 2005-10-24 14:39:14.995 Received 29 bytes
< 2005-10-24 14:39:14.995 WinSCP: this is end-of-file:0
. 2005-10-24 14:39:14.995 Sent 56 bytes
. 2005-10-24 14:39:14.995 There are 0 bytes remaining in the send buffer
. 2005-10-24 14:39:14.995 Sent 1 bytes
. 2005-10-24 14:39:14.995 There are 0 bytes remaining in the send buffer
> 2005-10-24 14:39:14.995 unset "LANGUAGE" ; echo "WinSCP: this is end-of-file:$?"
. 2005-10-24 14:39:14.995 Waiting for another 1 bytes
. 2005-10-24 14:39:14.995 Looking for incoming data
. 2005-10-24 14:39:15.042 Select result is 1
. 2005-10-24 14:39:15.042 Received 1 bytes
. 2005-10-24 14:39:15.042 Received 29 bytes
< 2005-10-24 14:39:15.042 WinSCP: this is end-of-file:0
. 2005-10-24 14:39:15.042 Sent 56 bytes
. 2005-10-24 14:39:15.042 There are 0 bytes remaining in the send buffer
. 2005-10-24 14:39:15.042 Sent 1 bytes
. 2005-10-24 14:39:15.042 There are 0 bytes remaining in the send buffer
> 2005-10-24 14:39:15.042 unset "LC_CTYPE" ; echo "WinSCP: this is end-of-file:$?"
. 2005-10-24 14:39:15.042 Waiting for another 1 bytes
. 2005-10-24 14:39:15.042 Looking for incoming data
. 2005-10-24 14:39:15.073 Select result is 1
. 2005-10-24 14:39:15.073 Received 1 bytes
. 2005-10-24 14:39:15.073 Received 29 bytes
< 2005-10-24 14:39:15.073 WinSCP: this is end-of-file:0
. 2005-10-24 14:39:15.073 Sent 58 bytes
. 2005-10-24 14:39:15.073 There are 0 bytes remaining in the send buffer
. 2005-10-24 14:39:15.073 Sent 1 bytes
. 2005-10-24 14:39:15.073 There are 0 bytes remaining in the send buffer
> 2005-10-24 14:39:15.073 unset "LC_COLLATE" ; echo "WinSCP: this is end-of-file:$?"
. 2005-10-24 14:39:15.073 Waiting for another 1 bytes
. 2005-10-24 14:39:15.073 Looking for incoming data
. 2005-10-24 14:39:15.120 Select result is 1
. 2005-10-24 14:39:15.120 Received 1 bytes
. 2005-10-24 14:39:15.120 Received 29 bytes
< 2005-10-24 14:39:15.120 WinSCP: this is end-of-file:0
. 2005-10-24 14:39:15.120 Sent 59 bytes
. 2005-10-24 14:39:15.120 There are 0 bytes remaining in the send buffer
. 2005-10-24 14:39:15.120 Sent 1 bytes
. 2005-10-24 14:39:15.120 There are 0 bytes remaining in the send buffer
> 2005-10-24 14:39:15.120 unset "LC_MONETARY" ; echo "WinSCP: this is end-of-file:$?"
. 2005-10-24 14:39:15.120 Waiting for another 1 bytes
. 2005-10-24 14:39:15.120 Looking for incoming data
. 2005-10-24 14:39:15.167 Select result is 1
. 2005-10-24 14:39:15.167 Received 1 bytes
. 2005-10-24 14:39:15.167 Received 29 bytes
< 2005-10-24 14:39:15.167 WinSCP: this is end-of-file:0
. 2005-10-24 14:39:15.167 Sent 58 bytes
. 2005-10-24 14:39:15.167 There are 0 bytes remaining in the send buffer
. 2005-10-24 14:39:15.167 Sent 1 bytes
. 2005-10-24 14:39:15.167 There are 0 bytes remaining in the send buffer
> 2005-10-24 14:39:15.167 unset "LC_NUMERIC" ; echo "WinSCP: this is end-of-file:$?"
. 2005-10-24 14:39:15.167 Waiting for another 1 bytes
. 2005-10-24 14:39:15.167 Looking for incoming data
. 2005-10-24 14:39:15.198 Select result is 1
. 2005-10-24 14:39:15.198 Received 1 bytes
. 2005-10-24 14:39:15.198 Received 29 bytes
< 2005-10-24 14:39:15.198 WinSCP: this is end-of-file:0
. 2005-10-24 14:39:15.198 Sent 55 bytes
. 2005-10-24 14:39:15.198 There are 0 bytes remaining in the send buffer
. 2005-10-24 14:39:15.198 Sent 1 bytes
. 2005-10-24 14:39:15.198 There are 0 bytes remaining in the send buffer
> 2005-10-24 14:39:15.198 unset "LC_TIME" ; echo "WinSCP: this is end-of-file:$?"
. 2005-10-24 14:39:15.198 Waiting for another 1 bytes
. 2005-10-24 14:39:15.198 Looking for incoming data
. 2005-10-24 14:39:15.245 Select result is 1
. 2005-10-24 14:39:15.245 Received 1 bytes
. 2005-10-24 14:39:15.245 Received 29 bytes
< 2005-10-24 14:39:15.245 WinSCP: this is end-of-file:0
. 2005-10-24 14:39:15.245 Sent 59 bytes
. 2005-10-24 14:39:15.245 There are 0 bytes remaining in the send buffer
. 2005-10-24 14:39:15.245 Sent 1 bytes
. 2005-10-24 14:39:15.245 There are 0 bytes remaining in the send buffer
> 2005-10-24 14:39:15.245 unset "LC_MESSAGES" ; echo "WinSCP: this is end-of-file:$?"
. 2005-10-24 14:39:15.245 Waiting for another 1 bytes
. 2005-10-24 14:39:15.245 Looking for incoming data
. 2005-10-24 14:39:15.292 Select result is 1
. 2005-10-24 14:39:15.292 Received 1 bytes
. 2005-10-24 14:39:15.292 Received 29 bytes
< 2005-10-24 14:39:15.292 WinSCP: this is end-of-file:0
. 2005-10-24 14:39:15.292 Sent 54 bytes
. 2005-10-24 14:39:15.292 There are 0 bytes remaining in the send buffer
. 2005-10-24 14:39:15.292 Sent 1 bytes
. 2005-10-24 14:39:15.292 There are 0 bytes remaining in the send buffer
> 2005-10-24 14:39:15.292 unset "LC_ALL" ; echo "WinSCP: this is end-of-file:$?"
. 2005-10-24 14:39:15.292 Waiting for another 1 bytes
. 2005-10-24 14:39:15.292 Looking for incoming data
. 2005-10-24 14:39:15.323 Select result is 1
. 2005-10-24 14:39:15.323 Received 1 bytes
. 2005-10-24 14:39:15.323 Received 29 bytes
< 2005-10-24 14:39:15.323 WinSCP: this is end-of-file:0
. 2005-10-24 14:39:15.323 Sent 60 bytes
. 2005-10-24 14:39:15.323 There are 0 bytes remaining in the send buffer
. 2005-10-24 14:39:15.323 Sent 1 bytes
. 2005-10-24 14:39:15.323 There are 0 bytes remaining in the send buffer
> 2005-10-24 14:39:15.323 unset "HUMAN_BLOCKS" ; echo "WinSCP: this is end-of-file:$?"
. 2005-10-24 14:39:15.323 Waiting for another 1 bytes
. 2005-10-24 14:39:15.323 Looking for incoming data
. 2005-10-24 14:39:15.370 Select result is 1
. 2005-10-24 14:39:15.370 Received 1 bytes
. 2005-10-24 14:39:15.370 Received 29 bytes
< 2005-10-24 14:39:15.370 WinSCP: this is end-of-file:0
. 2005-10-24 14:39:15.370 Looking up groups and users.
. 2005-10-24 14:39:15.370 Sent 46 bytes
. 2005-10-24 14:39:15.370 There are 0 bytes remaining in the send buffer
. 2005-10-24 14:39:15.370 Sent 1 bytes
. 2005-10-24 14:39:15.370 There are 0 bytes remaining in the send buffer
> 2005-10-24 14:39:15.370 groups ; echo "WinSCP: this is end-of-file:$?"
. 2005-10-24 14:39:15.370 Waiting for another 1 bytes
. 2005-10-24 14:39:15.370 Looking for incoming data
. 2005-10-24 14:39:15.417 Select result is 1
. 2005-10-24 14:39:15.417 Received 1 bytes
. 2005-10-24 14:39:15.417 Received 4 bytes
< 2005-10-24 14:39:15.417 klop
. 2005-10-24 14:39:15.417 Waiting for another 1 bytes
. 2005-10-24 14:39:15.417 Looking for incoming data
. 2005-10-24 14:39:15.558 Select result is 1
. 2005-10-24 14:39:15.558 Received 1 bytes
. 2005-10-24 14:39:15.558 Received 29 bytes
< 2005-10-24 14:39:15.558 WinSCP: this is end-of-file:0
. 2005-10-24 14:39:15.558 Following groups found:
. 2005-10-24 14:39:15.558 klop
. 2005-10-24 14:39:15.558 No users found.
. 2005-10-24 14:39:15.558 Getting current directory name.
. 2005-10-24 14:39:15.558 Sent 43 bytes
. 2005-10-24 14:39:15.558 There are 0 bytes remaining in the send buffer
. 2005-10-24 14:39:15.558 Sent 1 bytes
. 2005-10-24 14:39:15.558 There are 0 bytes remaining in the send buffer
> 2005-10-24 14:39:15.558 pwd ; echo "WinSCP: this is end-of-file:$?"
. 2005-10-24 14:39:15.558 Waiting for another 1 bytes
. 2005-10-24 14:39:15.558 Looking for incoming data
. 2005-10-24 14:39:15.605 Select result is 1
. 2005-10-24 14:39:15.605 Received 1 bytes
. 2005-10-24 14:39:15.605 Received 19 bytes
< 2005-10-24 14:39:15.605 /mnt/vg01/cfs/input
. 2005-10-24 14:39:15.605 Waiting for another 1 bytes
. 2005-10-24 14:39:15.605 Looking for incoming data
. 2005-10-24 14:39:15.761 Select result is 1
. 2005-10-24 14:39:15.761 Received 1 bytes
. 2005-10-24 14:39:15.761 Received 29 bytes
< 2005-10-24 14:39:15.761 WinSCP: this is end-of-file:0
. 2005-10-24 14:39:15.761 Startup conversation with host finished.
. 2005-10-24 14:39:15.761 Cached directory change via "/mnt/vg01/cfs/input/SentryTest" to "/mnt/vg01/cfs/input/SentryTest".
. 2005-10-24 14:39:15.761 Getting current directory name.
. 2005-10-24 14:39:15.761 Listing current directory.
. 2005-10-24 14:39:15.761 Locating to cached directory "/mnt/vg01/cfs/input/SentryTest".
. 2005-10-24 14:39:15.761 Sent 75 bytes
. 2005-10-24 14:39:15.761 There are 0 bytes remaining in the send buffer
. 2005-10-24 14:39:15.761 Sent 1 bytes
. 2005-10-24 14:39:15.761 There are 0 bytes remaining in the send buffer
> 2005-10-24 14:39:15.761 cd "/mnt/vg01/cfs/input/SentryTest" ; echo "WinSCP: this is end-of-file:$?"
. 2005-10-24 14:39:15.761 Waiting for another 1 bytes
. 2005-10-24 14:39:15.761 Looking for incoming data
. 2005-10-24 14:39:15.808 Select result is 1
. 2005-10-24 14:39:15.808 Received 1 bytes
. 2005-10-24 14:39:15.808 Received 29 bytes
< 2005-10-24 14:39:15.808 WinSCP: this is end-of-file:0
. 2005-10-24 14:39:15.808 Sent 58 bytes
. 2005-10-24 14:39:15.808 There are 0 bytes remaining in the send buffer
. 2005-10-24 14:39:15.808 Sent 1 bytes
. 2005-10-24 14:39:15.808 There are 0 bytes remaining in the send buffer
> 2005-10-24 14:39:15.808 ls -la --full-time ; echo "WinSCP: this is end-of-file:$?"
. 2005-10-24 14:39:15.808 Waiting for another 1 bytes
. 2005-10-24 14:39:15.808 Looking for incoming data
. 2005-10-24 14:39:15.839 Select result is 1
. 2005-10-24 14:39:15.839 Received 1 bytes
. 2005-10-24 14:39:15.839 Received 8 bytes
< 2005-10-24 14:39:15.839 total 28
. 2005-10-24 14:39:15.839 Received 71 bytes
< 2005-10-24 14:39:15.839 drwxr-xr-x 3 user klop 4096 2005-10-24 12:09:16.035909384 -0400 .
. 2005-10-24 14:39:15.839 Received 72 bytes
< 2005-10-24 14:39:15.839 drwxrwxr-x 3 root klop 16384 2005-10-24 14:16:08.349665296 -0400 ..
. 2005-10-24 14:39:15.839 Received 80 bytes
< 2005-10-24 14:39:15.839 drwxr-xr-x 2 user klop 4096 2005-10-24 12:09:12.383464640 -0400 New folder
. 2005-10-24 14:39:15.839 Received 85 bytes
< 2005-10-24 14:39:15.839 -rw-r--r-- 1 user klop 121 2005-10-14 14:34:37.000000000 -0400 examplefile.txt
. 2005-10-24 14:39:15.839 Waiting for another 1 bytes
. 2005-10-24 14:39:15.839 Looking for incoming data
. 2005-10-24 14:39:15.964 Select result is 1
. 2005-10-24 14:39:15.964 Received 1 bytes
. 2005-10-24 14:39:15.964 Received 29 bytes
< 2005-10-24 14:39:15.964 WinSCP: this is end-of-file:0
. 2005-10-24 14:39:15.964 Directory listing with --full-time succeed, next time all errors during directory listing will be displayed immediatelly.
. 2005-10-24 14:39:15.964 Listing file "examplefile.txt".
. 2005-10-24 14:39:15.964 Sent 77 bytes
. 2005-10-24 14:39:15.964 There are 0 bytes remaining in the send buffer
. 2005-10-24 14:39:15.964 Sent 1 bytes
. 2005-10-24 14:39:15.964 There are 0 bytes remaining in the send buffer
> 2005-10-24 14:39:15.964 ls -lad --full-time "examplefile.txt" ; echo "WinSCP: this is end-of-file:$?"
. 2005-10-24 14:39:15.964 Waiting for another 1 bytes
. 2005-10-24 14:39:15.964 Looking for incoming data
. 2005-10-24 14:39:16.011 Select result is 1
. 2005-10-24 14:39:16.011 Received 1 bytes
. 2005-10-24 14:39:16.011 Received 82 bytes
< 2005-10-24 14:39:16.011 -rw-r--r-- 1 user klop 121 2005-10-14 14:34:37.000000000 -0400 examplefile.txt
. 2005-10-24 14:39:16.011 Waiting for another 1 bytes
. 2005-10-24 14:39:16.011 Looking for incoming data
. 2005-10-24 14:39:16.167 Select result is 1
. 2005-10-24 14:39:16.167 Received 1 bytes
. 2005-10-24 14:39:16.167 Received 29 bytes
< 2005-10-24 14:39:16.167 WinSCP: this is end-of-file:0
. 2005-10-24 14:39:16.167 Copying 1 files/directories to local directory "C:\"
. 2005-10-24 14:39:16.167 PrTime: Yes; PrRO: Yes; Rght: rw-r--r--; PrR: No; FnCs: N; RIC: 01; Resume: S (102400); CalcS: No; Mask:
. 2005-10-24 14:39:16.167 TM: M; ClAr: No; ExclM(No):
. 2005-10-24 14:39:16.167 AscM: *.*html; *.htm; *.txt; *.php*; *.cgi; *.c; *.cpp; *.h; *.pas; *.bas; *.tex; *.pl; .htaccess; *.xtml; *.css; *.cfg; *.ini; *.sh; *.xml
. 2005-10-24 14:39:16.167 Sent 112 bytes
. 2005-10-24 14:39:16.167 There are 0 bytes remaining in the send buffer
. 2005-10-24 14:39:16.167 Sent 1 bytes
. 2005-10-24 14:39:16.167 There are 0 bytes remaining in the send buffer
> 2005-10-24 14:39:16.167 echo "WinSCP: this is begin-of-file" ; scp -r -p -d -f "examplefile.txt" ; echo "WinSCP: this is end-of-file:$?"
. 2005-10-24 14:39:16.167 Waiting for another 1 bytes
. 2005-10-24 14:39:16.167 Looking for incoming data
. 2005-10-24 14:39:16.198 Select result is 1
. 2005-10-24 14:39:16.198 Received 1 bytes
. 2005-10-24 14:39:16.198 Received 29 bytes
< 2005-10-24 14:39:16.198 WinSCP: this is begin-of-file
. 2005-10-24 14:39:16.198 Waiting for another 1 bytes
. 2005-10-24 14:39:16.198 Looking for incoming data
. 2005-10-24 14:39:31.198 Select result is 0
. 2005-10-24 14:39:31.198 Waiting for data timed out, asking user what to do.
. 2005-10-24 14:39:31.198 Asking user:
. 2005-10-24 14:39:31.198 Host has not answered for 15 seconds.
. 2005-10-24 14:39:31.198
. 2005-10-24 14:39:31.198 Wait for another 15 seconds? Pressing 'Abort' button will close session. ()
. 2005-10-24 14:39:31.198 Attempt to close connection due to fatal exception:
* 2005-10-24 14:39:31.198 Terminated by user.
. 2005-10-24 14:39:31.198 Closing connection.
_________________
jeff
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24993
Location: Prague, Czechia
Your server may not support SCP. Can you try SFTP?
_________________
Martin Prikryl
jeffgrundy
[View user's profile]

Joined: 2005-10-20
Posts: 4
I am fairly sure that the server supports scp. I am able to use pscp to download. I have emailed the server administrator to confirm that scp is supported.
https://the.earth.li/~sgtatham/putty/0.58/htmldoc/Chapter5.html#pscp
_________________
jeff
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24993
Location: Prague, Czechia
OK, anyway, have you tried SFTP?
_________________
Martin Prikryl
jeffgrundy
[View user's profile]

Joined: 2005-10-20
Posts: 4
Yes SFTP works, I was told that the only protocol supported was SCP. Apparently that is not true.
_________________
jeff
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