File Not Found Error In Unix
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the ksh not found no such file or directory workings and policies of this site About Us Learn more about Stack Overflow shell script no such file or directory error the company Business Learn more about hiring developers or posting ads with us Unix & Linux Questions Tags
Ksh .sh Not Found
Users Badges Unanswered Ask Question _ Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only
No Such File Or Directory Linux Shell Script
takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top -ksh: revenue_ext.ksh: not found [No such file or directory] up vote 3 down vote favorite 1 I am getting the same not found [No such file or directory] error when trying to execute ksh command not found unix a ksh script. Read tips about the PATH and running the script with a ./ in the posts here and here and tried but no luck. The script does exist under the directory from where I am trying to execute and has full permissions but gives the same error when run directly or with a ./. The first line within the script also has #!/usr/bin/ksh The error message is like below: -ksh: revenue_ext.ksh: not found [No such file or directory] However, other ksh scripts under the same directory run fine so am absolutely clueless about what could be wrong here. Any help would be greatly appreciated shell-script ksh executable share|improve this question edited Jun 5 '14 at 23:10 Gilles 371k696751126 asked Jun 5 '14 at 3:51 user68112 23125 What is the output of cat -v revenue_ext.ksh? –Ramesh Jun 5 '14 at 4:00 If you have moved this file from windows to unix Then run dos2unix filename filename command –sonal May 31 at 8:18 add a comment| 1 Answer 1 active oldest votes up vote 3 down vote accepted I
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn
Bin Ksh Not Found
more about Stack Overflow the company Business Learn more about hiring developers or posting no such file or directory linux bash ads with us Unix & Linux Questions Tags Users Badges Unanswered Ask Question _ Unix & Linux Stack Exchange is a ksh not found in linux question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can http://unix.stackexchange.com/questions/134581/ksh-revenue-ext-ksh-not-found-no-such-file-or-directory answer The best answers are voted up and rise to the top bash script error: source: not found up vote 5 down vote favorite 1 I must be missing a fundamental understanding about sourcing files in bash. I've tried the different approaches that seem like they should work, but I still get this error source: not found. In my script I tried to cd to the directory where the file http://unix.stackexchange.com/questions/116584/bash-script-error-source-not-found that I want to source is located before sourcing it. That didn't work. cd /home/user/path/to/ source myfile Neither did providing the full absolute path to the file to be sourced: source /home/user/path/to/myfile The error is "source: not found" with the line number of the above statement. Is there something else, something basic, I could be overlooking? I have checked the paths I'm using and I don't see any errors. This problem is repeatable. I'm running Ubuntu on a Linode server and my scripts all start with: #!/bin/bash bash shell-script share|improve this question edited Feb 23 '14 at 23:52 Braiam 16.9k955100 asked Feb 23 '14 at 18:14 MountainX 2,628134578 Is the error from 'source" or from 'myfile'? Try: 'set -v -x; source /home/user/path/to/myfile; set +v +x How about: alias source ; echo $SHELL ; echo $POSIXLY_CORRECT –D McKeon Feb 23 '14 at 19:13 I believe my script, when run on the server, is being called like this: sh myscript so even though my script starts with #!/bin/bash and echo $SHELL returns /bin/bash, source is somehow still not working. –MountainX Feb 23 '14 at 20:37 add a comment| 2 Answers 2 active oldest votes up vote 8 down vote accepted Your second attempt using the abs
Computing Tutorials Open Source Pro LearnWhat is Linux? Training Certification Events Webinars CommunityParticipate Q&A Forums Blogs ResourcesNewsletter Distributions Publications Infographics Photos Videos Jobs cokelyd June 14, 2011 -ksh: test.sh: not found [No such file or directory] We moved .ksh scripts from Unix to Linux server and get this https://www.linux.com/answers/ksh-testsh-not-found-no-such-file-or-directory error when trying to execute a ksh scripts. What causes this? Systems Management Print This Like (0 likes) marc | June 22, 2011 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 sh test.sh 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 not found mention .ksh scripts but you later ask for test.sh? Regards Like (3 likes) CodifexMaximus | June 21, 2011 It is possible you typed the command like this:... It is possible you typed the command like this: $ test.sh 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 no such file are using. You must satisfy any dependencies that the shell script might have. Like (1 like) rechil_colin | June 18, 2011 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. Like (1 like) mfillpot | June 16, 2011 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. Like (6 likes) mfillpot | June 16, 2011 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. Like (6 likes) mfillpot | June 16, 2011 The message is pretty