<?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 script linux in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/script-linux/m-p/3669587#M20575</link>
    <description>How i check if my process is running 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??&lt;BR /&gt;</description>
    <pubDate>Fri, 11 Nov 2005 05:07:40 GMT</pubDate>
    <dc:creator>STL</dc:creator>
    <dc:date>2005-11-11T05:07:40Z</dc:date>
    <item>
      <title>script linux</title>
      <link>https://community.hpe.com/t5/operating-system-linux/script-linux/m-p/3669587#M20575</link>
      <description>How i check if my process is running 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??&lt;BR /&gt;</description>
      <pubDate>Fri, 11 Nov 2005 05:07:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/script-linux/m-p/3669587#M20575</guid>
      <dc:creator>STL</dc:creator>
      <dc:date>2005-11-11T05:07:40Z</dc:date>
    </item>
    <item>
      <title>Re: script linux</title>
      <link>https://community.hpe.com/t5/operating-system-linux/script-linux/m-p/3669588#M20576</link>
      <description>while [ $?!=0 ] &lt;BR /&gt;do&lt;BR /&gt;ps -ef | grep bash&lt;BR /&gt;if [ $? -eq 0 ]&lt;BR /&gt;then&lt;BR /&gt;   echo "Process Running"&lt;BR /&gt;else&lt;BR /&gt;   echo "Run Your Process Here" &lt;BR /&gt;fi&lt;BR /&gt;sleep 5&lt;BR /&gt;done</description>
      <pubDate>Fri, 11 Nov 2005 17:44:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/script-linux/m-p/3669588#M20576</guid>
      <dc:creator>Derek Whigham_1</dc:creator>
      <dc:date>2005-11-11T17:44:54Z</dc:date>
    </item>
    <item>
      <title>Re: script linux</title>
      <link>https://community.hpe.com/t5/operating-system-linux/script-linux/m-p/3669589#M20577</link>
      <description>Just a wierd skeleton for a poor man's  "monitor" of a daemon.&lt;BR /&gt;  &lt;BR /&gt;e.g. see if sshd is running&lt;BR /&gt; &lt;BR /&gt;   &lt;BR /&gt;# while $(pkill -0 -P 1 -x sshd); do echo sshd running;sleep 5;done;echo sshd died&lt;BR /&gt;sshd running&lt;BR /&gt;sshd running&lt;BR /&gt;sshd running&lt;BR /&gt;sshd running&lt;BR /&gt;sshd died&lt;BR /&gt;  &lt;BR /&gt; &lt;BR /&gt;When from another terminal I sut down the sshd&lt;BR /&gt;  &lt;BR /&gt;  &lt;BR /&gt;# service sshd stop&lt;BR /&gt;Stopping sshd:                                             [  OK  ]&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 11 Nov 2005 20:16:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/script-linux/m-p/3669589#M20577</guid>
      <dc:creator>Ralph Grothe</dc:creator>
      <dc:date>2005-11-11T20:16:48Z</dc:date>
    </item>
    <item>
      <title>Re: script linux</title>
      <link>https://community.hpe.com/t5/operating-system-linux/script-linux/m-p/3669590#M20578</link>
      <description>Just like as,&lt;BR /&gt;&lt;BR /&gt;#!/bin/bash&lt;BR /&gt;ps -ef | grep -q 'pippo'&lt;BR /&gt;&lt;BR /&gt;if [[ ${?} -eq 0 ]]&lt;BR /&gt;then&lt;BR /&gt;  echo "Process pippo is running!"&lt;BR /&gt;  ps -ef | grep pippo&lt;BR /&gt;else&lt;BR /&gt;  # Process Startup&lt;BR /&gt; &lt;LOCATION to="" pippo=""&gt;/pippo &amp;amp;&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;# END&lt;BR /&gt;exit 0&lt;BR /&gt;########################&lt;BR /&gt;&lt;BR /&gt;hth.&lt;BR /&gt;&lt;BR /&gt;&lt;/LOCATION&gt;</description>
      <pubDate>Mon, 14 Nov 2005 00:50:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/script-linux/m-p/3669590#M20578</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2005-11-14T00:50:53Z</dc:date>
    </item>
  </channel>
</rss>

