× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Hello,

I trying to submit a job on the iSeries to submit a remote command on the
target iSeries passing in parameters but I am hitting a brick wall :-(

My CL does this

QSH CMD(&COMAND) and the parameter &COMAND is this

ssh -T SFTPTST@xxxxxxxxxxxxxx 'system "sbmjob cmd(CALL PGM(QGPL/XXXXXXX)
parm('DANNYT' 'Joe.Blogs@xxxxxxxxxxxxxx')) job(SRVDPRF) HOLD(*YES)
JOBQ(QBATCH) " '

This works fine and submits the job on the target machine....but I have to
press enter on my machine to close the terminal session. So I tried to
submit the job on my machine so it could run in batch

CALL PGM(QCMDEXC) PARM(&COMAND &LENGTH)

but this time &COMAND looks like this

SBMJOB CMD(QSH CMD ('/QOpenSys/bin/ssh -T SFTPTST@xxxxxxxxxxxxxx 'system
"sbmjob cmd(CALL PGM(QGPL/XXXXXXX) parm('DANNYT'
'Joe.Blogs@xxxxxxxxxxxxxx')) job(SRVDPRF) HOLD(*YES) JOBQ(QBATCH) " ''))
job(SRVDPRF) HOLD(*YES) JOBQ(QBATCH)

But I cannot get this to work......can anyone help please.....I've pulled
out to much hair on this already :-(

Thankyou

Regards
Andy

Martin Dawes Systems
t. 01925-55-5316
e Andrew_Smith@xxxxxxxxx
w. www.martindawessystems.com

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-2024 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.