<?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: daemon process in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/daemon-process/m-p/4614626#M620762</link>
    <description>Some demons go out of their way to close stdout and stderr and reopen /dev/null.  Do you do that?&lt;BR /&gt;&lt;BR /&gt;You might be able to do:&lt;BR /&gt;startprocess 3&amp;gt; /var/tmp/errorfile&lt;BR /&gt;&lt;BR /&gt;Then attach with gdb before the error and:&lt;BR /&gt;p close(2)&lt;BR /&gt;p dup(3)</description>
    <pubDate>Fri, 09 Apr 2010 06:18:19 GMT</pubDate>
    <dc:creator>Dennis Handly</dc:creator>
    <dc:date>2010-04-09T06:18:19Z</dc:date>
    <item>
      <title>daemon process</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/daemon-process/m-p/4614624#M620760</link>
      <description>Hello All,&lt;BR /&gt;I have a daemon process, which is aborting. It does not create core file. This process is not loggin much of the log process. &lt;BR /&gt;I want to debugg with out modifying source code. &lt;BR /&gt;Is there any way I can get the error message this daemon process thowing on STDERR.&lt;BR /&gt;I tried playing around with file descriptor but it did not work. &lt;BR /&gt;I redirect 1&amp;gt;&amp;amp;&lt;SOME file=""&gt; and 2&amp;gt;&amp;amp;&lt;SOME file=""&gt; and then start the process but nothing is logged into file. &lt;BR /&gt;I tried something like &lt;BR /&gt;3&amp;lt;&amp;gt;File # open a file with FD 3&lt;BR /&gt;3&amp;lt;&amp;amp;2    # assign STDERR to 3&lt;BR /&gt;3&amp;lt;&amp;amp;1    # assign STDIN to 3 &lt;BR /&gt;but nothing is working out&lt;BR /&gt;&lt;BR /&gt;Can somebody advise if it is possible to get error message from a daemon process.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Vineet.&lt;/SOME&gt;&lt;/SOME&gt;</description>
      <pubDate>Thu, 08 Apr 2010 19:37:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/daemon-process/m-p/4614624#M620760</guid>
      <dc:creator>Vineet Goel_1</dc:creator>
      <dc:date>2010-04-08T19:37:14Z</dc:date>
    </item>
    <item>
      <title>Re: daemon process</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/daemon-process/m-p/4614625#M620761</link>
      <description>You should be doing the redirect on the command line that starts the process.&lt;BR /&gt;&lt;BR /&gt;Something like:&lt;BR /&gt;&lt;BR /&gt;# startprocess &amp;gt; /var/tmp/errorfile 2&amp;gt;&amp;amp;1 &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 08 Apr 2010 19:46:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/daemon-process/m-p/4614625#M620761</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2010-04-08T19:46:32Z</dc:date>
    </item>
    <item>
      <title>Re: daemon process</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/daemon-process/m-p/4614626#M620762</link>
      <description>Some demons go out of their way to close stdout and stderr and reopen /dev/null.  Do you do that?&lt;BR /&gt;&lt;BR /&gt;You might be able to do:&lt;BR /&gt;startprocess 3&amp;gt; /var/tmp/errorfile&lt;BR /&gt;&lt;BR /&gt;Then attach with gdb before the error and:&lt;BR /&gt;p close(2)&lt;BR /&gt;p dup(3)</description>
      <pubDate>Fri, 09 Apr 2010 06:18:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/daemon-process/m-p/4614626#M620762</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2010-04-09T06:18:19Z</dc:date>
    </item>
    <item>
      <title>Re: daemon process</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/daemon-process/m-p/4614627#M620763</link>
      <description>Thank you,&lt;BR /&gt;Vineet.</description>
      <pubDate>Fri, 09 Apr 2010 12:14:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/daemon-process/m-p/4614627#M620763</guid>
      <dc:creator>Vineet Goel_1</dc:creator>
      <dc:date>2010-04-09T12:14:59Z</dc:date>
    </item>
  </channel>
</rss>

