Join them; it only 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 Romeo Ninov replied Nov 11, 2009 please paste here the exact command you want to execute, because sentence "trying to run a shell" mean for me "I try to start shell I've tried all the ways: ./scriptB.sh . share|improve this answer answered Apr 12 '12 at 12:51 UtahJarhead 54438 It was an executable and not a script (see the ELF info from file in the question). http://ibuildsystem.com/not-found/unix-cannot-execute-shell-script.php
But why so? For example; If the first line show "#!/bin/sh". wmp Go to Solution 3 2 +1 4 Participants Murugesan Nagarajan(3 comments) LVL 7 Shell Scripting4 Unix OS3 blu(2 comments) LVL 22 Unix OS20 Shell Scripting3 woolmilkporc LVL 68 Unix OS53 If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
You should run the "file" command on the file: file lh If it says anything about data or binary, then the file is just not a script file as required by Why does Cutie act like this and lesser robots listen to it? Is there an actual army in 1984? Do "head lh" and post the contents.
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 To Run Ksh Script In Putty Adv Reply September 16th, 2010 #2 jtarin View Profile View Forum Posts Private Message The Lucky Rabbit Join Date Dec 2008 Location 43° 7' 41" 131° 54' 3" BeansHidden! Include the path of test.sh directory in PATH of ur profile. Departing from airport before visa is valid, but arriving when it is Symmetric group action on Young Tableaux Are keywords in resolv.conf case sensitive?
So, my gnome panel launcher, which used to have the target of Code: /home/me/runabc/runabc.sh now has a target of Code: bash /home/me/runabc/runabc.sh and that, too, works perfectly! What is this line of counties voting for the Democratic party in the 2016 elections? Ksh Cannot Execute Error What is the point of update independent rendering in a game loop? Ksh Not Found Error In Unix Help..
Have installed Ubuntu 12.04 LTS (kubuntu) on two machines. Given the hints solve the puzzle Why do some banks have more than one routing number in the US? Notices Welcome to LinuxQuestions.org, a friendly and active Linux Community. http://ibuildsystem.com/not-found/unix-shell-script-cannot-execute.php asked 4 years ago viewed 4291 times active 1 year ago Related 2How to run an executable bash script on Kubuntu?2How to Import a Variable from a Script?2NDK_ROOT enviroment variable defined
share|improve this answer answered Apr 12 '12 at 2:10 Jeff Ferland 16.7k14072 add a comment| up vote 0 down vote I'm guessing that your script doesn't have a valid shell after /bin/ksh Not Found Try our newsletter Sign up for our newsletter and get our top new questions delivered to your inbox (see an example). If you want to make it executable from anywhere try putting it in a directory in the path, or add a directory to it, where you keep your scripts. –Tim Jul
Single word for the act of being susceptible? Have you tried logging out and back in? 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), Ksh .sh Not Found Ksh deals with ^M just fine and incorrect permissions give a different error.
to users .profile –Guru Jul 15 '14 at 22:09 1 See my other comment about why PATH=$PATH:. How do unlimited vacation days work? That ends up forcing the command to execute fully qualified. All rights reserved.
PS the other question is related to MacOSX, which probably uses dyld and not the libc provided linker. Also, if I typed vim ksh_experiment.ksh , a new file was getting opened. TSA broke a lock for which they have a master key. Cannot execute generally means that the loader invoked is unable to figure out the format of the file being executed.
However while running a shell script I got this error: "cannot execute binary file" I believed the syntax is : sh Name_of_shellScript.sh parameters How can I resolve this?