I am running on IBM's AIX, a variant of unix.
In dir1/dir2 I have two files, test.cmd and test. The contents of test.cmd is:
pdpr -d $1 test
If I am in dir2 and issue the command ksh test.cmd prt, everything works correctly. If I am in dir1 and issue the command
dir2/test.cmd prt, I get the following error:
Cannot open file test.
Both file test.cmd and test have permissions 777.
Why is that happening and how can I fix it.