Ksh Not Found Error In Unix
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting
Ksh .sh Not Found
ads with us Unix & Linux Questions Tags Users Badges Unanswered Ask Question _ Unix & Linux ksh command not found unix Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute: /bin/ksh not found 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 top -ksh: revenue_ext.ksh: not found [No such file or directory] up vote 3 down vote favorite 1 I
How To Run Ksh Script In Unix
am getting the same not found [No such file or directory] error when trying to execute a ksh script. Read tips about the PATH and running the script with a ./ in the posts here and here and tried but no luck. The script does exist under the directory from where I am trying to execute and has full permissions but gives the same error when run directly or with a ./. The first line within the script also has #!/usr/bin/ksh The error message
Shell Script No Such File Or Directory Error
is like below: -ksh: revenue_ext.ksh: not found [No such file or directory] However, other ksh scripts under the same directory run fine so am absolutely clueless about what could be wrong here. Any help would be greatly appreciated shell-script ksh executable share|improve this question edited Jun 5 '14 at 23:10 Gilles 372k696761127 asked Jun 5 '14 at 3:51 user68112 23125 What is the output of cat -v revenue_ext.ksh? –Ramesh Jun 5 '14 at 4:00 If you have moved this file from windows to unix Then run dos2unix filename filename command –sonal May 31 at 8:18 add a comment| 1 Answer 1 active oldest votes up vote 3 down vote accepted I believe there may be some carriage returns causing this error here. I was able to reproduce the error successfully. Testing cat ksh_experiment.ksh #!/usr/bin/ksh echo "Hello" Now after providing the permissions when I ran the file, it produced the output successfully. Now as discussed over here, I inserted some carriage returns in my file. Now when I ran the script, I was getting the output as, ksh: ./ksh_experiment.ksh: not found [No such file or directory] Now, cat -v ksh_experiment.ksh too produced the same output. Also, if I typed vim ksh_experiment.ksh , a new file was getting opened. As discussed in the answer of the link that I provided, I removed the carriage returns using the command, perl -p -i -e "s/\r//g" ksh_experiment.ksh After fixing when I ran, I got the output as expected. share|improve this an
Scripting Unix shell scripting - KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and shell scripts and shell scripting languages here. Search Forums Show Threads Show Posts Tag Search Advanced Search Unanswered Threads Find All Thanked Posts Go to Page... unix and linux operating commands ksh cannot open Problem with script: ksh not found Shell Programming and Scripting
Ksh Cannot Execute
Thread Tools Search this Thread Display Modes #1 03-11-2008 midhun_u Registered User Join Date: Jul 2006 Last Activity: 24 July 2008, ksh not found in linux 6:36 PM EDT Location: Paris, France Posts: 8 Thanks: 0 Thanked 0 Times in 0 Posts Problem with script: ksh not found Hello Guys, what is the significance of using #!/bin/sh at the start of shell script. my default shell is ksh, http://unix.stackexchange.com/questions/134581/ksh-revenue-ext-ksh-not-found-no-such-file-or-directory when i run my script i have ksh: not found error and when i use ./myscript it works. Can anyone explain me the problem please ? tnx Remove advertisements Sponsored Links midhun_u View Public Profile Find all posts by midhun_u #2 03-11-2008 jim mcnamara ...@... Join Date: Feb 2004 Last Activity: 19 October 2016, 9:50 PM EDT Location: NM Posts: 10,838 Thanks: 451 Thanked 971 Times in 902 Posts There is a FAQ on #! at the top of a http://www.unix.com/shell-programming-and-scripting/56578-problem-script-ksh-not-found.html file. It is a "magic" number that opens /bin/sh as the shell. Not found - means it cannot open ksh Try #!/bin/ksh Remove advertisements Sponsored Links jim mcnamara View Public Profile Find all posts by jim mcnamara « Previous Thread | Next Thread » Thread Tools Show Printable Version Email this Page Subscribe to this Thread Display Modes Linear Mode Switch to Hybrid Mode Switch to Threaded Mode Search this Thread Advanced Search More UNIX and Linux Forum Topics You Might Find Helpful Thread Thread Starter Forum Replies Last Post Crobjob Script to Email if Problem Found SkySmart Shell Programming and Scripting 2 07-26-2010 03:56 AM E3500 Harddisk not found problem (First time user) Harmut Solaris 2 06-19-2009 10:28 AM Scripting problem - when the file is not found i want it to return to the menu Alendrin Shell Programming and Scripting 2 03-04-2009 12:25 PM No screens found problem - and I cant use keybord properly to solve!! olddays UNIX for Dummies Questions & Answers 1 10-23-2007 07:45 PM Problem MAKE cc: not found on AIX 5.3 please help me... touny AIX 1 07-26-2005 10:09 AM All times are GMT -4. The time now is 11:09 PM. - Contact Us - Unix & Linux - unix commands, linux commands, linux server, linux ubuntu, shell script, linux distros. - Advertising - Top Linux and Unix Supported by: vBulletin Search Engine Optimisation provided by DragonByte SEO v2.0.32 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd
here for a quick overview of the site Help Center Detailed answers to any questions you might have http://stackoverflow.com/questions/18125667/not-found-no-such-file-or-directory-error-even-though-the-file-present-in-tha Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads http://unix.ittoolbox.com/groups/technical-functional/ibm-aix-l/ksh-not-found-for-all-envrionement-1002364 with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, not found just like you, helping each other. Join them; it only takes a minute: Sign up not found [No such file or directory] error, even though the file present in that directory on RH Linux 6.2 up vote 6 down vote favorite 2 When I’m executing a script from Linux (RH Linux 6.2), it is giving not ksh not found found [No such file or directory] error, even though the file is present in that directory (checked the permissions and they are fine). Example: md1silinux04:/data/upgrade> /data/upgrade/upgrade_db.ksh -ksh: /data/upgrade/upgrade_db.ksh: not found [No such file or directory] md1silinux04:/data/RAIL/rpo402/db/upgrade> ls /data/upgrade/upgrade_db.ksh /data/upgrade/upgrade_db.ksh Could anybody please help on this ? linux shell share|improve this question edited Dec 9 '13 at 22:27 javaPlease42 1,1981234 asked Aug 8 '13 at 12:09 Naga 4027 1 Update it with this output: ls -ls /data/RAIL/rpo402/db/upgrade –Edward Aug 8 '13 at 12:11 can you paste the permissions (ls -l /data/RAIL/rpo402/db/upgrade)? are you sure the file has execute permission (chmod +x)? –mnme Aug 8 '13 at 12:12 @mnme -rwxrwxr-x. –Naga Aug 8 '13 at 12:13 What is the size of the file? Make sure it isn't empty. Also, what is the first line of the file? –Edward Aug 8 '13 at 12:15 I really hope you're not using Red Hat Linux 6.2. You mean Red Hat Ente
Technology and Trends Enterprise Architecture and EAI ERP Hardware IT Management and Strategy Java Knowledge Management Linux Networking Oracle PeopleSoft Project and Portfolio Management SAP SCM Security Siebel Storage UNIX Visual Basic Web Design and Development Windows < Back CHOOSE A DISCUSSION GROUP Research Directory TOPICS Database Hardware Networking SAP Security Web Design MEMBERS Paul_Pedant DACREE MarkDeVries Inside-ERP VoIP_News MacProTX I_am_the_dragon Inside-CRM maxwellarnold Michael Meyers-Jouan TerryCurran Chris_Day Andrew.S.Baker Ramnath.Awate JoeTorre Locutus Craig Borysowich Dennis Stevenson DukeGanote Richard mircea_luca iudithm Clinton Jones bracke Nikki Klein AbhaiTripathi Iqbalyk blrvenkat jakarman Adrian_Grigoriu COMPANIES Sophos EdgeWave Skybot Software Epicor Software ... View All Topics View All Members View All Companies Toolbox for IT Topics UNIX Groups Ask a New Question IBM AIX The IBM AIX group is your premier resource for objective technical discussion and peer-to-peer support on IBM AIX. Home | Invite Peers | More UNIX Groups Your account is ready. You're now being signed in. 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. 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 Newsletter Jobs By clicking "Join Now", you agree to Toolbox for Technology terms of use, and have read and understand our privacy policy. ksh not found for all envrionement alexia asked May 3, 2006 | Replies (4) Hello guys, I have a problem that I have no idea how it came. I am running an AIX system 5.2ML8 with some several appli running (like Clearquest, Clearcase, TNG etc...) Sometimes ksh is not working, we cannot run any script, any command etc... The only issue is to power off and then power on the lpar. If you have any idea how that can happened and why that will be very helpfull. Thanks in advance for any help or suggestions. Cheers. Join this group Popular White Paper On This Topic The Six Questions Every IT Leader Needs to Ask 4Replies Best Answer 0 Mark this reply as the best answer?(Choose carefully, this can't be changed) Yes | No Saving... Lamar Saxon replied May 3, 2006 Way too little information here. What are the errors you are receiving ? What does your error log say ? What does syslog say if you have it configured ? Are you getting could not fork, memory issues, ??? Like asking how to fix a