In my CLP that I run in batch, I have these two statements:

QSH CMD('/QOPENSYS/etc/openssh_password_script.sh')
IF COND(%SST(&FLIB 3 1) *EQ 'P') THEN(+
QSH CMD('exec /QOpenSys/usr/bin/ksh -c +
"/home/intrepid/P_batch_scp_script.sh"'))

openssh_password_script.sh contains:

#!/bin/sh
printf aCtua!pwdHere

and P_batch_scp_script.sh contains:

#!/bin/sh

export DISPLAY= SSH_ASKPASS=/QOpenSys/etc/openssh_password_script.sh

printf | scp /TempP/file.TXT user@name@xxxxxxxxxxxxxxx:/remotedirectory

within 1 second, 30,266 JOBLOGs were created with the Job Name QZSHSH and
each contained:

*...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8....+....9....+....0....+....1....+....2....+....3
5770SS1 V7R4M0 190621 Job Log
PROD720 12/15/21 09:24:12 PST Page 1
Job name . . . . . . . . . . : QZSHSH User . . . . . . :
SANTUCIR Number . . . . . . . . . . . : 490396
Job description . . . . . . : ITCORPCM Library . . . . . :
QGPL
MSGID TYPE SEV DATE TIME FROM
PGM LIBRARY INST TO PGM LIBRARY INST
CPF2523 Completion 30 12/15/21 09:24:12
QMHJLOG QSYS *N *EXT *N
Message . . . . : No job log
information.
Cause . . . . . : The job log was
not displayed for one of the following
reasons: The message logging level
has been zero from the beginning of the
job. There are no messages on the
job message queue. When printing messages
that were wrapped, no messages that
appear in a job log were removed. Only
messages used internally were
removed. The job message queue could not be
found.


What am I doing wrong?

Thanks!

Bob


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2022 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.