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



And here is the log for the permissions:
$

ls -l /usr/bin/sh

lrwxrwxrwx 1 QSYS 0 31 May 15 2000 /usr/bin/sh
-> /QSYS
.LIB/QSHELL.LIB/QZSHSH.PGM

$


Looks correct...

Alex Pinsky
Aeropostale, Inc.

-----Original Message-----
From: java400-l-bounces@xxxxxxxxxxxx
[mailto:java400-l-bounces@xxxxxxxxxxxx] On Behalf Of Alex Pinsky
Sent: Friday, February 26, 2010 2:36 PM
To: Java Programming on and around the iSeries / AS400
Subject: RE: shell script not found error

And on both commands I get an error:
$

ls -l /bin

ls: 001-2113 Error found getting information for object /bin. No such
path or directory.

$

ls -l /bin/sh

ls: 001-2113 Error found getting information for object /bin/sh. No
such path or directory.

$

When I add /usr in front - path is found


-----Original Message-----
From: java400-l-bounces@xxxxxxxxxxxx
[mailto:java400-l-bounces@xxxxxxxxxxxx] On Behalf Of Walt Madden
Sent: Friday, February 26, 2010 2:26 PM
To: java400-l@xxxxxxxxxxxx
Subject: Re: shell script not found error

Alex Pinsky wrote:
Thanks Walt - I think you onto something here.
Here is first line in my script:
#!/bin/sh

The next thing you will want to do is to confirm that /bin/sh script
processor is valid. Try these two Qshell commands:

ls -l /bin
lrwxrwxrwx 1 QSYS 0 8 Sep 21 2007 /bin -> /usr/bin

ls -l /bin/sh
lrwxrwxrwx 1 QSYS 0 31 Sep 21 2007 /bin/sh ->
/QSYS.LIB/QSHELL.LIB/QZSHSH.PGM

If no one has mucked with the standard OS installation, the results
should
look like what I show above. (The dates may be different if you are on
a
different OS level.)


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.