Find More Posts by david_ross 03-04-2008, 08:02 AM #5 potraike LQ Newbie Registered: Mar 2008 Posts: 4 Rep: script executed inside another script dont make changes Hello, I have Get 1:1 Help Now Advertise Here Enjoyed your answer? You can either execute source ./xset or change the sourcepath option to off with: shopt -u sourcepath From the bash man-page: source filename [arguments] Read and execute commands from filename in This is how video conferencing should work! navigate here
What episode of Star Trek is this creature on? Try source ./xset. –Faheem Mitha Aug 28 '14 at 8:13 add a comment| 2 Answers 2 active oldest votes up vote 9 down vote accepted the bash internal command source, first Is calling a function with local side-effects twice in the same expression undefined behavior? How to stop NPCs from picking up dropped items Can a president win the electoral college and lose the popular vote Does an Eldritch Knight's war magic allow Extra Attacks?
How does Gandalf end up on the roof of Isengard? bash shell share|improve this question edited Aug 28 '14 at 21:42 Gilles 377k726901135 asked Aug 28 '14 at 8:11 Shawn 44115 There is a binary called xset. Otherwise, this message means that ./executable is not in a format that the kernel recognizes. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant.
asked 2 years ago viewed 2866 times active 1 year ago Related 3Ways to execute shell command as root?2Using sudo in openSUSE without actually changing to root user (i.e., like in You might want to use set -x in other scripts to help you there, and inspect the boot logs from the target. I don't have any definite guess as to what is happening though. Cannot Execute Is A Directory 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),
I know you said the executable bit is set, but make sure: chmod +x scriptname.sh share|improve this answer answered Nov 5 '12 at 2:07 Josiah Kiehl 1211 Nope - Is it possible to hand start modern planes? 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. Do "head lh" and post the contents.
When I execute script B in command line everything's fine and the variables are updated. Ksh Not Found What Could Cause Flash Over / Arcing to Reappear on New Plugs? You're right that I shouldn't make assumptions in the question, but since the only thing that's different is how the parent script is invoked, where one way is by hand in 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
share|improve this answer answered Jul 15 '14 at 19:23 cuonglm 73k13119205 So, add "." to path and export path? Your operating system does not mean the same executable will run. Ksh Cannot Execute Error 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 Java Cannot Execute Your suggestion is highly appreciated.
Thank you very much. http://rinfix.com/cannot-execute/unix-cannot-execute-error.html Browse other questions tagged bash shell or ask your own question. It invokes yet another bash script, which runs the tests, which are compiled C executables. OBDII across the world? Ksh: Sqlplus: Cannot Execute
Now, you can use dos2unix as well to convert the file. Cannot Execute Binary File 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 Having a problem logging in?
Vent kitchen hood vent to roof turbine vent? asked 2 years ago viewed 35141 times active 2 years ago Linked 3 -ksh: revenue_ext.ksh: not found [No such file or directory] Related 33Different ways to execute a shell script5Shell script Isn't AES-NI useless because now the key length need to be longer? Chmod MathSciNet review alert?
Open /etc/passwd file and correct the login shell. GO OUT AND VOTE OBDII across the world? Server B: kickOffTests.sh has the line ssh -t -t ServerA runTests.sh Server A: runTests.sh calls a perl script which invokes minicom -S my.script ttyE1 Target, after booting: Mounts a directory from weblink 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
Polyglot Anagrams Robbers' Thread What is this line of counties voting for the Democratic party in the 2016 elections? Have installed Ubuntu 12.04 LTS (kubuntu) on two machines. Are keywords in resolv.conf case sensitive? Find the rate of change at a point on a polynomial How can I open the next/previous file alphabetically?
QGIS Print composer scale problems Basic Geometric intuition, context is undergraduate mathematics Two-way high power outdoor Wi-Fi What is the significance of the robot in the sand? Remove advertisements Sponsored Links mncduffy View Public Profile Find all posts by mncduffy
It's a silent command. –Ben Richards Jun 12 '12 at 21:57 | show 4 more comments 5 Answers 5 active oldest votes up vote 45 down vote accepted Usually that error After some debugging and tweaking things worked fine until I renamed the text file (with the tmux commands) from spam to xset: $ source xset bash: source: /usr/bin/xset: cannot execute binary Describe how the target is booting when you run the scripts manually and when Hudson is involved. Would a simple $chmod +x tem.sh solve this by making the shell script executable?
Join the community of 500,000 technology professionals and ask your questions. Gilles nailed it; the executables had been built for a different target.