<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic unshar patches -environmental problem in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/unshar-patches-environmental-problem/m-p/2602264#M34479</link>
    <description>I'm getting an environmental error while attempting to unshar patches:&lt;BR /&gt;# sh PHKL_24027&lt;BR /&gt;PHKL_24027[15]: ^M:  not found.&lt;BR /&gt;PHKL_24027[16]: LANG^M: This is not an identifier. &lt;BR /&gt;These are the permissions on the file:&lt;BR /&gt;# ll PHKL_24027&lt;BR /&gt;-rwxrwxrwx   1 root       sys         468069 Oct 26 10:59 PHKL_24027&lt;BR /&gt;This is my environment:&lt;BR /&gt;# env&lt;BR /&gt;_=/usr/bin/env&lt;BR /&gt;MANPATH=/usr/share/man/%L:/usr/share/man:/usr/contrib/man/%L:/usr/contrib/man:/u&lt;BR /&gt;sr/local/man/%L:/usr/local/man:/opt/pd/share/man/%L:/opt/pd/share/man:/opt/ignit&lt;BR /&gt;e/share/man/%L:/opt/ignite/share/man:/opt/fcms/bin:/opt/perf/man/%L:/opt/perf/ma&lt;BR /&gt;n:/share/man:/opt/omni/lib/man:/opt/hparray/share/man/%L:/opt/hparray/share/man:&lt;BR /&gt;/opt/upgrade/share/man/%L:/opt/upgrade/share/man:/usr/dt/share/man:/opt/pd/share&lt;BR /&gt;/man/%L:/opt/pd/share/man:/opt/resmon/share/man:/opt/pred/share/man/%L:/opt/pred&lt;BR /&gt;/share/man&lt;BR /&gt;LANG=&lt;BR /&gt;PATH=/usr/sbin:/usr/bin:/usr/ccs/bin:/usr/contrib/bin:/opt/nettladm/bin:/opt/pd/&lt;BR /&gt;bin:/opt/upgrade/bin:/usr/bin/X11:/usr/contrib/bin/X11:/opt/fcms/bin:/opt/perf/b&lt;BR /&gt;in:/bin:/opt/omni/bin:/opt/ignite/bin:/opt/hparray/bin:/opt/fc/bin:/opt/resmon/b&lt;BR /&gt;in:/opt/pred/bin:/sbin:/home/root&lt;BR /&gt;EDITOR=vi&lt;BR /&gt;LOGNAME=root&lt;BR /&gt;MAIL=/var/mail/root&lt;BR /&gt;ERASE=^H&lt;BR /&gt;SHELL=/sbin/sh&lt;BR /&gt;HOME=/&lt;BR /&gt;TERM=ansi&lt;BR /&gt;PWD=/tmp&lt;BR /&gt;TZ=EST5EDT&lt;BR /&gt;#&lt;BR /&gt;These are the first 20 lines of the patch file:&lt;BR /&gt; &lt;BR /&gt;#---------------------------------- cut here ----------------------------------&lt;BR /&gt;# This is a shell archive.  Remove anything before this line,&lt;BR /&gt;# then unpack it by saving it in a file and typing "sh file".&lt;BR /&gt;#&lt;BR /&gt;# Wrapped by WTEC Patch Team &lt;PATCHES&gt; on Mon Oct 22 15:27:22 2001&lt;BR /&gt;#&lt;BR /&gt;# This archive contains:&lt;BR /&gt;# PHKL_25475.text  PHKL_25475.depot &lt;BR /&gt;#&lt;BR /&gt;# Existing files will not be overwritten.&lt;BR /&gt;# Modification/access file times will be preserved.&lt;BR /&gt;# Error checking via wc(1) will be performed.&lt;BR /&gt;# Error checking via sum(1) will be performed.&lt;BR /&gt;# Binary files are compressed using compress(1).&lt;BR /&gt;&lt;BR /&gt;LANG=""; export LANG&lt;BR /&gt;LC_CTYPE=""; export LC_CTYPE&lt;BR /&gt;LC_ALL=""; export LC_ALL&lt;BR /&gt;PATH=/bin:/usr/bin:$PATH; export PATH&lt;BR /&gt;&lt;BR /&gt;if sum -r &lt;/PATCHES&gt;/dev/null 2&amp;gt;&amp;amp;1&lt;BR /&gt;then&lt;BR /&gt; sumopt='-r'&lt;BR /&gt;else&lt;BR /&gt; sumopt=''&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;It's probably something elementary, but I'm not sure what...???????????</description>
    <pubDate>Fri, 26 Oct 2001 15:12:10 GMT</pubDate>
    <dc:creator>Randy Tarrier</dc:creator>
    <dc:date>2001-10-26T15:12:10Z</dc:date>
    <item>
      <title>unshar patches -environmental problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unshar-patches-environmental-problem/m-p/2602264#M34479</link>
      <description>I'm getting an environmental error while attempting to unshar patches:&lt;BR /&gt;# sh PHKL_24027&lt;BR /&gt;PHKL_24027[15]: ^M:  not found.&lt;BR /&gt;PHKL_24027[16]: LANG^M: This is not an identifier. &lt;BR /&gt;These are the permissions on the file:&lt;BR /&gt;# ll PHKL_24027&lt;BR /&gt;-rwxrwxrwx   1 root       sys         468069 Oct 26 10:59 PHKL_24027&lt;BR /&gt;This is my environment:&lt;BR /&gt;# env&lt;BR /&gt;_=/usr/bin/env&lt;BR /&gt;MANPATH=/usr/share/man/%L:/usr/share/man:/usr/contrib/man/%L:/usr/contrib/man:/u&lt;BR /&gt;sr/local/man/%L:/usr/local/man:/opt/pd/share/man/%L:/opt/pd/share/man:/opt/ignit&lt;BR /&gt;e/share/man/%L:/opt/ignite/share/man:/opt/fcms/bin:/opt/perf/man/%L:/opt/perf/ma&lt;BR /&gt;n:/share/man:/opt/omni/lib/man:/opt/hparray/share/man/%L:/opt/hparray/share/man:&lt;BR /&gt;/opt/upgrade/share/man/%L:/opt/upgrade/share/man:/usr/dt/share/man:/opt/pd/share&lt;BR /&gt;/man/%L:/opt/pd/share/man:/opt/resmon/share/man:/opt/pred/share/man/%L:/opt/pred&lt;BR /&gt;/share/man&lt;BR /&gt;LANG=&lt;BR /&gt;PATH=/usr/sbin:/usr/bin:/usr/ccs/bin:/usr/contrib/bin:/opt/nettladm/bin:/opt/pd/&lt;BR /&gt;bin:/opt/upgrade/bin:/usr/bin/X11:/usr/contrib/bin/X11:/opt/fcms/bin:/opt/perf/b&lt;BR /&gt;in:/bin:/opt/omni/bin:/opt/ignite/bin:/opt/hparray/bin:/opt/fc/bin:/opt/resmon/b&lt;BR /&gt;in:/opt/pred/bin:/sbin:/home/root&lt;BR /&gt;EDITOR=vi&lt;BR /&gt;LOGNAME=root&lt;BR /&gt;MAIL=/var/mail/root&lt;BR /&gt;ERASE=^H&lt;BR /&gt;SHELL=/sbin/sh&lt;BR /&gt;HOME=/&lt;BR /&gt;TERM=ansi&lt;BR /&gt;PWD=/tmp&lt;BR /&gt;TZ=EST5EDT&lt;BR /&gt;#&lt;BR /&gt;These are the first 20 lines of the patch file:&lt;BR /&gt; &lt;BR /&gt;#---------------------------------- cut here ----------------------------------&lt;BR /&gt;# This is a shell archive.  Remove anything before this line,&lt;BR /&gt;# then unpack it by saving it in a file and typing "sh file".&lt;BR /&gt;#&lt;BR /&gt;# Wrapped by WTEC Patch Team &lt;PATCHES&gt; on Mon Oct 22 15:27:22 2001&lt;BR /&gt;#&lt;BR /&gt;# This archive contains:&lt;BR /&gt;# PHKL_25475.text  PHKL_25475.depot &lt;BR /&gt;#&lt;BR /&gt;# Existing files will not be overwritten.&lt;BR /&gt;# Modification/access file times will be preserved.&lt;BR /&gt;# Error checking via wc(1) will be performed.&lt;BR /&gt;# Error checking via sum(1) will be performed.&lt;BR /&gt;# Binary files are compressed using compress(1).&lt;BR /&gt;&lt;BR /&gt;LANG=""; export LANG&lt;BR /&gt;LC_CTYPE=""; export LC_CTYPE&lt;BR /&gt;LC_ALL=""; export LC_ALL&lt;BR /&gt;PATH=/bin:/usr/bin:$PATH; export PATH&lt;BR /&gt;&lt;BR /&gt;if sum -r &lt;/PATCHES&gt;/dev/null 2&amp;gt;&amp;amp;1&lt;BR /&gt;then&lt;BR /&gt; sumopt='-r'&lt;BR /&gt;else&lt;BR /&gt; sumopt=''&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;It's probably something elementary, but I'm not sure what...???????????</description>
      <pubDate>Fri, 26 Oct 2001 15:12:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unshar-patches-environmental-problem/m-p/2602264#M34479</guid>
      <dc:creator>Randy Tarrier</dc:creator>
      <dc:date>2001-10-26T15:12:10Z</dc:date>
    </item>
    <item>
      <title>Re: unshar patches -environmental problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unshar-patches-environmental-problem/m-p/2602265#M34480</link>
      <description>Just a guess - try dos2ux on the file then unshar it.</description>
      <pubDate>Fri, 26 Oct 2001 15:16:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unshar-patches-environmental-problem/m-p/2602265#M34480</guid>
      <dc:creator>Darrell Allen</dc:creator>
      <dc:date>2001-10-26T15:16:29Z</dc:date>
    </item>
    <item>
      <title>Re: unshar patches -environmental problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unshar-patches-environmental-problem/m-p/2602266#M34481</link>
      <description>a) Did you download the patch to a PC ?&lt;BR /&gt;b) ^M is probably from the pc "end-of-line".&lt;BR /&gt;&lt;BR /&gt;If a) is true .. do this to remove the line feed.&lt;BR /&gt;&lt;BR /&gt;# dos2ux thesharfile &amp;gt; cleansharfile&lt;BR /&gt;# sh cleansharfile&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 26 Oct 2001 15:20:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unshar-patches-environmental-problem/m-p/2602266#M34481</guid>
      <dc:creator>S.K. Chan</dc:creator>
      <dc:date>2001-10-26T15:20:07Z</dc:date>
    </item>
    <item>
      <title>Re: unshar patches -environmental problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unshar-patches-environmental-problem/m-p/2602267#M34482</link>
      <description>dos2ux to remove window ctrl files..&lt;BR /&gt;&lt;BR /&gt;Later,&lt;BR /&gt;Bill</description>
      <pubDate>Fri, 26 Oct 2001 15:21:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unshar-patches-environmental-problem/m-p/2602267#M34482</guid>
      <dc:creator>Bill McNAMARA_1</dc:creator>
      <dc:date>2001-10-26T15:21:09Z</dc:date>
    </item>
    <item>
      <title>Re: unshar patches -environmental problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unshar-patches-environmental-problem/m-p/2602268#M34483</link>
      <description>Number one cause of this is due to an ftp from a DOS/windows machine to a Unix machine done in binary mode.&lt;BR /&gt;&lt;BR /&gt;For some obscure reason most PC operating systems use a CRLF combination to mean end of line, whereas HP-UX uses LF.&lt;BR /&gt;&lt;BR /&gt;The quickest way of removing extraneous CR's is to use:&lt;BR /&gt;   tr -d '^M' &lt;FILE&gt;temp&lt;BR /&gt;&lt;BR /&gt;(Note the ^M is achieved by pressing CTRL-V, CTRL-M )&lt;BR /&gt;&lt;BR /&gt;I have had problems in getting dos2ux working in the past.&lt;BR /&gt;&lt;BR /&gt;To avoid this in future always transfer in ASCII when transferring shar files from DOS -&amp;gt; Unix&lt;BR /&gt;&lt;BR /&gt;dav&lt;/FILE&gt;</description>
      <pubDate>Fri, 26 Oct 2001 15:26:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unshar-patches-environmental-problem/m-p/2602268#M34483</guid>
      <dc:creator>David Lodge</dc:creator>
      <dc:date>2001-10-26T15:26:40Z</dc:date>
    </item>
    <item>
      <title>Re: unshar patches -environmental problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unshar-patches-environmental-problem/m-p/2602269#M34484</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;1.While doing ftp use ASCII in future.. &lt;BR /&gt;2. Secondly use do2ux command to replace ^M&lt;BR /&gt;&lt;BR /&gt;-USA..&lt;BR /&gt;</description>
      <pubDate>Fri, 26 Oct 2001 15:38:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unshar-patches-environmental-problem/m-p/2602269#M34484</guid>
      <dc:creator>Uday_S_Ankolekar</dc:creator>
      <dc:date>2001-10-26T15:38:22Z</dc:date>
    </item>
  </channel>
</rss>

