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



Here is how I start Tomcat from a CL program.  Perhaps it will help:

PGM
SBMJOB CMD(QSH CMD('export as + CATALINA_HOME=/jakarta-tomcat-5.0.28;export + as + CATALINA_BASE=/jakarta-tomcat-5.0.28;export + as + CATALINA_TMPDIR=/jakarta-tomcat-5.0.28/temp+ ;/jakarta-tomcat-5.0.28/bin/catalina.sh + start')) JOB(STRTC528C) JOBQ(QSYSNOMAX) + CPYENVVAR(*YES) ALWMLTTHD(*YES) ENDPGM

Basic QSH syntax would be QSH CMD('command to start')

It is the embedded "'" that will get you. In that case you may want to build the string as a variable and pass it.

Pete


Jen Raihala wrote:

It has been since I was in tech college that I used
CL. While I can read it, I have lost the knack for
"whipping up a simple driver that calls a series of
"stuff" on the fly".

I need to make a call to QSH (qshell) with a set
string.
Then I need to call 2 RPG programs in sequence (Call
PGM(program1), call PGM(program2) at least I think I
remember that much!).
Then I need to place 2 more calls to QSH with a set
string for each.

Looking in the book I had in school doesnt help much
as some of the directions it gives serves to only
light my screen green with "hey! Ya can't do that!"
messages.

How can I declare my strings as set variables (they
need the ' at both ends. is that ''?)

Thanks in advance (I cant get to Orlando fast enough
after this week!!).

JenR
Struggling...but learning...then forgetting and moving
on...until...someone says: Hey! Didn't you?...

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

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.