Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

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

KRITER

Thanks!!!
martin

Re: The log

The cd command did not made it to WinSCP, because you are not redirecting the echo cd ... to the script file:

echo cd /5050406903165/CLARKSTEST/SALESO
KRITER

The log

. 2013-08-14 11:09:51.024 --------------------------------------------------------------------------
. 2013-08-14 11:09:51.024 WinSCP Version 5.1.6 (compilación 3394) (OS 5.1.2600 Service Pack 3)
. 2013-08-14 11:09:51.024 Configuration: C:\Archivos de programa\WinSCP\WinSCP.ini
. 2013-08-14 11:09:51.024 Local account: KRITER\acubero
. 2013-08-14 11:09:51.024 Working directory: P:\cosmos\projects\kremp\kraux\krclarks\krfiles\tmp\proceso
. 2013-08-14 11:09:51.024 Process ID: 5260
. 2013-08-14 11:09:51.024 Command-line: "C:\Archivos de programa\WinSCP\WinSCP.exe" /console=516 /consoleinstance=_6080_596 "/script=script.tmp" "/xmllog:p:\cosmos\projects\kremp\kraux\krclarks\krfiles\tmp\proceso\log.xml"
. 2013-08-14 11:09:51.024 Time zone: Current: GMT+2, Standard: GMT+1, DST: GMT+2, DST Start: 31/03/2013, DST End: 27/10/2013
. 2013-08-14 11:09:51.024 Login time: miércoles, 14 de agosto de 2013 11:09:51
. 2013-08-14 11:09:51.024 --------------------------------------------------------------------------
. 2013-08-14 11:09:51.024 Session name: 5050406903165@204.90.181.225 (Ad-Hoc session)
. 2013-08-14 11:09:51.024 Host name: 204.90.181.225 (Port: 22)
. 2013-08-14 11:09:51.024 User name: 5050406903165 (Password: Yes, Key file: No)
. 2013-08-14 11:09:51.024 Tunnel: No
. 2013-08-14 11:09:51.024 Transfer Protocol: SFTP
. 2013-08-14 11:09:51.024 Ping type: -, Ping interval: 30 sec; Timeout: 15 sec
. 2013-08-14 11:09:51.024 Proxy: none
. 2013-08-14 11:09:51.024 SSH protocol version: 2; Compression: No
. 2013-08-14 11:09:51.024 Bypass authentication: No
. 2013-08-14 11:09:51.024 Try agent: Yes; Agent forwarding: No; TIS/CryptoCard: No; KI: Yes; GSSAPI: No
. 2013-08-14 11:09:51.024 Ciphers: aes,blowfish,3des,WARN,arcfour,des; Ssh2DES: No
. 2013-08-14 11:09:51.024 SSH Bugs: A,A,A,A,A,A,A,A,A,A
. 2013-08-14 11:09:51.024 Return code variable: Autodetect; Lookup user groups: A
. 2013-08-14 11:09:51.024 Shell: default
. 2013-08-14 11:09:51.024 EOL: 0, UTF: 2
. 2013-08-14 11:09:51.024 Clear aliases: Yes, Unset nat.vars: Yes, Resolve symlinks: Yes
. 2013-08-14 11:09:51.024 LS: ls -la, Ign LS warn: Yes, Scp1 Comp: No
. 2013-08-14 11:09:51.024 Local directory: default, Remote directory: home, Update: Yes, Cache: Yes
. 2013-08-14 11:09:51.024 Cache directory changes: Yes, Permanent: Yes
. 2013-08-14 11:09:51.024 DST mode: 1; Timezone offset: 0h 0m
. 2013-08-14 11:09:51.024 --------------------------------------------------------------------------
. 2013-08-14 11:09:51.024 Looking up host "204.90.181.225"
. 2013-08-14 11:09:51.024 Connecting to 204.90.181.225 port 22
. 2013-08-14 11:09:51.117 Server version: SSH-2.0-GXSSSHD_Comments
. 2013-08-14 11:09:51.117 Using SSH protocol version 2
. 2013-08-14 11:09:51.117 We claim version: SSH-2.0-WinSCP_release_5.1.6
. 2013-08-14 11:09:51.164 Using Diffie-Hellman with standard group "group14"
. 2013-08-14 11:09:51.164 Doing Diffie-Hellman key exchange with hash SHA-1
. 2013-08-14 11:09:51.492 Verifying host key rsa2 0x10001,0xadf9cb6928438b40 382b63aa4bf6ff2a 02a62e178973a88c 40cb72f21f2e9442 53b9b302163ea8fb f38e99d2337959e3 28ebca1ca397c3f1 7a1d119902e6cc0f e972593ee82ca3de a12fbccb3f798450 83eb7a70129288ce 0952aaddf2b1609a 1b1e6749033579c4 95f088d88224cf24 cff01533b25c67eb 1512869149a0ba77  with fingerprint ssh-rsa 1024 4b:73:fa:7c:75:83:62:70:54:01:43:69:7e:94:6c:6c
. 2013-08-14 11:09:51.492 Host key matches configured key
. 2013-08-14 11:09:51.492 Host key fingerprint is:
. 2013-08-14 11:09:51.492 ssh-rsa 1024 4b:73:fa:7c:75:83:62:70:54:01:43:69:7e:94:6c:6c
. 2013-08-14 11:09:51.492 Initialised AES-256 CBC client->server encryption
. 2013-08-14 11:09:51.492 Initialised HMAC-SHA1 client->server MAC algorithm
. 2013-08-14 11:09:51.492 Initialised AES-256 CBC server->client encryption
. 2013-08-14 11:09:51.492 Initialised HMAC-SHA1 server->client MAC algorithm
! 2013-08-14 11:09:51.586 Using username "5050406903165".
. 2013-08-14 11:09:51.633 Prompt (7, SSH password, , &Contraseña)
. 2013-08-14 11:09:51.633 Using stored password.
. 2013-08-14 11:09:51.633 Sent password
. 2013-08-14 11:09:51.695 Access granted
. 2013-08-14 11:09:51.742 Opened channel for session
. 2013-08-14 11:09:51.883 Started a shell/command
. 2013-08-14 11:09:51.883 --------------------------------------------------------------------------
. 2013-08-14 11:09:51.883 Using SFTP protocol.
. 2013-08-14 11:09:51.883 Doing startup conversation with host.
> 2013-08-14 11:09:51.883 Type: SSH_FXP_INIT, Size: 5, Number: -1
< 2013-08-14 11:09:51.930 Type: SSH_FXP_VERSION, Size: 5, Number: -1
. 2013-08-14 11:09:51.930 SFTP version 3 negotiated.
. 2013-08-14 11:09:51.930 We believe the server has signed timestamps bug
. 2013-08-14 11:09:51.930 We will use UTF-8 strings for status messages only
. 2013-08-14 11:09:51.930 Getting current directory name.
. 2013-08-14 11:09:51.930 Getting real path for '.'
> 2013-08-14 11:09:51.930 Type: SSH_FXP_REALPATH, Size: 10, Number: 16
< 2013-08-14 11:09:51.977 Type: SSH_FXP_NAME, Size: 61, Number: 16
. 2013-08-14 11:09:51.977 Real path is '/5050406903165'
. 2013-08-14 11:09:51.977 Startup conversation with host finished.
< 2013-08-14 11:09:51.977 Script: Sesión activa: [1] 5050406903165@204.90.181.225
> 2013-08-14 11:09:51.977 Script: put P:\cosmos\projects\kremp\kraux\krclarks\krfiles\tmp\proceso\SALESO_20130812173401.txt
. 2013-08-14 11:09:51.977 Copying 1 files/directories to remote directory "/5050406903165"
. 2013-08-14 11:09:51.977   PrTime: Yes; PrRO: No; Rght: rw-r--r--; PrR: No (No); FnCs: N; RIC: 0100; Resume: S (102400); CalcS: No; Mask:
. 2013-08-14 11:09:51.977   TM: B; ClAr: No; CPS: 0; InclM:
. 2013-08-14 11:09:51.977   AscM: *.*html; *.htm; *.txt; *.php; *.php3; *.cgi; *.c; *.cpp; *.h; *.pas; *.bas; *.tex; *.pl; *.js; .htaccess; *.xtml; *.css; *.cfg; *.ini; *.sh; *.xml
. 2013-08-14 11:09:51.977 File: "P:\cosmos\projects\kremp\kraux\krclarks\krfiles\tmp\proceso\SALESO_20130812173401.txt"
. 2013-08-14 11:09:51.977 Copying "P:\cosmos\projects\kremp\kraux\krclarks\krfiles\tmp\proceso\SALESO_20130812173401.txt" to remote directory started.
. 2013-08-14 11:09:51.977 Binary transfer mode selected.
. 2013-08-14 11:09:51.977 Opening remote file.
> 2013-08-14 11:09:51.977 Type: SSH_FXP_OPEN, Size: 65, Number: 259
< 2013-08-14 11:09:52.055 Type: SSH_FXP_HANDLE, Size: 33, Number: 259
> 2013-08-14 11:09:52.055 Type: SSH_FXP_WRITE, Size: 3173, Number: 774
> 2013-08-14 11:09:52.055 Type: SSH_FXP_CLOSE, Size: 33, Number: 1028
> 2013-08-14 11:09:52.055 Type: SSH_FXP_SETSTAT, Size: 61, Number: 521
< 2013-08-14 11:09:52.180 Type: SSH_FXP_STATUS, Size: 49, Number: 774
< 2013-08-14 11:09:52.180 Type: SSH_FXP_STATUS, Size: 40, Number: 1028
< 2013-08-14 11:09:52.180 Status code: 0
. 2013-08-14 11:09:52.180 Preserving timestamp [2013-08-12T14:34:01.000Z]
< 2013-08-14 11:09:52.180 Type: SSH_FXP_STATUS, Size: 40, Number: 521
< 2013-08-14 11:09:52.180 Status code: 0
> 2013-08-14 11:09:52.180 Script: close
. 2013-08-14 11:09:52.180 Closing connection.
. 2013-08-14 11:09:52.180 Sending special code: 12
. 2013-08-14 11:09:52.180 Sent EOF message
martin

