Originally posted by: stre
I have a script that runs 'ls':
INSTEMPDIRLIST=$( ls "$GTEMPDIR" | grep nixstandard )
which expands to
INSTEMPDIRLIST=$( ls "/patrol/emsinstaller" | grep nixstandard )
and returns
ls: 0403-006 Execute permission denied.
The script also calls tar, and that also returns 'Execute persmission denied'. When I run either command using the same shell as the script, /bin/ksh, I'm unable to reproduce the problem. This issue has occurred on 3 of 3 systems that have just been upgraded from AIX 5.3 to 6.1. The problem didn't occur on AIX 5.3, and hasn't occurred on fresh installs of 6.1.
What we've tried:
INSTEMPDIRLIST=` ls "$GTEMPDIR" | grep nixstandard `
INSTEMPDIRLIST=$( /usr/bin/ls "$GTEMPDIR" | grep nixstandard )
Verified the user is really the one we expect that this point in the script.
The same problem happens when running "ls /" on the previous line.
Any suggestions greatly appreciated,
#AIX-Forum