1833576 Members
3659 Online
110061 Solutions
New Discussion

hp patches

 
SOLVED
Go to solution
MarkW_1
Regular Advisor

hp patches

Brought down some patches, started to unshar and got the following error:

# cd /tmp
# ls -l P*
-rw-r----- 1 root sys 1425511 Jan 30 13:24 PHNE_24413
-rw-r----- 1 root sys 326924 Jan 30 13:24 PHNE_24725
-rw-r----- 1 root sys 1989879 Jan 30 13:24 PHNE_25116
-rw-r----- 1 root sys 2459437 Jan 30 13:24 PHNE_25423
# sh PHNE_24413
PHNE_24413[15]: ^M: not found.
PHNE_24413[16]: LANG^M: This is not an identifier.
# sh PHNE_24725
PHNE_24725[15]: ^M: not found.
PHNE_24725[16]: LANG^M: This is not an identifier.
# sh PHNE_25116
PHNE_25116[15]: ^M: not found.
PHNE_25116[16]: LANG^M: This is not an identifier.
# sh PHNE_25423
PHNE_25423[15]: ^M: not found.
PHNE_25423[16]: LANG^M: This is not an identifier.
5 REPLIES 5
Tom Geudens
Honored Contributor

Re: hp patches

Hi,
Did you download them directly to the UnixServer or did you pass by a Windows machine ? If the latter, did you ftp binary or text ? It looks as if you did a wrong ftp (should be binary).

Hope this helps,
Tom Geudens
A life ? Cool ! Where can I download one of those from ?
Sanjay_6
Honored Contributor

Re: hp patches

Hi Mark,

the patches were either downloaded with the ascii turned on or if you downloaded them to your win/nt workstation first and then copied to hp, put them using binary mode. If you are directly ftping them from hp site to your hp, use binary mode of transfer for the download.

Hope this helps.

Regds
S.K. Chan
Honored Contributor
Solution

Re: hp patches

Do this .. (example) ..

# mv PHNE_24413 PHNE_24413.bak
# dos2ux PHNE_24413.bak > PHNE_24413
# sh PHNE_24413
Helen French
Honored Contributor

Re: hp patches

Darrell Allen
Honored Contributor

Re: hp patches

Hi Mark,

I'd re-transfer the files in binary mode instead of using dos2ux on them. I don't know if ^M could be imbedded in the shar file but since you are talking about patches I'd not chance it.

dos2ux works great on text files though.

Darrell
"What, Me Worry?" - Alfred E. Neuman (Mad Magazine)