Using wildcards in WinSCP (sftp)

Advertisement

ldl
Guest

Using wildcards in WinSCP (sftp)

I can't seem to get WinSCP to work using wildcards. I am running WinSCP in console/script mode. I checked the log and it seems to put quotes around both local and remote filenames. Do I need to set something to get this to work?

This is the log file for removing some files on the remote server. I have also tried using a wildcard for copying from local to remote with the same problem.

thanks.

. --------------------------------------------------------------------------
. WinSCP Version 3.7.1 (Build 257) (OS 5.0.2195 Service Pack 4)
. Login time: Wednesday, November 24, 2004 9:45:57 AM
. --------------------------------------------------------------------------
. Session name: FPC@ftp.odshp.com
. Host name: ftp.odshp.com (Port: 22)
. User name: FPC (Password: Yes, Key file: No)
. Transfer Protocol: SFTP (SCP)
. SSH protocol version: 2; Compression: No
. Agent forwarding: No; TIS/CryptoCard: No; KI: Yes; GSSAPI: No
. Ciphers: aes,blowfish,3des,WARN,des; Ssh2DES: No
. Ping type: -, Ping interval: 30 sec; Timeout: 15 sec
. SSH Bugs: -,-,-,-,-,-,-,-,
. Proxy: none
. Return code variable: Autodetect; Lookup user groups: Yes
. Shell: default, EOL: 0
. Local directory: default, Remote directory: home, Update: No, Cache: Yes
. Cache directory changes: Yes, Permanent: Yes
. Clear aliases: Yes, Unset nat.vars: Yes, Resolve symlinks: Yes
. Alias LS: No, Ign LS warn: Yes, Scp1 Comp: No
. --------------------------------------------------------------------------
. Looking up host "ftp.odshp.com"
. Connecting to 206.163.221.130 port 22
. Server version: SSH-1.99-3.2.9.1 SSH Secure Shell (non-commercial)
. We claim version: SSH-2.0-WinSCP-release-3.7.1
. Using SSH protocol version 2
. Doing Diffie-Hellman key exchange
. Host key fingerprint is:
. ssh-dss 1024 a7:6f:9e:45:9e:a9:73:2d:b5:60:03:8f:28:c3:e7:50
. Initialised AES-256 client->server encryption
. Initialised AES-256 server->client encryption
. Initialised HMAC-SHA1 client->server MAC algorithm
. Initialised HMAC-SHA1 server->client MAC algorithm
! Using username "FPC".
. Session password prompt (FPC@ftp.odshp.com's password: )
. Using stored password.
. Sent password
. Access granted
. Opened channel for session
. Started a shell/command
. --------------------------------------------------------------------------
. Using SFTP protocol.
. Doing startup conversation with host.
> Type: SSH_FXP_INIT, Size: 5, Number: -1
< Type: SSH_FXP_VERSION, Size: 33, Number: -1
. SFTP version 3 negotiated.
. Unknown server extension newline@vandyke.com=0x0A
> Type: SSH_FXP_EXTENDED, Size: 38, Number: 200
< Type: SSH_FXP_STATUS, Size: 89, Number: 200
< Status/error code: 8
. Server does not recognise WinSCP.
. Getting current directory name.
. Getting real path for '.'
> Type: SSH_FXP_REALPATH, Size: 10, Number: 528
< Type: SSH_FXP_NAME, Size: 79, Number: 528
. Real path is '/usr/local/users/popusers/FPC'
. Startup conversation with host finished.
. Listing file "test/out".
> Type: SSH_FXP_LSTAT, Size: 47, Number: 775
< Type: SSH_FXP_ATTRS, Size: 37, Number: 775
. File: "/usr/local/users/popusers/FPC/test/out"
. Listing directory "/usr/local/users/popusers/FPC/test/out".
> Type: SSH_FXP_OPENDIR, Size: 47, Number: 1035
< Type: SSH_FXP_HANDLE, Size: 17, Number: 1035
> Type: SSH_FXP_READDIR, Size: 17, Number: 1292
< Type: SSH_FXP_NAME, Size: 636, Number: 1292
> Type: SSH_FXP_READDIR, Size: 17, Number: 1548
< Type: SSH_FXP_STATUS, Size: 22, Number: 1548
< Status/error code: 1
> Type: SSH_FXP_CLOSE, Size: 17, Number: 1796
< Type: SSH_FXP_STATUS, Size: 21, Number: 1796
< Status/error code: 0
. File: "/usr/local/users/popusers/FPC/test/out/FPC99720041122141203.DAT"
. Copying "/usr/local/users/popusers/FPC/test/out/FPC99720041122141203.DAT" to local directory started.
. Binary transfer mode selected.
. Opening remote file.
> Type: SSH_FXP_OPEN, Size: 80, Number: 2051
< Type: SSH_FXP_HANDLE, Size: 17, Number: 2051
> Type: SSH_FXP_READ, Size: 29, Number: 2309
< Status/error code: 1
. 3 skipped SSH_FXP_WRITE, SSH_FXP_READ, SSH_FXP_DATA and SSH_FXP_STATUS packets.
> Type: SSH_FXP_CLOSE, Size: 17, Number: 2820
< Type: SSH_FXP_STATUS, Size: 21, Number: 2820
< Status/error code: 0
. File: "/usr/local/users/popusers/FPC/test/out/FPC99720041124064027.DAT"
. Copying "/usr/local/users/popusers/FPC/test/out/FPC99720041124064027.DAT" to local directory started.
. Binary transfer mode selected.
. Opening remote file.
> Type: SSH_FXP_OPEN, Size: 80, Number: 3075
< Type: SSH_FXP_HANDLE, Size: 17, Number: 3075
> Type: SSH_FXP_READ, Size: 29, Number: 3333
< Status/error code: 1
. 3 skipped SSH_FXP_WRITE, SSH_FXP_READ, SSH_FXP_DATA and SSH_FXP_STATUS packets.
> Type: SSH_FXP_CLOSE, Size: 17, Number: 3844
< Type: SSH_FXP_STATUS, Size: 21, Number: 3844
< Status/error code: 0
. File: "/usr/local/users/popusers/FPC/test/out/FPC99720041124083751.DAT"
. Copying "/usr/local/users/popusers/FPC/test/out/FPC99720041124083751.DAT" to local directory started.
. Binary transfer mode selected.
. Opening remote file.
> Type: SSH_FXP_OPEN, Size: 80, Number: 4099
< Type: SSH_FXP_HANDLE, Size: 17, Number: 4099
> Type: SSH_FXP_READ, Size: 29, Number: 4357
< Status/error code: 1
. 3 skipped SSH_FXP_WRITE, SSH_FXP_READ, SSH_FXP_DATA and SSH_FXP_STATUS packets.
> Type: SSH_FXP_CLOSE, Size: 17, Number: 4868
< Type: SSH_FXP_STATUS, Size: 21, Number: 4868
< Status/error code: 0
. Deleting file "test/out/*".
> Type: SSH_FXP_REMOVE, Size: 49, Number: 5133
< Type: SSH_FXP_STATUS, Size: 100, Number: 5133
< Status/error code: 2, Message: 5133, Server: syserr: No such file or directory, file: /usr/local/users/popusers/FPC/test/out/*, Language: en
. Asking user:
. Error deleting file 'test/out/*'. ("No such file or directory.
. Error code: 2
. Error message from server: syserr: No such file or directory, file: /usr/local/users/popusers/FPC/test/out/* (en)
. Request code: 13")
. Closing connection.

Reply with quote

Advertisement

Advertisement

You can post new topics in this forum