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



To expand further: For real power, get into PASE and its modern shell and
languages.

First of all /QOpenSys/pkgs/bin/bash is vastly more powerful than /bin/bsh.

You can spend the rest of your career exploring bash :)

Then there is python, esp. python3.

I'm a longtime bash scripter, but more and more I'm using python3.

I'll be presenting on this sort of stuff in the winter Common virtual conf.

On Wed, Nov 14, 2018 at 10:51 AM Rob Berendt <rob@xxxxxxxxx> wrote:

Expanding upon Jack's answer...

Let's say '/home/rob/sample.sh' contains
....+....1....+....2....+....3....+....4....
************Beginning of data**************
cp /home/rob/sample.sh /home/rob/copy1.sh
cp /home/rob/sample.sh /home/rob/copy2.sh
************End of Data********************

QSH CMD('/home/rob/sample.sh')
would perform both of those copies.

Shell language supports some control structure, like this sample:
************Beginning of data**************
cd /
for i in "barneyphil editpdta home" # add whatever dirs to this list you
want to search
do
find $i | grep "?ce_core.log"
done
************End of Data********************


Rob Berendt
--
IBM Certified System Administrator - IBM i 6.1
Group Dekko
Dept 1600
Mail to: 2505 Dekko Drive
Garrett, IN 46738
Ship to: Dock 108
6928N 400E
Kendallville, IN 46755
http://www.dekko.com





From: "Jack Woehr" <jwoehr@xxxxxxxxxxxxxxxxxxxxxxxx>
To: "Midrange Systems Technical Discussion" <midrange-l@xxxxxxxxxxxx>
Date: 11/14/2018 12:21 PM
Subject: Re: Qshell question
Sent by: "MIDRANGE-L" <midrange-l-bounces@xxxxxxxxxxxx>



Have QSH execute a script that contains the actions you want.

On Wed, Nov 14, 2018 at 10:13 AM James H. H. Lampert <
jamesl@xxxxxxxxxxxxxxxxx> wrote:

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
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/midrange-l.

Please contact support@xxxxxxxxxxxx for any subscription related
questions.

Help support midrange.com by shopping at amazon.com with our affiliate
link: https://amazon.midrange.com



--
Absolute Performance, Inc.
12303 Airport Way, Suite 100
Broomfield, CO 80021

NON-DISCLOSURE NOTICE: This communication including any and all
attachments is for the intended recipient(s) only and may contain
confidential and privileged information. If you are not the intended
recipient of this communication, any disclosure, copying further
distribution or use of this communication is prohibited. If you received
this communication in error, please contact the sender and delete/destroy
all copies of this communication immediately.
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/midrange-l.

Please contact support@xxxxxxxxxxxx for any subscription related
questions.

Help support midrange.com by shopping at amazon.com with our affiliate
link: https://amazon.midrange.com



--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/midrange-l.

Please contact support@xxxxxxxxxxxx for any subscription related
questions.

Help support midrange.com by shopping at amazon.com with our affiliate
link: https://amazon.midrange.com




As an Amazon Associate we earn from qualifying purchases.

This thread ...

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.