<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="de">
	<id>https://wiki.ixheim.de/index.php?action=history&amp;feed=atom&amp;title=Check_processes</id>
	<title>Check processes - Versionsgeschichte</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.ixheim.de/index.php?action=history&amp;feed=atom&amp;title=Check_processes"/>
	<link rel="alternate" type="text/html" href="https://wiki.ixheim.de/index.php?title=Check_processes&amp;action=history"/>
	<updated>2026-06-29T11:07:37Z</updated>
	<subtitle>Versionsgeschichte dieser Seite in Xinux Wiki</subtitle>
	<generator>MediaWiki 1.35.1</generator>
	<entry>
		<id>https://wiki.ixheim.de/index.php?title=Check_processes&amp;diff=12730&amp;oldid=prev</id>
		<title>Thomas: Die Seite wurde neu angelegt: „&lt;source lang=bash&gt; #!/bin/bash function check_pgrep() { for PROC in $PROCS do  PROCID=$(pgrep -x $PROC | head -1)  if test -z &quot;$PROCID&quot;   then   ERRLIST=&quot;$ERRL…“</title>
		<link rel="alternate" type="text/html" href="https://wiki.ixheim.de/index.php?title=Check_processes&amp;diff=12730&amp;oldid=prev"/>
		<updated>2017-03-25T19:39:05Z</updated>

		<summary type="html">&lt;p&gt;Die Seite wurde neu angelegt: „&amp;lt;source lang=bash&amp;gt; #!/bin/bash function check_pgrep() { for PROC in $PROCS do  PROCID=$(pgrep -x $PROC | head -1)  if test -z &amp;quot;$PROCID&amp;quot;   then   ERRLIST=&amp;quot;$ERRL…“&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Neue Seite&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;source lang=bash&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
function check_pgrep()&lt;br /&gt;
{&lt;br /&gt;
for PROC in $PROCS&lt;br /&gt;
do&lt;br /&gt;
 PROCID=$(pgrep -x $PROC | head -1)&lt;br /&gt;
 if test -z &amp;quot;$PROCID&amp;quot;&lt;br /&gt;
  then&lt;br /&gt;
  ERRLIST=&amp;quot;$ERRLIST $PROC&amp;quot;&lt;br /&gt;
  fi&lt;br /&gt;
done&lt;br /&gt;
if [[ -n $ERRLIST ]]&lt;br /&gt;
then&lt;br /&gt;
 echo &amp;quot;MISSING:$ERRLIST&amp;quot;&lt;br /&gt;
 exit 2&lt;br /&gt;
else&lt;br /&gt;
 echo &amp;quot;OK: $PROCS&amp;quot;&lt;br /&gt;
fi&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
test &amp;quot;$#&amp;quot; -ne &amp;quot;2&amp;quot; &amp;amp;&amp;amp; { echo not enough arguments ; exit 1 ; }&lt;br /&gt;
while getopts p: opt&lt;br /&gt;
do&lt;br /&gt;
   case $opt in&lt;br /&gt;
       p) PROCS=$OPTARG;;&lt;br /&gt;
       ?) echo &amp;quot;USAGE: $0 -p PROC&amp;quot;; exit 2 ;;&lt;br /&gt;
   esac&lt;br /&gt;
done&lt;br /&gt;
&lt;br /&gt;
if test -n &amp;quot;$PROCS&amp;quot;&lt;br /&gt;
then&lt;br /&gt;
check_pgrep&lt;br /&gt;
else&lt;br /&gt;
echo &amp;quot;no proc argument&amp;quot;&lt;br /&gt;
exit 1&lt;br /&gt;
fi&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Thomas</name></author>
	</entry>
</feed>