Are you new to LinuxQuestions.org? Something is definitely confusing the shell here, but I'm at a loss what it could be? Your operating system does not mean the same executable will run. Join the community of 500,000 technology professionals and ask your questions.
Ksh Cannot Execute Error
share|improve this answer answered May 5 '12 at 23:04 rackandboneman 1,97448 add a comment| up vote 0 down vote Alright, I don't have an answer. 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 Bug? Thanks everyone for your inputs! –superuser Jun 13 '12 at 4:18 add a comment| up vote 9 down vote Try to run it using ./executablefilename instead of using sh executablefilename.
Promoted by Recorded Future Are you wondering if you actually need threat intelligence?
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
Can I sell a stock immediately In the context of this quote, how many 'chips/sockets' do personal computers contain?
They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own. do a cat -vets and if so dos2unix Remove advertisements Sponsored Links bigearsbilly View Public Profile Find all posts by bigearsbilly « Previous Thread | Next Thread » Thread Tools Show Not the answer you're looking for? Ksh Command Not Found Unix 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
Eg >./program won't work but >program works fine Related 0How to get executable path on Linux3Error with Apache2 on Debian Lenny: “Could not reliably determine the server's fully qualified domain name, How To Run Ksh Script In Unix why does this error keep popping out? Does an Eldritch Knight's war magic allow Extra Attacks? How can i run the temp file?
All Rights Reserved. How To Run Ksh Script In Putty scriptB.sh path/to/script/scriptB please help me!!!!! How do I deal with my current employer not respecting my decision to leave? Connect with top rated Experts 14 Experts available now in Live!
How To Run Ksh Script In Unix
guitarscn Programming 1 31st August 2010 09:12 PM Writing a simple script to edit text files and execute commands guitarscn Programming 11 24th August 2010 09:21 PM strange "~" directory in share|improve this answer answered Jun 13 '12 at 3:07 LawrenceC 47.2k677146 6 "if you try to run x86 executables on an ARM CPU, this message comes up." That was EXACTLY Build me a brick wall! Notices Welcome to LinuxQuestions.org, a friendly and active Linux Community. Ksh Cannot Execute Permission Denied
Is it possible to sheathe a katana as a free action? When I execute script B in command line everything's fine and the variables are updated. there were no semicolons in the $PATH. Check This Out How can I claim compensation?
I presume you re-logged-in after doing this? –Lars Rohrbach Nov 5 '12 at 2:27 add a comment| up vote 1 down vote The errors you see may be caused by trying /bin/ksh Not Found Suggested Solutions Title # Comments Views Activity Need help in checking an rpm and install or uninstall it 3 51 62d cron job says it ran, no results 25 87 73d 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
My guess is that a similar thing might have happened with the original poster's problem, except that there the permission issue was intermittent (e.g., there was a temporary change that might
share|improve this answer answered Jun 13 '14 at 12:56 user226160 1 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up using Google Sign How can I fix this? asked 4 years ago viewed 4843 times active 2 years ago Linked 2 Binary won't execute when run with a path. Main Menu LQ Calendar LQ Rules LQ Sitemap Site FAQ View New Posts View Latest Posts Zero Reply Threads LQ Wiki Most Wanted Jeremy's Blog Report LQ Bug Syndicate Latest
Please visit this page to clear all LQ-related cookies. Need help with permissions. Carpetsmoker View Public Profile Visit Carpetsmoker's homepage! Have installed Ubuntu 12.04 LTS (kubuntu) on two machines.
So perhaps the script is not calling the right scripting language (perl, in this case). At some point it tries to execute /bin/id to get your uid, which fails, causing integer expression error, and terminating the script before it can set up your $PATH. I suppose that I could have done a strace attach on the current shell, but since I can no longer repro there's no point of trying that. That could cause other issues, but I don't see how it would have caused this one.