- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- unshar htm patch file
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
08-22-2008 02:52 AM
08-22-2008 02:52 AM
I have downloaded the patch PHSS_36088.html and and remove first few lines up to "----------" and done the following commands.
# ls
PHSS_36088.htm
# sh PHSS_36088.htm
PHSS_36088.htm[13]: ^M: not found.
PHSS_36088.htm[14]: LANG^M: This is not an identifier.
# dos2ux PHSS_36088.htm > PHSS_36088
# sh PHSS_36088
PHSS_36088[20]: Syntax error at line 20 : `&' is not expected.
#
I am getting the sysntax error in line 20.
Can any one help me to resolve this issue.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2008 03:01 AM
08-22-2008 03:01 AM
SolutionOn the download page, select
+ Expand to view additional download options
select gzip or tar and download.
If you transfer it from a PC to the server with ftp, use binary mode.
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2008 03:10 AM
08-22-2008 03:10 AM
Re: unshar htm patch file
Typically you should save it as PHSS_36088.
Then you unshar it with sh.
Also, besides PHSS_36088, you probably need a compiler patch and you might as well download both and automatically get that choice Torsten's mentions.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2008 03:39 AM
08-22-2008 03:39 AM
Re: unshar htm patch file
Patch file is not downloaded in proper format here.
On download page use FTP button at bottom of the screen and disable any download accelerator if any e.g. DAP etc
You will get windows download file window and then save that file without any extension.
As said earlier, use bin to transfer to hp box from pc...
Regds...Deepak
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2008 03:57 AM
08-22-2008 03:57 AM
Re: unshar htm patch file
This happens when yuo download an individual patch to a Windows PC using HTML.
You need to FTP it from you Windows PC to your Unix server in ASCII mode to eliminate the carriage-return characters (^M). Your use of 'dos2ux' will also fix that after the fact.
The second problem is that the HTML encoded symbols like '>', '<' and '&'. A Perl snippet will fix that:
# perl -MHTML::Entities -pi -e 'decode_entities($_)' ./PHSS_36088
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2008 06:18 AM
08-22-2008 06:18 AM
Re: unshar htm patch file
It seems like there are hidden "^M" characters in the PHSS_36088.htm file.
Use the following procedure to remove the "^M" characters
# tr -d '\015' < PHSS_36088.htm > PHSS_36088.htm.out
# sh PHSS_36088.htm.out
Let me know if this worked.
Cheers
Rohit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2008 06:23 AM
08-22-2008 06:23 AM
Re: unshar htm patch file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2008 11:34 PM
08-25-2008 11:34 PM