I have AIX 4.3.3. I have got a shell script. When I try to execute ./filename.sh it comes with error filename.sh not found. Do I have to specify somewhere else or what can be the cause of it.Can someone help me.
If you not in the current directory where the script is then you will not be able to execute it unless you specify the path or add the the path to /etc/environment.check that the permissions are correct and that its executable.
chmod 777 filename .
Have you tried just running filename.sh (ie without the ./)?
Alternatively, I have seen this strange behaviour where a shell script has been copied from a DOS environment. I fixed it using the dos2unix utility in Solaris - I'm not sure what the equivalent is in AIX. You can also srip out any ^M characters in vi.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.