Operating System - HP-UX
1753873 Members
7572 Online
108809 Solutions
New Discussion юеВ

Error in using sh command

 
Marites Aguilar
Occasional Contributor

Error in using sh command

Hi,
I've used the command sh and I encountered the error
PHCO_19046[15]: ^M: not found.
PHCO_19046[16]: LANG^M: This is not an identifier.
I've downloaded the patch file from HP site, save it as text file, rename it
from PHCO_19046.txt to PHCO_19046. Transfer it to Unix box as binary, do dos2ux
and then I'm trying now to unshar the patch but I encountered this error. How
will I proceed then and what are the commands to install patch.

Hope you can help me.

Thanks
3 REPLIES 3
Frank Broeer
Frequent Advisor

Re: Error in using sh command

Have you checked the file that there are no ^M inside

with
dos2ux PHCO_19064
you will not remove the ^M

do for example
dos2ux patchfile

and than do
sh patchfile

you should get two files. One depot and one txt files.
Use the depot file to install the patch.
Vassily Gorbounov_1
Occasional Advisor

Re: Error in using sh command

In my opinion, you should not use dos2ux command, cause shellpatch already is
in unix format.
So you just have to put it into your UNIX box and shell it. (sh -c filename)

That's all.

Vassily Gorbounov
Frank Broeer
Frequent Advisor

Re: Error in using sh command

When you download the patch on an NT Box an save is as text file the patch is
not in unix format...

in this case you should use dos2ux