Lets call script a.sh with the following /users/guru$ cat a.sh #! /usr/bin/ksh echo "Hello" date Execute with ksh. Notices Welcome to LinuxQuestions.org, a friendly and active Linux Community. Registration is quick, simple and absolutely free. Phil Adv Reply September 17th, 2010 #6 CharlesA View Profile View Forum Posts Private Message Visit Homepage Beware of Hat... http://rss4medics.com/cannot-execute/shell-script-cannot-execute.php
Reason: Fixed a 'code' tag that was making it hard to read Remove advertisements Sponsored Links Smiling Dragon View Public Profile Find all posts by Smiling Dragon
Solve problems - It's Free Create your account in seconds E-mail address is taken If this is your account,sign in here Email address Username Between 5 and 30 characters. MoreWhitePapers Best Answer 0 Mark this reply as the best answer?(Choose carefully, this can't be changed) Yes | No Saving... CONTINUE READING Join & Write a Comment Already a member? Carpetsmoker View Public Profile Visit Carpetsmoker's homepage!
Polyglot Anagrams Robbers' Thread Can Trump undo the UN climate change agreement? Dear CharlesA, I tried what you suggested. is implicitly in the PATH, this could be considered a bug in cmd, as it can not be changed. Java Cannot Execute Thank you very much.
All rights reserved. DistroUbuntu 12.04 Precise Pangolin Re: Can't execute my own shell scripts! That said though, why are you using PuTTY if you are on Linux, as it would appear, since you are trying to invoke a .sh shell script? http://unix.stackexchange.com/questions/144691/shell-script-not-executing wmp 0 LVL 22 Overall: Level 22 Unix OS 20 Shell Scripting 3 Message Assisted Solution by:blu2009-11-11 blu earned 125 total points Comment Utility Permalink(# a25799384) It sounds like the
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 Ksh Sqlplus Cannot Execute 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 file Name_of_the_thing_you_tried_to_execute) ? –Hennes Jun 25 '15 at 17:06 Check this thread superuser.com/questions/435988/… whether this helps. –vembutech Jun 25 '15 at 17:08 add a comment| 1 Answer 1 active If you need to reset your password, click here.
Code: $ ls -l /bin/ksh -r-xr-xr-x 3 root bin 410744 Apr 4 2010 /bin/ksh __________________ You don't need to be a genius to debug a pf.conf firewall ruleset, you just need Can a text in Latin be understood by an educated Italian who never had any formal teaching of that language? Ksh Cannot Execute Error Kipling - "if" Adv Reply September 16th, 2010 #4 v1ad View Profile View Forum Posts Private Message Quad Shot of Ubuntu Join Date Sep 2009 Beans 467 Re: Can't execute Ksh Not Found No Such File Or Directory Browse other questions tagged shell ksh or ask your own question.
but i am not able to open $HOME/.profile in my home computer with Redhat 9.0. useful reference Carpetsmoker View Public Profile Visit Carpetsmoker's homepage! You are currently viewing LQ as a guest. DistroUbuntu 12.04 Precise Pangolin Re: Can't execute my own shell scripts! Cannot Execute Is A Directory
Forum Operations by The UNIX and Linux Forums Latest LQ Deal: Linux Power User Bundle Blogs Recent Entries Best Entries Best Blogs Blog List Search Blogs Home Forums HCL Reviews Tutorials is considered harmful. –richard Jul 15 '14 at 22:12 Thanks, Richard. 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 http://rss4medics.com/cannot-execute/sh-script-cannot-execute-binary-file.php When I execute script A, apparently the script B outputs the right things but the variables are not updated at the end.
For example; If the first line show "#!/bin/sh". Sqlplus Not Found Do you have a 'ksh' in /bin? It helps.
Last edited by CharlesA; September 17th, 2010 at 05:46 AM. 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 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 Dos2unix [email protected] Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article.
It needs to know where the file is at. The .bashrc and .bash_profile files are identical as the file structures on each machine is the same. All rights reserved. Then You can run the script file by command ( eg.
GO OUT AND VOTE Build me a brick wall! 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! If you are the owner. Make sure you have permission on all levels of directory descent.Right-click and select open with terminal.
Join Now For immediate help use Live now! asked 2 years ago viewed 35111 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 You may also note that ms-windows has more virus problems. –richard Jul 15 '14 at 22:11 add a comment| up vote 4 down vote When you type a command, the shell 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
Subscribe to our monthly newsletter for tech news and trends Membership How it Works Gigs Live Careers Plans and Pricing For Business Become an Expert Resource Center About Us Who We when i used to work in school, i had save the PATH in cat $HOME/.profile. I put a new icon on the panel, and pointed it to the shell script. What is the most someone can lose the popular vote by but still win the electoral college?
and it returns 'ksh: ./java: cannot execute' mncduffy View Public Profile Find all posts by mncduffy #4 01-29-2008 Smiling Dragon Disorganised User Join Date: Nov 2007 Last If it is Linux Related and doesn't seem to fit in any other forum then this is the place. 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 Jul 15 '14 at 19:23 cuonglm 73k13119205 So, add "." to path and export path?