<?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: Inittab in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/inittab/m-p/2768913#M74170</link>
    <description>Stefan,&lt;BR /&gt;&lt;BR /&gt;Let's please scale down the tone a bit.&lt;BR /&gt;&lt;BR /&gt;Please post which command you did try, because from your postings it is not clear (i.e. contradictory information).&lt;BR /&gt;&lt;BR /&gt;For what it is worth, I only warned about the dangers, i.e. using an executable which uses shared libraries, without /usr mounted is asking for trouble. I don't think it is wise to implement something which happens to 'work' if you know that there potential problems with the approach (i.e. in this case missing shared libraries).</description>
    <pubDate>Mon, 22 Jul 2002 13:01:42 GMT</pubDate>
    <dc:creator>Frank Slootweg</dc:creator>
    <dc:date>2002-07-22T13:01:42Z</dc:date>
    <item>
      <title>Inittab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/inittab/m-p/2768899#M74156</link>
      <description>I want to change the following entry in inittab so that it doesn't just send output to dev/console but to a file, i thought about using the TEE command but wondered if anyone has done this before or could offer advice on possible construct.&lt;BR /&gt;&lt;BR /&gt;brc1::bootwait:/sbin/bcheckrc /dev/console 2&amp;gt;&amp;amp;1 # fsck, etc.</description>
      <pubDate>Mon, 22 Jul 2002 09:02:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/inittab/m-p/2768899#M74156</guid>
      <dc:creator>Dave Elliott</dc:creator>
      <dc:date>2002-07-22T09:02:19Z</dc:date>
    </item>
    <item>
      <title>Re: Inittab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/inittab/m-p/2768900#M74157</link>
      <description>Hi,&lt;BR /&gt;I wont recommend to change that line.&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;U.SivaKumar</description>
      <pubDate>Mon, 22 Jul 2002 09:13:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/inittab/m-p/2768900#M74157</guid>
      <dc:creator>U.SivaKumar_2</dc:creator>
      <dc:date>2002-07-22T09:13:13Z</dc:date>
    </item>
    <item>
      <title>Re: Inittab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/inittab/m-p/2768901#M74158</link>
      <description>Iknow that this i high risk, i am trying this on a test system where i am the only person who uses it so no problem.&lt;BR /&gt;but i think that it should be possible as at the end of the day it is a script and therefore as long as i get the syntax correct should work.&lt;BR /&gt;worst case is i have to boot to single user mode and copy the orig file back in and restart.</description>
      <pubDate>Mon, 22 Jul 2002 09:19:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/inittab/m-p/2768901#M74158</guid>
      <dc:creator>Dave Elliott</dc:creator>
      <dc:date>2002-07-22T09:19:04Z</dc:date>
    </item>
    <item>
      <title>Re: Inittab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/inittab/m-p/2768902#M74159</link>
      <description>I think the format to try should be;&lt;BR /&gt;&lt;BR /&gt;brc1::bootwait:/sbin/bcheckrc &amp;amp;1 | tee /brc1.log &amp;gt;/dev/console&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;But im not sure that at the point this runs that any filesystem is mounted except / but you may have to try /stand instead for the logfile.</description>
      <pubDate>Mon, 22 Jul 2002 09:27:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/inittab/m-p/2768902#M74159</guid>
      <dc:creator>Stefan Farrelly</dc:creator>
      <dc:date>2002-07-22T09:27:16Z</dc:date>
    </item>
    <item>
      <title>Re: Inittab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/inittab/m-p/2768903#M74160</link>
      <description>Hi,&lt;BR /&gt;brc1::bootwait:/sbin/bcheckrc &amp;gt; /home/bceck 2&amp;gt;&amp;amp;1 &lt;BR /&gt;will be enough for that.&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;U.SivaKumar&lt;BR /&gt;</description>
      <pubDate>Mon, 22 Jul 2002 09:28:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/inittab/m-p/2768903#M74160</guid>
      <dc:creator>U.SivaKumar_2</dc:creator>
      <dc:date>2002-07-22T09:28:50Z</dc:date>
    </item>
    <item>
      <title>Re: Inittab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/inittab/m-p/2768904#M74161</link>
      <description>&lt;BR /&gt;On second thought it might not be able to find the tee command as its in /usr/bin, you may need to copy to /sbin first then change command to;&lt;BR /&gt;&lt;BR /&gt;brc1::bootwait:/sbin/bcheckrc &amp;amp;1 | /sbin/tee /brc1.log &amp;gt;/dev/console &lt;BR /&gt;</description>
      <pubDate>Mon, 22 Jul 2002 09:30:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/inittab/m-p/2768904#M74161</guid>
      <dc:creator>Stefan Farrelly</dc:creator>
      <dc:date>2002-07-22T09:30:05Z</dc:date>
    </item>
    <item>
      <title>Re: Inittab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/inittab/m-p/2768905#M74162</link>
      <description>Stefan is right about tee not being available because no dirs but / is mounted yet. For the same reason U.SivaKumar suggestion should put the file on / too.&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;Trond</description>
      <pubDate>Mon, 22 Jul 2002 10:10:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/inittab/m-p/2768905#M74162</guid>
      <dc:creator>Trond Haugen</dc:creator>
      <dc:date>2002-07-22T10:10:18Z</dc:date>
    </item>
    <item>
      <title>Re: Inittab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/inittab/m-p/2768906#M74163</link>
      <description>And copying [/usr/bin/]tee to /sbin will not help, because /usr/bin/tee uses shared libraries ("chatr /usr/bin/tee"), which are on /usr, which is not yet mounted.</description>
      <pubDate>Mon, 22 Jul 2002 10:35:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/inittab/m-p/2768906#M74163</guid>
      <dc:creator>Frank Slootweg</dc:creator>
      <dc:date>2002-07-22T10:35:36Z</dc:date>
    </item>
    <item>
      <title>Re: Inittab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/inittab/m-p/2768907#M74164</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;With tee being in /usr/bin you cannot achieve what you want to do. The file in that directory are dinamically linked and they need the library that are in /usr/lib so even movin tee in /sbin won't work. You will need the source code of tee and rebuild it statically link.&lt;BR /&gt;&lt;BR /&gt;Luc</description>
      <pubDate>Mon, 22 Jul 2002 10:39:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/inittab/m-p/2768907#M74164</guid>
      <dc:creator>Luc Bussieres_1</dc:creator>
      <dc:date>2002-07-22T10:39:54Z</dc:date>
    </item>
    <item>
      <title>Re: Inittab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/inittab/m-p/2768908#M74165</link>
      <description>&lt;BR /&gt;All this talk about tee not working if copied to /sbin - baloney. Ive just tried it in my inittab file and it worked absolutely fine!&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 22 Jul 2002 11:12:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/inittab/m-p/2768908#M74165</guid>
      <dc:creator>Stefan Farrelly</dc:creator>
      <dc:date>2002-07-22T11:12:56Z</dc:date>
    </item>
    <item>
      <title>Re: Inittab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/inittab/m-p/2768909#M74166</link>
      <description>How i have tried it in the initab file and everything still works the way you would expect excetp that there is no file created.</description>
      <pubDate>Mon, 22 Jul 2002 11:39:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/inittab/m-p/2768909#M74166</guid>
      <dc:creator>Dave Elliott</dc:creator>
      <dc:date>2002-07-22T11:39:42Z</dc:date>
    </item>
    <item>
      <title>Re: Inittab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/inittab/m-p/2768910#M74167</link>
      <description>Hi Andrew,&lt;BR /&gt;&lt;BR /&gt;ah, thats because exec cant handle the pipe character which means you cant use tee, you need to do it in 2 stages this way (works fine on my test server);&lt;BR /&gt;&lt;BR /&gt;brc1::bootwait:/sbin/bcheckrc /brc1.log 2&amp;gt;&amp;amp;1 ; cat /brc1.log &amp;gt;/dev/console&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 22 Jul 2002 11:43:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/inittab/m-p/2768910#M74167</guid>
      <dc:creator>Stefan Farrelly</dc:creator>
      <dc:date>2002-07-22T11:43:43Z</dc:date>
    </item>
    <item>
      <title>Re: Inittab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/inittab/m-p/2768911#M74168</link>
      <description>Stefan, I am afraid that "All this talk about tee not working if copied to /sbin - baloney.", isn't baloney!&lt;BR /&gt;&lt;BR /&gt;You imply that you have tried it, but later you say "exec cant handle the pipe character which means you cant use tee", so I guess you did *not* actually try it, or did not try it with a reboot, etc..&lt;BR /&gt;&lt;BR /&gt;Even if you did try it with a reboot, you still might have been 'lucky', because, as I wrote, /usr/bin/tee *does* use shared libraries, so it could fail under certain circumstances (different LANG?) and you don't want failures at boot time, especially not for bcheckrc.&lt;BR /&gt;</description>
      <pubDate>Mon, 22 Jul 2002 12:28:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/inittab/m-p/2768911#M74168</guid>
      <dc:creator>Frank Slootweg</dc:creator>
      <dc:date>2002-07-22T12:28:55Z</dc:date>
    </item>
    <item>
      <title>Re: Inittab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/inittab/m-p/2768912#M74169</link>
      <description>&lt;BR /&gt;Look Frank, I DID try it - you clearly didnt. Wind your neck in.</description>
      <pubDate>Mon, 22 Jul 2002 12:37:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/inittab/m-p/2768912#M74169</guid>
      <dc:creator>Stefan Farrelly</dc:creator>
      <dc:date>2002-07-22T12:37:38Z</dc:date>
    </item>
    <item>
      <title>Re: Inittab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/inittab/m-p/2768913#M74170</link>
      <description>Stefan,&lt;BR /&gt;&lt;BR /&gt;Let's please scale down the tone a bit.&lt;BR /&gt;&lt;BR /&gt;Please post which command you did try, because from your postings it is not clear (i.e. contradictory information).&lt;BR /&gt;&lt;BR /&gt;For what it is worth, I only warned about the dangers, i.e. using an executable which uses shared libraries, without /usr mounted is asking for trouble. I don't think it is wise to implement something which happens to 'work' if you know that there potential problems with the approach (i.e. in this case missing shared libraries).</description>
      <pubDate>Mon, 22 Jul 2002 13:01:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/inittab/m-p/2768913#M74170</guid>
      <dc:creator>Frank Slootweg</dc:creator>
      <dc:date>2002-07-22T13:01:42Z</dc:date>
    </item>
    <item>
      <title>Re: Inittab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/inittab/m-p/2768914#M74171</link>
      <description>My first impression (without reading any of the responses) was that this can't possibly work because it would require that /usr be mounted even if tee were moved to /sbin because tee requires shared libraries.&lt;BR /&gt;&lt;BR /&gt;If you do an ldd /usr/bin/tee, you will find that indeed requires shared libraries.&lt;BR /&gt;&lt;BR /&gt;If you really wanted to do this, it would be quite easy to code a statically linked equivalent of tee and put it in /sbin. This should be only a few lines of C.&lt;BR /&gt;</description>
      <pubDate>Mon, 22 Jul 2002 13:33:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/inittab/m-p/2768914#M74171</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2002-07-22T13:33:35Z</dc:date>
    </item>
  </channel>
</rss>

