×
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.
Keep in mind that there is no error checking using the semi-colon separator.
example: STRQSH CMD('cd /home/Mark;ls')
The 'ls' command is going to run regardless of whether or not the 'cd' worked.
Use && as a separator and the preceding command has to have succeeded before the next will go.
Roger Harman
COMMON Certified Application Developer - ILE RPG on IBM i on Power
From: MIDRANGE-L <midrange-l-bounces@xxxxxxxxxxxx> on behalf of Mark Waterbury <mark.s.waterbury@xxxxxxxxxxxxx>
Sent: Wednesday, November 14, 2018 9:29 AM
To: Midrange Systems Technical Discussion
Subject: Re: Qshell question
Hi, James:
The STRQSH (QSH) command accepts a single parameter that contains one or more commands, separated by ";" ...
If it is not too many commands, you could do something like this:
STRQSH CMD('cd /home/Mark;ls')
HTH,
Mark S. Waterbury
From: James H. H. Lampert <jamesl@xxxxxxxxxxxxxxxxx>
To: Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxx>
Sent: Wednesday, November 14, 2018 12:13 PM
Subject: Qshell question
I probably used to know this . . . .
Is there a way to run QSHELL in a batch job, and pass it more than one
command?
Case in point, I'd like to first change the current directory to a
specific IFS directory, and then use JAR to ZIP a bunch of files from
that directory (using a wildcard, which is why neither the ZIP in
UZAEMON's ZLIB port, nor the ZIP in MMAIL, is going to cut it).
--
JHHL
As an Amazon Associate we earn from qualifying purchases.
This thread ...
PASE question, was Re: InfoZip question, Re: JAR question, was Re: Qshell question, (continued)
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.