Need to find the script path Hot Network Questions As a monk, can I use Deflect Missiles to protect my ally? So secondly, try re-installing bash-completion: sudo apt-get purge bash-completion sudo mv /etc/bash_completion.d /etc/bash_completion.d.bak sudo apt-get install bash-completion share|improve this answer answered Nov 5 '12 at 2:13 Lars Rohrbach 26327 Visit the following links: Site Howto | Site FAQ | Sitemap | Register Now If you have any problems with the registration process or your account login, please contact us. Try strace-ing the shell trying to execute the script and see where it breaks. http://bovbjerg.net/not-found/unix-shell-script-cannot-execute.php
Do you have a shebang (example: #!/bin/bash) at the top of the script? Without fully qualifying the command, I get: # mycommand /bin/ksh: mycommand: not found [No such file or directory] but the file can be found by which: # which mycommand /home/me/mydir/admbin/mycommand I is but at the end of PATH, then you install package that has a program with conflicting name the this program is run instead of the one you expect. (You may In fact, you should do these three command and post the output: file lh ls -l lh head lh 0 LVL 7 Overall: Level 7 Shell Scripting 4 Unix OS
Login. when i used to work in school, i had save the PATH in cat $HOME/.profile. Phil Headford Shropshire UK Adv Reply September 17th, 2010 #8 CharlesA View Profile View Forum Posts Private Message Visit Homepage Beware of Hat...
file name is test.sh ): /bin/sh .//test.sh To learn more about unix shell script you can find from many sites or from this: http://www.calpoly.edu/~rasplund/script.html Regards, Top This thread has been closed No spaces please The Profile Name is already in use Password Notify me of new activity in this group: Real Time Daily Never Keep me informed of the latest: White Papers If not run the command "chmod 755 install_sun.sh" and then run the script again Regards, Isaac Top Best Answer 0 Mark this reply as the best answer?(Choose carefully, this can't be Ksh Command Not Found Unix Having a problem logging in?
How can I claim compensation? How To Run Ksh Script In Unix White Papers & Webcasts Using Virtualization to Balance Work with TCO Blog Articles Audit (Solaris) - something you have, something you do not know - part 1 Automating Systems administration using Tango Icons © Tango Desktop Project. Assigning only part of a string to a variable in bash What is the meaning of ''cry oneself"?
How to handle swear words in quote / transcription? By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Join Date Oct 2008 Location Shropshire Beans 59 DistroUbuntu 8.04 Hardy Heron Re: Can't execute my own shell scripts! share|improve this answer edited Apr 26 '12 at 23:33 DLosc 1276 answered Apr 12 '12 at 14:09 tim 818718 add a comment| up vote 0 down vote I had exactly the Ksh Cannot Execute Permission Denied
Hot Network Questions Can you dispel a magic effect you can't perceive? share|improve this answer answered Jul 15 '14 at 19:27 Ramesh 16.3k1678127 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up using Google Sign What Could Cause Flash Over / Arcing to Reappear on New Plugs? navigate here rioguia Programming 3 06-11-2008 09:09 AM auto execute shell script ykirankumar Linux - Software 3 09-22-2004 08:23 AM shell script won't execute brandnewbie Linux - Newbie 7 08-10-2004 02:30 PM Remote
That could cause other issues, but I don't see how it would have caused this one. /bin/ksh Not Found I should be able to execute the script as such calling the file? –Guru Jul 15 '14 at 19:20 1 Shell environments have an environment variable called "PATH" (echo $PATH), Thread Tools Show Printable Version Subscribe to this Thread… Display Linear Mode Switch to Hybrid Mode Switch to Threaded Mode September 16th, 2010 #1 Flos Headford View Profile View Forum Posts
using \r\n as line endings instead of plain \n). more stack exchange communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed Safety - Improve braking power in wet conditions Professor Lewin: "Which string will break?" / Me: "That one." / Professor Lewin: "Wrong!" Sharepoint 2013: Rest API - does header need to Ksh .sh Not Found For example, the Bourne shell has to start the first line with : #!/bin/sh or #!/bin/csh #----for C-shell Hence, to run the shell script file without change any permission.
Find More Posts by david_ross 08-02-2003, 03:30 PM #3 lfur Member Registered: Jul 2003 Location: Slovenia Distribution: Slackware & FreeBSD Posts: 209 Rep: shahrahulb, I am assuming that you Beven Join this group Popular White Paper On This Topic A Beginner's Guide to VoIP 8Replies Best Answer 0 Mark this reply as the best answer?(Choose carefully, this can't be changed) This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. In the context of this quote, how many 'chips/sockets' do personal computers contain?
Verified permission of the file (execution flag is set). Can you check the contents of the file (e.g.