<?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 Startup script errors in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/startup-script-errors/m-p/2923337#M110003</link>
    <description>Hi All,&lt;BR /&gt;&lt;BR /&gt;I am currently hardening a box and have found some errors in the /etc/rc.log saying "^M" not found. I have searched all the scripts for any control characters but have found none and the problem seems to be calling the same script....&lt;BR /&gt;&lt;BR /&gt;if [ -f /etc/rc.config ] ; then&lt;BR /&gt;     . /etc/rc.config # problem line&lt;BR /&gt;else (etc)&lt;BR /&gt;&lt;BR /&gt;I have found no control characters in this file either.&lt;BR /&gt;Does anybody have any idea whats wrong here?&lt;BR /&gt;&lt;BR /&gt;Thanks in advance,&lt;BR /&gt;Colin.</description>
    <pubDate>Mon, 10 Mar 2003 16:27:22 GMT</pubDate>
    <dc:creator>Warren griggs</dc:creator>
    <dc:date>2003-03-10T16:27:22Z</dc:date>
    <item>
      <title>Startup script errors</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/startup-script-errors/m-p/2923337#M110003</link>
      <description>Hi All,&lt;BR /&gt;&lt;BR /&gt;I am currently hardening a box and have found some errors in the /etc/rc.log saying "^M" not found. I have searched all the scripts for any control characters but have found none and the problem seems to be calling the same script....&lt;BR /&gt;&lt;BR /&gt;if [ -f /etc/rc.config ] ; then&lt;BR /&gt;     . /etc/rc.config # problem line&lt;BR /&gt;else (etc)&lt;BR /&gt;&lt;BR /&gt;I have found no control characters in this file either.&lt;BR /&gt;Does anybody have any idea whats wrong here?&lt;BR /&gt;&lt;BR /&gt;Thanks in advance,&lt;BR /&gt;Colin.</description>
      <pubDate>Mon, 10 Mar 2003 16:27:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/startup-script-errors/m-p/2923337#M110003</guid>
      <dc:creator>Warren griggs</dc:creator>
      <dc:date>2003-03-10T16:27:22Z</dc:date>
    </item>
    <item>
      <title>Re: Startup script errors</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/startup-script-errors/m-p/2923338#M110004</link>
      <description>Hi Colin,&lt;BR /&gt;&lt;BR /&gt;/etc/rc.config calls all your /etc/rc.config.d/* scripts, so I'd run:&lt;BR /&gt;&lt;BR /&gt;sh -x /etc/rc.config&lt;BR /&gt;&lt;BR /&gt;and look for the ^M error in the output.  Maybe even copy the script and add a line to echo the name of each script as it is sourced then run:&lt;BR /&gt;&lt;BR /&gt;. /etc/rc.config&lt;BR /&gt;&lt;BR /&gt;this should then show you the offending file.&lt;BR /&gt;&lt;BR /&gt;rgds, Robin</description>
      <pubDate>Mon, 10 Mar 2003 16:34:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/startup-script-errors/m-p/2923338#M110004</guid>
      <dc:creator>Robin Wakefield</dc:creator>
      <dc:date>2003-03-10T16:34:31Z</dc:date>
    </item>
    <item>
      <title>Re: Startup script errors</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/startup-script-errors/m-p/2923339#M110005</link>
      <description>Hi Colin:&lt;BR /&gt;&lt;BR /&gt;'/etc/rc.config' sources (reads) every file in '/etc/rc.config.d/' to collect environmental variables.&lt;BR /&gt;&lt;BR /&gt;The presence of "^M" in some file within this directory is probably due to a editting a file on a PC and incorrectly doing a binary FTP transfer back to Unix.&lt;BR /&gt;&lt;BR /&gt;Look in '/etc/rc.config.d' for the culprit.  You can expose the "^M" by doing:&lt;BR /&gt;&lt;BR /&gt;# for FILE in /etc/rc.config.d/*&lt;BR /&gt;&amp;gt; do&lt;BR /&gt;&amp;gt; cat -etv ${FILE}|more&lt;BR /&gt;&amp;gt; done&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 10 Mar 2003 16:39:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/startup-script-errors/m-p/2923339#M110005</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2003-03-10T16:39:50Z</dc:date>
    </item>
    <item>
      <title>Re: Startup script errors</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/startup-script-errors/m-p/2923340#M110006</link>
      <description>It is also possible to get this error if you edited the script on the pc and saved it to a folder exported with CIFS or samba.&lt;BR /&gt;&lt;BR /&gt;The specific problem you are having, I prevent by using vi on the host to edit configuration scripts.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Mon, 10 Mar 2003 17:33:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/startup-script-errors/m-p/2923340#M110006</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2003-03-10T17:33:51Z</dc:date>
    </item>
  </channel>
</rss>

