<?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 Re: echo during the startup in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/echo-during-the-startup/m-p/3789368#M99600</link>
    <description>Hi,&lt;BR /&gt;by man rc:&lt;BR /&gt;&lt;BR /&gt; Script Output&lt;BR /&gt;   To ensure proper reporting of startup events, startup scripts are&lt;BR /&gt;   required to comply with the following guidelines for script output.&lt;BR /&gt;&lt;BR /&gt;        +  Status messages, such as&lt;BR /&gt;&lt;BR /&gt;                starting house daemon&lt;BR /&gt;&lt;BR /&gt;           must be directed to stdout.  All error messages must be&lt;BR /&gt;           directed to stderr.&lt;BR /&gt;&lt;BR /&gt;        +  Script output, both stdout and stderr, is redirected to log&lt;BR /&gt;           file /etc/rc.log, unless the startup checklist mode is set to&lt;BR /&gt;           the raw mode.  In this case, all output goes to the console.&lt;BR /&gt;           All error messages should be echoed to stdout or stderr.&lt;BR /&gt;&lt;BR /&gt;        +  Startup scripts are not allowed to send messages directly to&lt;BR /&gt;           the console, or to start any daemons that immediately write to&lt;BR /&gt;           the console.  This restriction exists because these scripts&lt;BR /&gt;           are now started by the /sbin/rc checklist wrapper.  All script&lt;BR /&gt;           output should go to either stdout or stderr, and thus be&lt;BR /&gt;           captured in a log file.  Any console output will be garbled.&lt;BR /&gt;&lt;BR /&gt;        +  When a startup script returns an exit code of 3, /sbin/rc can&lt;BR /&gt;           display a specific message on the console prior to rebooting&lt;BR /&gt;           the system.  This is achieved by creating a text file named&lt;BR /&gt;           /etc/rc.bootmsg containing the text to be displayed to the&lt;BR /&gt;           console.  Note that /sbin/rc deletes this file after&lt;BR /&gt;           displaying the message, so startup scripts need to write this&lt;BR /&gt;           file each time a specific message is required to be displayed&lt;BR /&gt;           on console prior to reboot.&lt;BR /&gt;&lt;BR /&gt;Enrico</description>
    <pubDate>Wed, 17 May 2006 03:56:46 GMT</pubDate>
    <dc:creator>Enrico P.</dc:creator>
    <dc:date>2006-05-17T03:56:46Z</dc:date>
    <item>
      <title>echo during the startup</title>
      <link>https://community.hpe.com/t5/operating-system-linux/echo-during-the-startup/m-p/3789364#M99596</link>
      <description>HI&lt;BR /&gt;&lt;BR /&gt;I have a startup script S100test, I put a few "echo" statements. when I reboot the machine, it does NOT echo anything.&lt;BR /&gt;&lt;BR /&gt;When system is stable, I can run it and it echoes....&lt;BR /&gt;&lt;BR /&gt;did I miss anything?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 16 May 2006 22:22:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/echo-during-the-startup/m-p/3789364#M99596</guid>
      <dc:creator>Gemini_2</dc:creator>
      <dc:date>2006-05-16T22:22:45Z</dc:date>
    </item>
    <item>
      <title>Re: echo during the startup</title>
      <link>https://community.hpe.com/t5/operating-system-linux/echo-during-the-startup/m-p/3789365#M99597</link>
      <description>When you reboot, you need to have kill script then (K*). Scripts starting with S8 are to be executed while system is coming up.&lt;BR /&gt;&lt;BR /&gt;Am I missing something?</description>
      <pubDate>Tue, 16 May 2006 22:34:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/echo-during-the-startup/m-p/3789365#M99597</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2006-05-16T22:34:13Z</dc:date>
    </item>
    <item>
      <title>Re: echo during the startup</title>
      <link>https://community.hpe.com/t5/operating-system-linux/echo-during-the-startup/m-p/3789366#M99598</link>
      <description>Check /etc/rc.log for output from your startup/shutdown scripts.</description>
      <pubDate>Tue, 16 May 2006 22:35:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/echo-during-the-startup/m-p/3789366#M99598</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2006-05-16T22:35:58Z</dc:date>
    </item>
    <item>
      <title>Re: echo during the startup</title>
      <link>https://community.hpe.com/t5/operating-system-linux/echo-during-the-startup/m-p/3789367#M99599</link>
      <description>hi,&lt;BR /&gt;&lt;BR /&gt;is there any message in /etc/rc.log?&lt;BR /&gt;&lt;BR /&gt;GOOD LUCK!!&lt;BR /&gt;</description>
      <pubDate>Tue, 16 May 2006 22:36:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/echo-during-the-startup/m-p/3789367#M99599</guid>
      <dc:creator>Warren_9</dc:creator>
      <dc:date>2006-05-16T22:36:10Z</dc:date>
    </item>
    <item>
      <title>Re: echo during the startup</title>
      <link>https://community.hpe.com/t5/operating-system-linux/echo-during-the-startup/m-p/3789368#M99600</link>
      <description>Hi,&lt;BR /&gt;by man rc:&lt;BR /&gt;&lt;BR /&gt; Script Output&lt;BR /&gt;   To ensure proper reporting of startup events, startup scripts are&lt;BR /&gt;   required to comply with the following guidelines for script output.&lt;BR /&gt;&lt;BR /&gt;        +  Status messages, such as&lt;BR /&gt;&lt;BR /&gt;                starting house daemon&lt;BR /&gt;&lt;BR /&gt;           must be directed to stdout.  All error messages must be&lt;BR /&gt;           directed to stderr.&lt;BR /&gt;&lt;BR /&gt;        +  Script output, both stdout and stderr, is redirected to log&lt;BR /&gt;           file /etc/rc.log, unless the startup checklist mode is set to&lt;BR /&gt;           the raw mode.  In this case, all output goes to the console.&lt;BR /&gt;           All error messages should be echoed to stdout or stderr.&lt;BR /&gt;&lt;BR /&gt;        +  Startup scripts are not allowed to send messages directly to&lt;BR /&gt;           the console, or to start any daemons that immediately write to&lt;BR /&gt;           the console.  This restriction exists because these scripts&lt;BR /&gt;           are now started by the /sbin/rc checklist wrapper.  All script&lt;BR /&gt;           output should go to either stdout or stderr, and thus be&lt;BR /&gt;           captured in a log file.  Any console output will be garbled.&lt;BR /&gt;&lt;BR /&gt;        +  When a startup script returns an exit code of 3, /sbin/rc can&lt;BR /&gt;           display a specific message on the console prior to rebooting&lt;BR /&gt;           the system.  This is achieved by creating a text file named&lt;BR /&gt;           /etc/rc.bootmsg containing the text to be displayed to the&lt;BR /&gt;           console.  Note that /sbin/rc deletes this file after&lt;BR /&gt;           displaying the message, so startup scripts need to write this&lt;BR /&gt;           file each time a specific message is required to be displayed&lt;BR /&gt;           on console prior to reboot.&lt;BR /&gt;&lt;BR /&gt;Enrico</description>
      <pubDate>Wed, 17 May 2006 03:56:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/echo-during-the-startup/m-p/3789368#M99600</guid>
      <dc:creator>Enrico P.</dc:creator>
      <dc:date>2006-05-17T03:56:46Z</dc:date>
    </item>
    <item>
      <title>Re: echo during the startup</title>
      <link>https://community.hpe.com/t5/operating-system-linux/echo-during-the-startup/m-p/3789369#M99601</link>
      <description>Hi Gemini,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;# cp -p S100test /sbin/init.d/test&lt;BR /&gt;# rm S100test&lt;BR /&gt;# ln -s /sbin/init.d/test ./S100test&lt;BR /&gt;&lt;BR /&gt;rgs,&lt;BR /&gt;&lt;BR /&gt;ran&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 17 May 2006 06:11:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/echo-during-the-startup/m-p/3789369#M99601</guid>
      <dc:creator>rariasn</dc:creator>
      <dc:date>2006-05-17T06:11:39Z</dc:date>
    </item>
    <item>
      <title>Re: echo during the startup</title>
      <link>https://community.hpe.com/t5/operating-system-linux/echo-during-the-startup/m-p/3789370#M99602</link>
      <description>I checked, but there is no rc.log.&lt;BR /&gt;&lt;BR /&gt;it is a bash script, the script looks like this&lt;BR /&gt;&lt;BR /&gt;#!/bin/bash&lt;BR /&gt;&lt;BR /&gt;echo please answer your answer&lt;BR /&gt;read a&lt;BR /&gt;echo $a&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;(of course, it does more than that, but the above is the trouble I am encountering)&lt;BR /&gt;&lt;BR /&gt;I know the script was invoked, but I saw&lt;BR /&gt;S100test get started, but it didnt output the echo statement nor asked me any question.&lt;BR /&gt;&lt;BR /&gt;if output goes to rc.log (didnt see that file), how can I re-direct the output and input?</description>
      <pubDate>Wed, 17 May 2006 11:02:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/echo-during-the-startup/m-p/3789370#M99602</guid>
      <dc:creator>Gemini_2</dc:creator>
      <dc:date>2006-05-17T11:02:30Z</dc:date>
    </item>
    <item>
      <title>Re: echo during the startup</title>
      <link>https://community.hpe.com/t5/operating-system-linux/echo-during-the-startup/m-p/3789371#M99603</link>
      <description>If this is HP-UX, then you should definitely have a file in the /etc/ directory called rc.log.&lt;BR /&gt;&lt;BR /&gt;As to trying to get a startup script to ask for input when the machine is starting ---  That is a VERY BAD idea in my opinion.  Why?  Because you want the machine to boot as quickly as possible.  If it crashes in the middle of the night, there is the possiblity that the machine would be sitting and waiting on input from you for several hours causing it to not finish booting.&lt;BR /&gt;&lt;BR /&gt;In my opinion you need to seriously rethink the use of a startup script that requires sys admin input.</description>
      <pubDate>Wed, 17 May 2006 11:21:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/echo-during-the-startup/m-p/3789371#M99603</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2006-05-17T11:21:13Z</dc:date>
    </item>
  </channel>
</rss>

