- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- 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
Forums
Discussions
Discussions
Discussions
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
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
12-20-2002 07:22 PM
12-20-2002 07:22 PM
shell error
i re run a script and i got this error. this script was running fine few minutes ago and this error suddenly appears. no updates done with the script..
>check
interpreter "/bin/ksh" not found
file link resolves to "/usr/bin/ksh"
interpreter "/bin/ksh" not found
file link resolves to "/usr/bin/ksh"
ksh: check: not found
i wonder why is this happening..any ideas guys? i need it desperately...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-20-2002 07:25 PM
12-20-2002 07:25 PM
Re: shell error
Check the logic in the script and see if it is looking specifically for /bin/ksh anywhere.
Another thing to check is the first line of the script. If it is:
#!/bin/ksh
change it to
#!/usr/bin/ksh
and see what happens.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-20-2002 07:34 PM
12-20-2002 07:34 PM
Re: shell error
also, any idea where could i search for any logs? i dont have root access.
i really appreciated your quick reply.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-20-2002 10:01 PM
12-20-2002 10:01 PM
Re: shell error
# ll /bin
lr-xr-xr-t 1 root sys 8 Dec 6 14:43 /bin -> /usr/bin
The /bin directory is a link of the /usr/bin
So when you refer the /bin directory it refers the /usr/bin directory.
So the files are the same.
So there is nothing to change.
Make sure that the /bin is linked to /usr/bin.
check this white paper
http://docs.hp.com/hpux/onlinedocs/5963-8942/5963-8942.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-21-2002 06:38 AM
12-21-2002 06:38 AM
Re: shell error
Apparently your script has some special code to detect a symlink. Simply change your script's loader directive (line 1) to: #!/usr/bin/ksh
It is important to note that transition links are temporary and may not exist in a future release of HP-UX. They were supposed to disappear at 10.20, then 11.0 but eventually, they will no longer exist, at least by default. 10 years should be long enough to cleanup all that old code. Retraining script writers seems to be the real problem.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2003 01:41 AM
03-10-2003 01:41 AM
Re: shell error
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2004 09:13 AM
02-12-2004 09:13 AM
Re: shell error
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2005 11:05 PM
10-10-2005 11:05 PM
Re: shell error
thanks guys.. u r of great help..
more power.