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.