<?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: Run script in background as process in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/run-script-in-background-as-process/m-p/4149048#M318547</link>
    <description>&lt;BR /&gt;Typically you would use 'cron' for jobs which 'end' and should be scheduled at set intervals.&lt;BR /&gt;&lt;BR /&gt;And you would use 'init' for jobs to be launched when the system is started.&lt;BR /&gt;&lt;BR /&gt;Please read up on the manpages for cron and init and look for examples on your system.&lt;BR /&gt;If you have further, detailed questions, after trying some, please elaborate with the exact commands tried and the (exact) problems (error messages) you experienced.&lt;BR /&gt;&lt;BR /&gt;Good luck!&lt;BR /&gt;Hein.&lt;BR /&gt;</description>
    <pubDate>Fri, 22 Feb 2008 14:12:15 GMT</pubDate>
    <dc:creator>Hein van den Heuvel</dc:creator>
    <dc:date>2008-02-22T14:12:15Z</dc:date>
    <item>
      <title>Run script in background as process</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/run-script-in-background-as-process/m-p/4149047#M318546</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I am having one .scr script. I want to run it as background process means once it is scheduled it will running like deamon i am not bother to run it manuaaly.&lt;BR /&gt;Can anyone suggest me how to do it please?&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Fri, 22 Feb 2008 13:15:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/run-script-in-background-as-process/m-p/4149047#M318546</guid>
      <dc:creator>N Gopal</dc:creator>
      <dc:date>2008-02-22T13:15:46Z</dc:date>
    </item>
    <item>
      <title>Re: Run script in background as process</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/run-script-in-background-as-process/m-p/4149048#M318547</link>
      <description>&lt;BR /&gt;Typically you would use 'cron' for jobs which 'end' and should be scheduled at set intervals.&lt;BR /&gt;&lt;BR /&gt;And you would use 'init' for jobs to be launched when the system is started.&lt;BR /&gt;&lt;BR /&gt;Please read up on the manpages for cron and init and look for examples on your system.&lt;BR /&gt;If you have further, detailed questions, after trying some, please elaborate with the exact commands tried and the (exact) problems (error messages) you experienced.&lt;BR /&gt;&lt;BR /&gt;Good luck!&lt;BR /&gt;Hein.&lt;BR /&gt;</description>
      <pubDate>Fri, 22 Feb 2008 14:12:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/run-script-in-background-as-process/m-p/4149048#M318547</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2008-02-22T14:12:15Z</dc:date>
    </item>
    <item>
      <title>Re: Run script in background as process</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/run-script-in-background-as-process/m-p/4149049#M318548</link>
      <description>From the command line:  nohup script &amp;amp;&lt;BR /&gt;From cron: # # # # # script &amp;amp;&lt;BR /&gt;Refer to '&amp;amp;' meta characters in korn shell, C, Poxis, etc.</description>
      <pubDate>Fri, 22 Feb 2008 15:01:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/run-script-in-background-as-process/m-p/4149049#M318548</guid>
      <dc:creator>Michael Steele_2</dc:creator>
      <dc:date>2008-02-22T15:01:05Z</dc:date>
    </item>
    <item>
      <title>Re: Run script in background as process</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/run-script-in-background-as-process/m-p/4149050#M318549</link>
      <description>Create an infinite loop in the script. The following is a piece of a script we use as part of a "poor man's" failover environment that I implemented.&lt;BR /&gt;&lt;BR /&gt;while true&lt;BR /&gt;do&lt;BR /&gt;  /failover/rsync.sh ${RSYNC_CFG}&lt;BR /&gt;  sleep ${INTERVAL}&lt;BR /&gt;done</description>
      <pubDate>Fri, 22 Feb 2008 17:04:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/run-script-in-background-as-process/m-p/4149050#M318549</guid>
      <dc:creator>Jeff_Traigle</dc:creator>
      <dc:date>2008-02-22T17:04:35Z</dc:date>
    </item>
    <item>
      <title>Re: Run script in background as process</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/run-script-in-background-as-process/m-p/4149051#M318550</link>
      <description>nohup toto /dev/null &amp;amp;&lt;BR /&gt;the redirection can be explicit to /dev/null, a file or a pipe, but if still tty, output will be redirect to $HOME/nohup.out</description>
      <pubDate>Fri, 22 Feb 2008 18:07:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/run-script-in-background-as-process/m-p/4149051#M318550</guid>
      <dc:creator>Laurent Menase</dc:creator>
      <dc:date>2008-02-22T18:07:56Z</dc:date>
    </item>
    <item>
      <title>Re: Run script in background as process</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/run-script-in-background-as-process/m-p/4149052#M318551</link>
      <description>Hi All,&lt;BR /&gt;&lt;BR /&gt;Apologies for late reply. Thanks for your valuable reply. &lt;BR /&gt;nohup script &amp;amp; is working for me.&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Mon, 25 Feb 2008 06:56:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/run-script-in-background-as-process/m-p/4149052#M318551</guid>
      <dc:creator>N Gopal</dc:creator>
      <dc:date>2008-02-25T06:56:15Z</dc:date>
    </item>
    <item>
      <title>Re: Run script in background as process</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/run-script-in-background-as-process/m-p/4149053#M318552</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;I have always followed the following conventions when running 'persistant' scripts:&lt;BR /&gt;&lt;BR /&gt;1. If the script does not absolutly need to run when the machine is rebooted, allow a user with sufficient permissions to start the script.  I usually write a short shell wrapper so the user doesn't have to worry about the details of the script.&lt;BR /&gt;&lt;BR /&gt;2. If the script must be started each time the machine is rebooted, you have 2 choices:&lt;BR /&gt;  a. an rc script which will start the process on reboot - or - &lt;BR /&gt;  b. an entry in the /etc/inittab file.&lt;BR /&gt;&lt;BR /&gt;Which method I use is determined by the the following:&lt;BR /&gt;  1. If the script needs to be running at all times, I use /etc/inittab with the 'respawn' option.&lt;BR /&gt;  2. If it can fail or be terminated without causing a major problem, I use the rc start-up method.&lt;BR /&gt;&lt;BR /&gt;Just my 2cts. worth&lt;BR /&gt;&lt;BR /&gt;Mark</description>
      <pubDate>Mon, 25 Feb 2008 16:50:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/run-script-in-background-as-process/m-p/4149053#M318552</guid>
      <dc:creator>Mark Ellzey</dc:creator>
      <dc:date>2008-02-25T16:50:54Z</dc:date>
    </item>
    <item>
      <title>Re: Run script in background as process</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/run-script-in-background-as-process/m-p/4149054#M318553</link>
      <description>Hi Gopal,&lt;BR /&gt;&lt;BR /&gt;Go through this link.&lt;BR /&gt;&lt;BR /&gt;This will guide you with examples for scheduling the scripts.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.adminschoice.com/docs/crontab.htm" target="_blank"&gt;http://www.adminschoice.com/docs/crontab.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Vivek Bhatia</description>
      <pubDate>Wed, 27 Feb 2008 12:12:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/run-script-in-background-as-process/m-p/4149054#M318553</guid>
      <dc:creator>Vivek Bhatia</dc:creator>
      <dc:date>2008-02-27T12:12:57Z</dc:date>
    </item>
  </channel>
</rss>

