Hi Greg,

So, there are differences in the QSH and the SSH environments.  I can't remember exactly what the issue was...my PATH in QSH is:

 $
 echo $PATH
 /QOpenSys/pkgs/bin:/usr/bin:.:/QOpenSys/usr/bin:/QOpenSys/pkgs/bin

It includes the open source pkgs.   I am a fan of nano as an editor but I can't run it in QSH even though the open source packages folder is in the PATH:

 $
 which nano
 which: 0652-141 There is no nano in /QOpenSys/usr/bin /usr/ccs/bin /QOpenSys/
 usr/bin/X11 /usr/sbin . /usr/bin.
 $

If I use SSH I see this:

bash-5.2$ echo $PATH
/QOpenSys/pkgs/bin:/QOpenSys/usr/bin:/usr/ccs/bin:/QOpenSys/usr/bin/X11:/usr/sbin:.:/usr/bin
bash-5.2$ which nano
/QOpenSys/pkgs/bin/nano
bash-5.2$

I don't recall why this is an issue.  QP2TERM does find it.

I used to know the ins and outs of the differences between the shells on IBM i but I don't recall what can run where and why......

Pete Helgren
www.petesworkshop.com
CISSP - MSCM
GIAC Cloud Penetration Tester
AWS Certified Cloud Practitioner
Microsoft Certified: Azure Fundamentals

On 10/9/2025 11:42 PM, Arco Simonse wrote:
Hi Greg,

The open source packages are installed in /QOpenSys/pkgs/bin

So you may want to add that folder to your path:
export PATH=/QOpenSys/pkgs/bin:$PATH

Regards,
-Arco


Op do 9 okt. 2025 22:53 schreef Greg Wilburn <
gwilburn@xxxxxxxxxxxxxxxxxxxxxxx>:

I used the Open Source Management in ACS to install a few packages...

A while back "curl" and just today "expect" - I may need to use the latter
sometime next week.

In ACS, I can see the repository and versions: @ibmi-base/7.3 (for curl)
and @ibmi-base (for expect)
(most everything is in @ibmi-base/7.3

I know little to nothing about this environment - but supposedly I'm
supposed to be able to do "which expect" from QSHELL

which expect
which: 0652-141 There is no expect in /QOpenSys/usr/bin /usr/ccs/bin
/QOpenSys/usr/bin/X11 /usr/sbin . /usr/bin.
$

But that's what I'm getting. I get the same for "curl".
However, if I do it for something like "bash" it finds it.
which bash
/usr/bin/bash
$

Guessing I did something wrong, or some path is not setup correctly.
Any help would be appreciated.

Thx,
Greg




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