You can determine where you bash is with: whereis bash If you are using another shell, like csh or ksh, you have to change that ( #!/bin/ksh for example). 2.) You 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 TSA broke a lock for which they have a master key. Come to #ubuntuforums! navigate here
Possible repercussions from assault between coworkers outside the office What Could Cause Flash Over / Arcing to Reappear on New Plugs? Having a problem logging in? there were no semicolons in the $PATH. Simply, I would never name my scripts as a keyword (or ensure "." is at the end of path). –Guru Jul 15 '14 at 22:40 add a comment| 3 Answers 3
But why so? Beven Shapeta replied Nov 11, 2009 Background - am installing a Banking application called Sparrow for POINT of SALE. # ls backupinst.sh install_sun_backup.sh suntune.sh cre_autostart.sh install_sun.sh user.sh installgen_original.sh setperm.sh installgen.sh spa_menu Please click the link in the confirmation email to activate your subscription. Ksh Command Not Found Unix Yes, I'd logged out and in. –Peeter Joot Apr 30 '12 at 14:55 add a comment| up vote 0 down vote My guesses: You had an alias named mycommand.
Doing so, for each of the directories up to this one I see: # ls -ld $HOME $HOME/mydir $HOME/mydir/admbin drwxr-xr-x 10 me root 4096 2012-04-12 12:20 /home/me drwxrwsr-t 22 me mygroup How To Run Ksh Script In Unix UNIX is a registered trademark of The Open Group. Contact Us - Advertising Info - Rules - LQ Merchandise - Donations - Contributing Member - LQ Sitemap - Main Menu Linux Forum Android Forum Chrome OS Forum Search LQ share|improve this answer answered Oct 12 at 16:27 Virgile 101 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up using Google Sign up
linux ksh share|improve this question edited Apr 13 '12 at 0:17 asked Apr 11 '12 at 23:50 Peeter Joot 255413 2 Your scripting kung-fu is awesome. –Jeff Ferland Apr 12 How can I save a file to a new location from inside Vim? Ksh Cannot Execute Error Executing a.sh will only work if it can be found in your PATH. –casey Jul 16 '14 at 0:37 add a comment| up vote 0 down vote As I have posted Ksh Not Found Error In Unix Need help with permissions.
Start a coup online without the government intervening Previous examples of large scale protests after Presidential elections in US? User contributions on this site are licensed under the Creative Commons Attribution Share Alike 4.0 International License. Juniper Networks View All Topics View All Members View All Companies Toolbox for IT Topics UNIX Groups Ask a New Question Solaris The Solaris group is a forum where peers share try executing with sudo and see what it tells you. Ksh Cannot Execute Permission Denied
also i have installed jdk1.4.0_04. 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), SUBSCRIBE Join & Write a Comment Already a member? http://rinfix.com/not-found/unix-cannot-execute-shell-script.html IF it says something about a script or text, then you should look at the actual contents of the file.
Find a mistake in the following bogus proof How is Anti Aliasing Implemented in Ray Tracing? /bin/ksh Not Found PCMag Digital Group AdChoices unused current community blog chat Super User Meta Super User your communities Sign up or log in to customize your list. Login.
I know if I use a binary that's in /usr/bin then install a /usr/local/bin version from source, the system still tries to execute the original one until I log out and Congratulations, one and all! Command Unix> Abc.ksh ksh: Abc.ksh: cannot execute Also tried pcasvs17 > ./Abc.ksh ksh: ./Abc.ksh: cannot execute The script starts with #!/bin/ksh Any help is appreciated. Ksh .sh Not Found Why is the 'You talking to me' speech from the movie 'Taxi Driver' so famous?
Most linux distros have an ssh client built in. –Frank Thomas Jun 25 '15 at 16:53 To drop the sh you'll have to run it as: ./Name_of_shellScript.sh parameters –Steven How can I save a file to a new location from inside Vim? Do "head lh" and post the contents. Subscribed!
or 2. Notices Welcome to LinuxQuestions.org, a friendly and active Linux Community. are the permissions/ownership of the parent directory ok? 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
Search this Thread 08-02-2003, 03:01 PM #1 shahrahulb LQ Newbie Registered: Jul 2003 Posts: 17 Rep: cannot execute script file from shell I have redhat 9.0 linux Say i is implicitly in the PATH, this could be considered a bug in cmd, as it can not be changed. Tom replied Nov 13, 2009 Hello. Success!
trying another shell (i.e.