MIDRANGE dot COM Mailing List Archive



MIDRANGE-L » February 2013

Execute remote script (.sh) via ssh



Hello,

Hope someone can help me on this.

I have script file which runs fine when I run an interactive ssh
connection
here are the commands:-

ssh -Tvvvv Userid@remoteiseries
/MDS/utilities/Websphere-Commands/customer/batch.sh

This works fine and runs the script.

Now in my test CL I have:-

CHGVAR &RMTUSR ('ssh -Tvvv -n Userid@remoteiseries')

CHGVAR &COMAND (&RMTUSR *BCAT '''system "QSH
CMD(''/MDS/utilities/Websphere-Commands/customer/batch.sh'')"''')

Yet when I run the CL program in batch it does not work and gives me a
CPD0011 - Qualifier missing from qualified name 'MDS ' & CPF0006
errors

Can anyone help please ?

Thankyou

Regards
Andy





Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2013 by MIDRANGE dot 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 here. If you have questions about this, please contact