I would like to add to what era said that - AIX or not - this is the most awkward way to check for the existence of a file i have ever seen. Why not use something like:
Code:
if [ -f /your/file ] ; then
<whatever you want to do with the file here>
else
print -u2 "ERROR: file /your/file doe not exist!"
fi
"test -f" tests if the the file exists and is a regular file (not a directory, device file, etc.)
"test -r" tests if it exists and is readable
"test -w" tests if it exists and is writable
etc., see to man page for "test"
I hope this helps.
bakunin