Re: Trouble using GXS virtual directories

Please attach a full session (not XML) log file showing the problem (using the latest version of WinSCP).
KRITER

Trouble using GXS virtual directories

Hi,

First, I'm spanish, my english it's not very good. Sorry

I'm using WinSCP to upload and download files from GXS. They use virtual directories and when I upload files to their folder I can't see the uploaded file
I'm use this script (I hide the user/password for security. I'm using MYUSER, MYPASSWORD,GXSIP, FINGERPRINTER words below, but I use the correct credentials)

rem Generar script
echo option batch abort > script.tmp
echo option confirm off >> script.tmp
rem Connect using a password
echo open sftp://MYUSER:MYPASSWORD@GXSIP -hostkey="ssh-rsa 1024 FINGERPRINTER" >> script.tmp
echo cd /5050406903165/CLARKSTEST/SALESO
echo put P:\cosmos\projects\kremp\kraux\krclarks\krfiles\tmp\proceso\SALESO_20130812173401.txt >> script.tmp
echo close >> script.tmp
echo exit >> script.tmp
rem Execute script.tmp
winscp.com /script=script.tmp /xmllog:p:\cosmos\projects\kremp\kraux\krclarks\krfiles\tmp\proceso\log.xml
rem Borrar el script temporal
del script.tmp

The log file said:
<?xml version="1.0" encoding="UTF-8"?>
<session xmlns="https://winscp.net/schema/session/1.0" name="5050406903165@204.90.181.225" start="2013-08-12T14:34:02.666Z">
<upload>
<filename value="\\Canigo\Kriter\cosmos\projects\kremp\kraux\krclarks\krfiles\tmp\proceso\SALESO_20130812173401.txt" />
<destination value="/5050406903165/SALESO_20130812173401.txt" />
<result success="true" />
</upload>
<touch>
<filename value="/5050406903165/SALESO_20130812173401.txt" />
<modification value="2013-08-12T14:34:01.000Z" />
<result success="true" />
</touch>
</session>

I see in the log that the destination value it's not the remote folder (cd /5050406903165/CLARKSTEST/SALESO) that I use in the script. Then the GXS support said they doesn't see the files, because their folder are virtual

Using WinSCP 5.1.6(3394)on Windows XP SP3.

Can you help me? Thanks

Note: If I use GUI WinSCP when I upload files to the remote folder the result it's the same, the file is stored in the main folder.