- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Shell error
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-05-2009 11:10 PM
тАО05-05-2009 11:10 PM
I am getting below error , after exicuting script.
interpreter "/bin/ksh" not found
file link resolves to "/usr/bin/ksh"
ksh: ./test.ksh: not found.
user is using /bin/ksh shell also.
Please assist.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-05-2009 11:17 PM
тАО05-05-2009 11:17 PM
Re: Shell error
What did you put #/usr/bin/ksh or /usr/bin/ksh ?
Suraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-05-2009 11:21 PM
тАО05-05-2009 11:21 PM
Re: Shell error
I put #/bin/ksh
Also tried with #/usr/bin/ksh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-05-2009 11:24 PM
тАО05-05-2009 11:24 PM
Re: Shell error
please check, if the first (and the following lines of the script as well) does not end with a windows line termination (carriage return + linefeed).
mfG Peter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-05-2009 11:29 PM
тАО05-05-2009 11:29 PM
Re: Shell error
This means that 'ksh' is complaining that the script file ./test.ksh is missing...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-06-2009 01:57 AM
тАО05-06-2009 01:57 AM
Re: Shell error
can you post your script
or try like this
#!/bin/ksh
Suraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-06-2009 06:21 AM
тАО05-06-2009 06:21 AM
Re: Shell error
ls -l /bin/ksh /usr/bin/ksh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-06-2009 06:46 AM
тАО05-06-2009 06:46 AM
Solutionenter the following command :
:set list
and look if you have any ^M caracters at line end.
delete them if you find it.
check with an echo $PWD in you script to verify you are in the correct dir (which contains test.ksh).
i've also had your problem with a customer script, he has modified its ~/.profile file by adding :
ENV=~/.khshrc
i spent some time to find it ...
so check your environment vars.
Regards,
Cedrick Gaillard
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-06-2009 11:22 AM
тАО05-06-2009 11:22 AM
Re: Shell error
You probably modified (or created) you file on a Windows server and added carriage-returns to its lines. See my comments here along with the poster's problem description (which matches yours):
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1336139
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-06-2009 08:22 PM
тАО05-06-2009 08:22 PM
Re: Shell error
You mean to say need to add ENV=~/.khshrc in to users .profile?
thanks.