<?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_host</id>
	<title>Check host - Versionsgeschichte</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.ixheim.de/index.php?action=history&amp;feed=atom&amp;title=Check_host"/>
	<link rel="alternate" type="text/html" href="https://wiki.ixheim.de/index.php?title=Check_host&amp;action=history"/>
	<updated>2026-06-29T04:15:52Z</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_host&amp;diff=30298&amp;oldid=prev</id>
		<title>Thomas.will: Die Seite wurde neu angelegt: „&lt;pre&gt; #!/bin/bash WAIT=&quot;-w 1&quot; while getopts H:w: opt do    case $opt in        w)         WAIT=&quot;-w $OPTARG&quot;         ;;        H)         HOST=&quot;$OPTARG&quot;…“</title>
		<link rel="alternate" type="text/html" href="https://wiki.ixheim.de/index.php?title=Check_host&amp;diff=30298&amp;oldid=prev"/>
		<updated>2021-11-24T20:37:49Z</updated>

		<summary type="html">&lt;p&gt;Die Seite wurde neu angelegt: „&amp;lt;pre&amp;gt; #!/bin/bash WAIT=&amp;quot;-w 1&amp;quot; while getopts H:w: opt do    case $opt in        w)         WAIT=&amp;quot;-w $OPTARG&amp;quot;         ;;        H)         HOST=&amp;quot;$OPTARG&amp;quot;…“&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Neue Seite&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
WAIT=&amp;quot;-w 1&amp;quot;&lt;br /&gt;
while getopts H:w: opt&lt;br /&gt;
do&lt;br /&gt;
   case $opt in&lt;br /&gt;
       w)&lt;br /&gt;
        WAIT=&amp;quot;-w $OPTARG&amp;quot;&lt;br /&gt;
        ;;&lt;br /&gt;
       H)&lt;br /&gt;
        HOST=&amp;quot;$OPTARG&amp;quot;&lt;br /&gt;
        ;;&lt;br /&gt;
   esac&lt;br /&gt;
done&lt;br /&gt;
&lt;br /&gt;
if ! test -z &amp;quot;$HOST&amp;quot;&lt;br /&gt;
then&lt;br /&gt;
 if ping $WAIT -c 1 -q $HOST &amp;gt; /dev/null&lt;br /&gt;
  then&lt;br /&gt;
   echo &amp;quot;$HOST OK&amp;quot;&lt;br /&gt;
   exit 0 &lt;br /&gt;
  else&lt;br /&gt;
   echo &amp;quot;$HOST FAILED&amp;quot;&lt;br /&gt;
   exit 2&lt;br /&gt;
 fi&lt;br /&gt;
else&lt;br /&gt;
echo &amp;quot;$HOST PARAMETER MISSING&amp;quot;&lt;br /&gt;
exit 3&lt;br /&gt;
fi&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Thomas.will</name></author>
	</entry>
</feed>