Wait till PUT is completed

Advertisement

LaurentzT
Guest

Wait till PUT is completed

Hi,

I use this code to upload a document, starting from a cmd.exe:

\\...SFTP\WinSCP.com "/command" "open sftp://USER:PASS@ftpedi.group.com/home/COMPANY/DATA/IN/" "put \\...\B98_VERBAU_____WMS-VIO____1419.DFD"

When I start it like this, it works and the file gets uploaden. But when I call a exit after the PUT, the program does't wait till the file is uploaded and exit the cmd to early...

Any tips or tricks for it?

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
29,300
Location:
Prague, Czechia

Re: Wait till PUT is completed

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

To generate the session log file, use /log=path_to_log_file command-line argument. Submit the log with your post as an attachment. Note that passwords and passphrases not stored in the log. You may want to remove other data you consider sensitive though, such as host names, IP addresses, account names or file names (unless they are relevant to the problem). If you do not want to post the log publicly, you can mark the attachment as private.

Reply with quote

LaurentzT
Guest

Re: Wait till PUT is completed

Hi,

I tried it with the latest version but it is still the same.
Can you help me with the command because I can't get it to work with the logging if I shell execute it:

\\path\SFTP\WinSCP.com "/command" "open sftp://user:pass@ftpedi-group.com/home/VER/DATA/ /log=C:\log.log" "put \\ver.be\workspace\Prog\Firmware\TransportShipmentEDI\\B98_VERBAU_____WMS-VUO____9884.DFD"

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
29,300
Location:
Prague, Czechia

Re: Wait till PUT is completed

The /log switch must be outside of the script commands:

\\path\SFTP\WinSCP.com /log=C:\log.log "/command" "open sftp://user:pass@ftpedi-group.com/home/VER/DATA/" "put \\ver.be\workspace\Prog\Firmware\TransportShipmentEDI\\B98_VERBAU_____WMS-VUO____9884.DFD"

Reply with quote

Advertisement

You can post new topics in this forum