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



Aaron

I may have this a little wrong, but I hope I'm close enough when I say the following.

PASE runs a version of AIX, different at each level of OS/400 or i5/OS. It is not an emulation - it actually runs directly on the metal. It has nothing to do with SLIC or the MI layer, whereas QShell does. QShell has some weird behaviors, especially around case sensitivity, where it is only partially done as one would expect from a *nix emulation. I forget the details right now.

So things will scream in PASE, sometimes. We in our development have started to take advantage of some of the pre-compiled binaries and all that are available, freely. They've usually been around for years and are quite solid.

Shells are like CL - command line interpreters. We could have different ones on the iSeries, controlled by routing entries, I suppose. Each shell has slight differences in the way it handles things - so shell scripts usually have a line that says which shell to use to interpret the following commands. Also, things like command history will vary, what prompts look like and how you change that, you know - far too many toys, right?

Most of the QShel utilities are located in /usr/bin in the stream-file portion of the IFS. Almost all of them are SYMLNK->PGM, and if you take a 12 option on one, you will see a path that leads to a program in library QSHELL. And you can write utitlities that handle C-style parameters and make a symbolic link to them, and QShell will be able to run them. Now you have more to play with, eh?

HTH
Vern

-------------- Original message ----------------------
From: "Aaron Bartell" <albartell@xxxxxxxxx>
Hi all,



In my efforts to get my 'sed' script to run fast I thought I would open a
PASE terminal session using CALL QP2TERM which brings up a different shell
than STRQSH, and SURPRISE! - the sed script ran at the speed I was
expecting.



So here's my question: Are there _two_ separate pseudo *nix environments on
the iSeries? Using STRQSH (or QSH CMD(.) from RPG) my results were VERY
slow. Doing the EXACT same sed statement in CALL QP2TERM session was 1/10th
the time of execution, which is the amount of time I was expecting.



For an immediate fix to my needs I am looking to use Qp2RunPase from my RPG
to run the sed command. But I still have a nagging question in my mind as
to how everything on the *nix side relates to each other. From the
infocenter I found this sentence that sort of gives an idea to the overall
infrastructure, but not entirely:



" OS/400 PASE also includes the Korn, Bourne, and C shells and nearly 200
utilities that provide a powerful scripting environment." -
http://www.esyurl.com/2m0



As I understand it, Korn=QP2TERM and C Shells=QShell, is that right?



TIA,

Aaron Bartell

http://mowyourlawn.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: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.



As an Amazon Associate we earn from qualifying purchases.

This thread ...


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.