|
Trying this method. One, it didn't work. Two, it still prompted me to enter at end instead of just completing.
Might this be a qsHell vs qp2term issue?
edtf '/home/ADOPT/test.sh'
************Beginning of data**************
ssh -T -v -v -v -i .ssh/id_rsa_user ADOPT@as2edi01 "dir >/users/ADOPT/testdirout1421.txt"
************End of Data********************
QSH CMD('/QOpenSys/usr/bin/sh -c "/home/ADOPT/test.sh"')
Command ended normally with exit status 126.
Looked up that QSH0005 message.
ADDENVVAR ENVVAR(QIBM_QSH_CMD_OUTPUT) VALUE(STDOUT) LEVEL(*JOB)
Ran it again.
/QOpenSys/usr/bin/sh: /home/ADOPT/test.sh: 0403-006 Execute permission denied
CHGAUT OBJ('/home/adopt/test.sh') USER(*PUBLIC) DTAAUT(*RWX)
(it was missing the X)
Ran it again.
/home/ADOPT/test.sh: 0403-057 Syntax error at line 1 : ``' is not matched.
Rob Berendt
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.