- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Script is not running
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
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
01-25-2010 07:32 AM
01-25-2010 07:32 AM
Hi Experts,
When i try to run the script to gather the information releated to SG. I am getting error such as
XXXXX:/tmp # ./SGinfo
interpreter "/sbin/sh" not found
sh: ./SGinfo: not found.
Please help me to sort-out the issue.
Thanks in Advance
vinay
Eroor Message:
===============
blxc30:/tmp # ./SGinfo
interpreter "/sbin/sh" not found
sh: ./SGinfo: not found.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-25-2010 07:36 AM
01-25-2010 07:36 AM
Re: Script is not running
I suspect that you have carriage-returns in your script from editing (or copying) it from a Windows platform. The presence of carriage-returns on the interpreter ("shebang") line will generate this error. To see, look for "^M" as by doing:
# cat -etv ./SGinfo
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-25-2010 07:36 AM
01-25-2010 07:36 AM
Solution$ dos2ux SGinfo > SGinfo.ok
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-25-2010 07:37 AM
01-25-2010 07:37 AM
Re: Script is not running
I should add (since you probably have carriage-returns) that you can fix your script by doing:
# dos2ux < ./SGinfo > ./SGinfo.new
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2010 05:57 AM
02-01-2010 05:57 AM
Re: Script is not running
I removed all carriage returns as per you advice, but i am getting the error Now such as.
Please help me.
Error:
======
XXXXX:/tmp # ./SGinfo
Script is corrupt. The calculated and posted checksums do not match:
Calculated: 3112900085 Posted: 4000628928
To ignore script integrity checking, run script with -i option.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2010 12:34 PM
02-01-2010 12:34 PM
Re: Script is not running
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2010 12:53 PM
02-01-2010 12:53 PM
Re: Script is not running
>>To ignore script integrity checking, run script with -i option.
So you could try running it like this:
# ./SGinfo -i