- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Exec format error using ssh
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
тАО06-06-2009 12:29 AM
тАО06-06-2009 12:29 AM
Exec format error using ssh
I have RP3440 server running HP UNIX version 11i-v1. When i am trying to login as a local ssh user got some error message
"Last login: Sat Jun 6 13:02:04 2009 from 10.239.254.42
/anapdata1/doel/POLICE/delhi/test: Exec format error"
and unable to log the system. But using telnet with same user no problem found to login and perform my job.
Password file entry :
del_cdr:46pR.CFBR7eD.:136:20:,,,:/anapdata1/doel/POLICE/delhi:/anapdata1/doel/POLICE/delhi/test
Wait for response.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-06-2009 01:19 AM
тАО06-06-2009 01:19 AM
Re: Exec format error using ssh
That's strange. What does that executable do?
And you said when you use telnet it immediately executes that program?
Possibly ssh is changing SHLIB_PATH and pointing to the wrong version of some shlib?
What does this show:
file /anapdata1/doel/POLICE/delhi/test
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-06-2009 01:43 AM
тАО06-06-2009 01:43 AM
Re: Exec format error using ssh
When we login using ID that script is running and execute.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-06-2009 05:06 AM
тАО06-06-2009 05:06 AM
Re: Exec format error using ssh
#!/usr/bin/sh
If that doesn't fix it, you can add a "-x" to trace the commands.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-06-2009 09:47 PM
тАО06-06-2009 09:47 PM
Re: Exec format error using ssh
And using ssh login we are unable to login and so script is also not running.
Wiating for hands.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-06-2009 10:23 PM
тАО06-06-2009 10:23 PM
Re: Exec format error using ssh
That was obvious. Have you added that #! yet?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-08-2009 12:12 AM
тАО06-08-2009 12:12 AM
Re: Exec format error using ssh
That means that your program is responsible to create the necessary environment.
Try sourcing /etc/profile and your .profile (including all SAP profiles) before doing anything else!
My 2 cents,
Armin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-08-2009 01:34 AM
тАО06-08-2009 01:34 AM
Re: Exec format error using ssh
Why are you mentioning some true but useless info?
In this case, the user's script IS the login shell. Which means that neither /etc/profile nor ~/.profile will be executed. This echoes the last part of your statement. This is probably not important since it works with telnet. Though I suppose they could have different $PATH settings.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-09-2009 08:51 AM
тАО06-09-2009 08:51 AM
Re: Exec format error using ssh
Another thing to try: put the script name (including path) into /etc/shells.
Another 2 cents,
Armin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-09-2009 03:56 PM
тАО06-09-2009 03:56 PM
Re: Exec format error using ssh
This is the name of a shell command and you can create very confusing error messages when the shell picks the wrong thing to run. At least call the script: test1
Bill Hassell, sysadmin