|
Manuel,
That'd be true if we were interested in PASE, but the OP (as shown in
the subject line) is interested in QShell. Since 'which' is a PASE
utiiity, it will not find all QShell tools.
But, the IBM-supplied ones are in /usr/bin, so you can do:
STRQSH
$ ls -l /usr/bin/rm
It will tell you that rm is a symlink to /QSYS.LIB/QSHELL.LIB/RM.PGM.
You can then do:
WRKPGM QSHELL/RM
to see what sort of *PGM object it is. If it had been a PASE program,
then your technique would work nicely.
-SK
On 11/30/2016 3:33 PM, Manuel Chaviano wrote:
"file" will give you some details about the file type.
call QP2TERM
You need to provide the fill path: use "which" to determine where is "rm"
located:
> which rm
/QOpenSys/usr/bin/rm
Now you can use "file":
> file /QOpenSys/usr/bin/rm
/QOpenSys/usr/bin/rm: executable (RISC System/6000) or object module
...an AIX RS/6000 object or module
which rm/QOpenSys/usr/bin/rm
file /QOpenSys/usr/bin/rm/QOpenSys/usr/bin/rm: symbolic link to ../../QIBM/ProdData/OS400/PASE/bin/r
pwd/QOpenSys/QIBM/ProdData/OS400/PASE/bin
file rmrm: executable (RISC System/6000)
As an Amazon Associate we earn from qualifying purchases.
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.