-ksh: test.sh: not found [No such file or directory]
We moved .ksh scripts from Unix to Linux server and get this error when trying to execute a ksh scripts. What causes this?
Use sh if it's a sh script. Ksh if it's a ksh script. Therefore...
Use sh if it's a sh script. Ksh if it's a ksh script. Therefore
Assuming it *is* an sh script rather than only a extension some programer assigned to the file.
The thing is that I do not really understand the question because you mention .ksh scripts but you later ask for test.sh?
It is possible you typed the command like this:...
It is possible you typed the command like this:
If test.sh is not in your path, then you will get this error. You must precede test.sh with ./ if you are trying to execute from the present working directory.
Verify that test.sh has the proper mode so that it is executable by the username you are using.
You must satisfy any dependencies that the shell script might have.
Point is that how did u execute test.sh.... If the script file requires root...
Point is that how did u execute test.sh.... If the script file requires root permission, then execute with root privilege. Remember, generally we copy a file on the current desktop. So, if u login as user (say "abcd") then open terminal > type Desktop and press enter, then try to do the same job with su command. If u login as root, then open terminal and type Desktop and press enter, and again try to execute the same. Always remember either the file copied in another location or it requires root permission causes the problem which u mentioned. U can also use su command from general user.
The message is pretty clear, it appears that the shell script is not in the...
The message is pretty clear, it appears that the shell script is not in the directory which you are trying to execute it from.