Trouble using GXS virtual directories

Advertisement

KRITER
Guest

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.

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
31,464
Location:
Prague, Czechia

Re: Trouble using GXS virtual directories

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

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
31,464
Location:
Prague, Czechia

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

_________________
Martin Prikryl

Reply with quote

Advertisement

You can post new topics in this forum