<?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 in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/script/m-p/3669593#M67111</link>
    <description>in my script insert only the start of my process??&lt;BR /&gt;</description>
    <pubDate>Fri, 11 Nov 2005 05:57:07 GMT</pubDate>
    <dc:creator>STL</dc:creator>
    <dc:date>2005-11-11T05:57:07Z</dc:date>
    <item>
      <title>script</title>
      <link>https://community.hpe.com/t5/operating-system-linux/script/m-p/3669591#M67109</link>
      <description>Hi,&lt;BR /&gt;how i check status of my process with a script?&lt;BR /&gt;ps -ef|grep pippo&lt;BR /&gt;how i check if pippo is running and then if not running start them??</description>
      <pubDate>Fri, 11 Nov 2005 05:19:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/script/m-p/3669591#M67109</guid>
      <dc:creator>STL</dc:creator>
      <dc:date>2005-11-11T05:19:30Z</dc:date>
    </item>
    <item>
      <title>Re: script</title>
      <link>https://community.hpe.com/t5/operating-system-linux/script/m-p/3669592#M67110</link>
      <description>You can put you script in the /etc/inittab.&lt;BR /&gt;&lt;BR /&gt;Add to the bottom of inittab file the string:&lt;BR /&gt;xx::respawn:`&lt;NAME_OF_YOUR script=""&gt;&lt;/NAME_OF_YOUR&gt;&lt;BR /&gt;then execute:&lt;BR /&gt;telinit q&lt;BR /&gt;&lt;BR /&gt;If script dies, the init process will restart your process automatically.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Sergejs</description>
      <pubDate>Fri, 11 Nov 2005 05:51:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/script/m-p/3669592#M67110</guid>
      <dc:creator>Sergejs Svitnevs</dc:creator>
      <dc:date>2005-11-11T05:51:36Z</dc:date>
    </item>
    <item>
      <title>Re: script</title>
      <link>https://community.hpe.com/t5/operating-system-linux/script/m-p/3669593#M67111</link>
      <description>in my script insert only the start of my process??&lt;BR /&gt;</description>
      <pubDate>Fri, 11 Nov 2005 05:57:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/script/m-p/3669593#M67111</guid>
      <dc:creator>STL</dc:creator>
      <dc:date>2005-11-11T05:57:07Z</dc:date>
    </item>
    <item>
      <title>Re: script</title>
      <link>https://community.hpe.com/t5/operating-system-linux/script/m-p/3669594#M67112</link>
      <description>You can use something like this in cron also:&lt;BR /&gt;&lt;BR /&gt;RUNNING=`pgrep pipo|wc -l`&lt;BR /&gt;&lt;BR /&gt;if [ $RUNNING -eq 0 ]; then&lt;BR /&gt;&lt;BR /&gt;mail -s "PIPO is not running" root &amp;lt; /dev/null&lt;BR /&gt;# Start the application&lt;BR /&gt;/path/to/pipo&lt;BR /&gt;&lt;BR /&gt;fi</description>
      <pubDate>Fri, 11 Nov 2005 06:32:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/script/m-p/3669594#M67112</guid>
      <dc:creator>Ivan Ferreira</dc:creator>
      <dc:date>2005-11-11T06:32:06Z</dc:date>
    </item>
    <item>
      <title>Re: script</title>
      <link>https://community.hpe.com/t5/operating-system-linux/script/m-p/3669595#M67113</link>
      <description>when i use the command telinit q the process start, but then if i kill the process, this not restart.&lt;BR /&gt;why???</description>
      <pubDate>Fri, 11 Nov 2005 06:46:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/script/m-p/3669595#M67113</guid>
      <dc:creator>STL</dc:creator>
      <dc:date>2005-11-11T06:46:27Z</dc:date>
    </item>
    <item>
      <title>Re: script</title>
      <link>https://community.hpe.com/t5/operating-system-linux/script/m-p/3669596#M67114</link>
      <description>Carlo,&lt;BR /&gt;&lt;BR /&gt;If you kill the process and it does not restart, check your /etc/inittab file.  I was just running a test and set up the inittab like this:&lt;BR /&gt;&lt;BR /&gt;7:2345:/home/myid/myscript&lt;BR /&gt;&lt;BR /&gt;and it did not restart.  (myscript is just a loop that echoes date &amp;gt; log.file)&lt;BR /&gt;&lt;BR /&gt;However, when I change the inittab to this:&lt;BR /&gt;&lt;BR /&gt;7:2345:/bin/bash /home/myid/myscript&lt;BR /&gt;&lt;BR /&gt;it worked fine.  Everytime I killed it, it restarted immediately.&lt;BR /&gt;&lt;BR /&gt;So, check your inittab entry.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Mark</description>
      <pubDate>Mon, 14 Nov 2005 11:31:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/script/m-p/3669596#M67114</guid>
      <dc:creator>Mark Ellzey</dc:creator>
      <dc:date>2005-11-14T11:31:25Z</dc:date>
    </item>
  </channel>
</rss>

