-ksh: revenue_ext.ksh: not found [No such file or directory]
I believe there may be some carriage returns causing this error here. I was able to reproduce the error successfully.
Testing
cat ksh_experiment.ksh
#!/usr/bin/ksh
echo "Hello"
Now after providing the permissions when I ran the file, it produced the output successfully. Now as discussed over here, I inserted some carriage returns in my file. Now when I ran the script, I was getting the output as,
ksh: ./ksh_experiment.ksh: not found [No such file or directory]
Now, cat -v ksh_experiment.ksh
too produced the same output. Also, if I typed vim ksh_experiment.ksh
, a new file was getting opened.
As discussed in the answer of the link that I provided, I removed the carriage returns using the command,
perl -p -i -e "s/\r//g" ksh_experiment.ksh
After fixing when I ran, I got the output as expected.