WinSCP support of /+ and //-

Discussion of Co:Z sftp, a port of OpenSSH sftp for z/OS
Post Reply
dabills
Posts: 41
Joined: Thu May 19, 2011 9:56 am

WinSCP support of /+ and //-

Post by dabills »

We are using WinSCP for some scripting and have run into some issues with these commands:

ls /+
Results in: ls: FSUM6785 File or directory "/+" is not found

cd //-jes.intrdr
Results in: cd: //-jes.intrdr: EDC5129I No such file or directory.

It appears WinSCP doesn't like the /+ or //-. Is there some way around this?
dovetail
Site Admin
Posts: 2022
Joined: Thu Jul 29, 2004 12:12 pm

Re: WinSCP support of /+ and //-

Post by dovetail »

From the UI, opening directory "/+" or "//-" works fine. Do this work for you? Otherwise, you might be connecting to the IBM sftp-server rather than Co:Z SFTP server.

If the interactive commands work for you, please attach a small example of a complete failing script and the version of WinSCP that you are using and I will try to reproduce.

Note: the biggest problem with WinSCP is that it sometimes creates a new/separate SFTP session for file transfers. So if you interactively set options in the main session, but these won't be seen for the file transfer. When this happens depends on the release, the configuration, and the operation that you are doing. If you look at the Co:Z SFTP server session logs that are created, you can see this happening. One way to avoid this issue is to use pattern rules in your Co:Z cozsftp_server_config file (user or system level) so that you don't need interactive options.
Post Reply