Hi
I've written some CL that runs and sFTP script via QSH, it all works great but every time it executes I'm left with a spool file for QPRINT containing a single line of text
"select: A file descriptor does not refer to an open file."
This does not impact on the program but I generate hundreds of these week and would really like to find a way of stopping them from being generated.
Sample of code below, many thanks
/* Set the environment values to pipe responses into a file */
ADDENVVAR ENVVAR(QIBM_QSH_CMD_OUTPUT) +
VALUE('FILE=/home/davidnei/sftp02_output.txt') REPLACE(*YES)
ADDENVVAR ENVVAR(QIBM_QSH_CMD_ESCAPE_MSG) VALUE(Y) REPLACE(*YES)
/* sFTP into web server using commands in script file web02.txt*/
QSH CMD('PATH=$PATH:/QOpenSys/usr/bin && sftp -b +
/home/webuser/web02.txt
web...@172.16.32.13')