EDC5137I on Batch SFTP

Discussion of Co:Z sftp, a port of OpenSSH sftp for z/OS
Post Reply
hroman
Posts: 27
Joined: Thu Aug 13, 2009 10:09 am

EDC5137I on Batch SFTP

Post by hroman »

When I run a batch SFTP using COZBATCH, I get the following error message:

stty: !FSUMB045 failed to get termios attributes: EDC5137I Inappropriate I/O control operation. (errno2=0x05BC0119)

The job completes with a RC 0 and the file is transferred successfully (I think).

Any idea what may cause this?

Jerry Roman
dovetail
Site Admin
Posts: 2025
Joined: Thu Jul 29, 2004 12:12 pm

Post by dovetail »

COZBATCH by default will run your login shell. This is is usually caused by having a "stty" command in either /etc/profile or $HOME/.profile.

The stty command will issue this error message if you are not connected with a TTY (terminal).

To avoid the problem, you can do something like this:

if tty -s; then
stty erase ^?
fi
hroman
Posts: 27
Joined: Thu Aug 13, 2009 10:09 am

Post by hroman »

Where is this done? In the PROFILE?
dovetail
Site Admin
Posts: 2025
Joined: Thu Jul 29, 2004 12:12 pm

Post by dovetail »

Yes. The error message that you are seeing is coming from an "stty" command being issued in either /etc/profile or your ~/.profile.
hroman
Posts: 27
Joined: Thu Aug 13, 2009 10:09 am

Post by hroman »

Thanks, that worked.
hroman
Posts: 27
Joined: Thu Aug 13, 2009 10:09 am

Post by hroman »

Are there any plans to provide an updated PDF copy of the Co:Z SFTP Users Guide? The one on the website is an older version and doesn't match the updated HTML version of the guide.
coz
Posts: 392
Joined: Fri Jul 30, 2004 5:29 pm

Post by coz »

Thanks for catching that - it was a bad link. You should be able to get the latest PDF now.
Post Reply