<?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: script always run in background in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/script-always-run-in-background/m-p/3270398#M889397</link>
    <description>Actually I expect my script to run in background and wait for some input once it got the input it will process it.</description>
    <pubDate>Fri, 07 May 2004 04:18:08 GMT</pubDate>
    <dc:creator>kholikt</dc:creator>
    <dc:date>2004-05-07T04:18:08Z</dc:date>
    <item>
      <title>script always run in background</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-always-run-in-background/m-p/3270394#M889393</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Is there any way that I can put a shell script that act like a daemon.  I mean to make it always run in background.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 07 May 2004 03:12:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-always-run-in-background/m-p/3270394#M889393</guid>
      <dc:creator>kholikt</dc:creator>
      <dc:date>2004-05-07T03:12:35Z</dc:date>
    </item>
    <item>
      <title>Re: script always run in background</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-always-run-in-background/m-p/3270395#M889394</link>
      <description>I just want to put this in my script.  The whole script should run in background&lt;BR /&gt;&lt;BR /&gt;svrmgrl&lt;BR /&gt;connect internal;&lt;BR /&gt;recover managed standby database;</description>
      <pubDate>Fri, 07 May 2004 03:26:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-always-run-in-background/m-p/3270395#M889394</guid>
      <dc:creator>kholikt</dc:creator>
      <dc:date>2004-05-07T03:26:15Z</dc:date>
    </item>
    <item>
      <title>Re: script always run in background</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-always-run-in-background/m-p/3270396#M889395</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;To put a script in the background detached from tty : nohup.&lt;BR /&gt;&lt;BR /&gt;As for the deamon aspect - like automatic start at boot : /etc/rc scripts&lt;BR /&gt;&lt;BR /&gt;You might want to do another script (in crontab for instance) to check that the first one is always running.&lt;BR /&gt;&lt;BR /&gt;Anyway, can you explain how / why you entend to use such script ?&lt;BR /&gt;&lt;BR /&gt;Cheers&lt;BR /&gt;&lt;BR /&gt;Nicolas</description>
      <pubDate>Fri, 07 May 2004 03:43:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-always-run-in-background/m-p/3270396#M889395</guid>
      <dc:creator>Nicolas Dumeige</dc:creator>
      <dc:date>2004-05-07T03:43:55Z</dc:date>
    </item>
    <item>
      <title>Re: script always run in background</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-always-run-in-background/m-p/3270397#M889396</link>
      <description>The other possibility is to manage the daemon from /etc/inittab&lt;BR /&gt;&lt;BR /&gt;man inittab&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Jean-Luc</description>
      <pubDate>Fri, 07 May 2004 03:49:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-always-run-in-background/m-p/3270397#M889396</guid>
      <dc:creator>Jean-Luc Oudart</dc:creator>
      <dc:date>2004-05-07T03:49:56Z</dc:date>
    </item>
    <item>
      <title>Re: script always run in background</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-always-run-in-background/m-p/3270398#M889397</link>
      <description>Actually I expect my script to run in background and wait for some input once it got the input it will process it.</description>
      <pubDate>Fri, 07 May 2004 04:18:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-always-run-in-background/m-p/3270398#M889397</guid>
      <dc:creator>kholikt</dc:creator>
      <dc:date>2004-05-07T04:18:08Z</dc:date>
    </item>
    <item>
      <title>Re: script always run in background</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-always-run-in-background/m-p/3270399#M889398</link>
      <description>Hi kholikt,&lt;BR /&gt;You can get some ideas from /etc/init.d/functions and search for the daemon function.&lt;BR /&gt;&lt;BR /&gt;Frank.</description>
      <pubDate>Fri, 07 May 2004 04:55:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-always-run-in-background/m-p/3270399#M889398</guid>
      <dc:creator>Francisco J. Soler</dc:creator>
      <dc:date>2004-05-07T04:55:56Z</dc:date>
    </item>
    <item>
      <title>Re: script always run in background</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-always-run-in-background/m-p/3270400#M889399</link>
      <description>The last two lines need to be passed into the svrmgrl command. A "here document" ( command &amp;lt;&lt;ENDWORD ...multiple="" lines...="" endword=""&gt;&lt;/ENDWORD&gt;&lt;BR /&gt;To make it automatically run itself in the background, you will have to append "&amp;amp;" to the command. You might also have to redirect output of the command somewhere; preferably not /dev/null though, since I think you might one day dearly wish to see what went wrong with "recover managed standby database".&lt;BR /&gt;&lt;BR /&gt;So, something like this:&lt;BR /&gt;&lt;BR /&gt;#!/bin/sh&lt;BR /&gt;&lt;BR /&gt;( svrmgrl &lt;EOC&gt;&lt;/EOC&gt;connect internal;&lt;BR /&gt;recover managed standby database;&lt;BR /&gt;EOC ) &amp;gt;/tmp/recover.out 2&amp;gt;&amp;amp;1 &amp;amp;&lt;BR /&gt;&lt;BR /&gt;Now /tmp/recover.out will always have the output of the *latest* run of the script, and only that.</description>
      <pubDate>Fri, 07 May 2004 05:31:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-always-run-in-background/m-p/3270400#M889399</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2004-05-07T05:31:24Z</dc:date>
    </item>
  </channel>
</rss>

