cozsftp default behavior

Discussion of Co:Z sftp, a port of OpenSSH sftp for z/OS
Post Reply
cschneid
Posts: 4
Joined: Fri Apr 13, 2012 1:24 pm

cozsftp default behavior

Post by cschneid »

We observe cozsftp stops executing commands after the first error. Consider, for example...

Code: Select all

cozsftp [options and credentials]
get junkfile.txt '//DD:OUTPUT01'
get goodfile.txt '//DD:OUTPUT02'
EOB
...where junkfile.txt doesn't exist on the remote server. The "get" of goodfile.txt does not execute. It appears that cozsftp ceases execution after encountering an error.

Two questions: is this default behavior? Is this customisable?

We prefer the behavior we currently observe, we are concerned it may change if (say) installation defaults change.

Thank you.
dovetail
Site Admin
Posts: 2025
Joined: Thu Jul 29, 2004 12:12 pm

Re: cozsftp default behavior

Post by dovetail »

Co:Z SFTP is based on (an extension of) OpenSSH sftp.

This is the way that OpenSSH sftp and CO:Z SFTP works when running the sftp client in batch mode.
See: http://www.openbsd.org/cgi-bin/man.cgi? ... &sektion=1

refer to the description of the "-b" option. For the sub-commands (listed) that cause sftp to exit on failure, you can prevent a subcommand from exiting if you preced the command name with "-"
cschneid
Posts: 4
Joined: Fri Apr 13, 2012 1:24 pm

Re: cozsftp default behavior

Post by cschneid »

Thank you for your reply, that is exactly what I needed to know.
Post Reply