This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<stdio.h> | |
#include<stdlib.h> | |
int main(int argc, char* argv[]) | |
{ | |
int i=0; // Laufvariable fuer alle Parameter | |
long int solution; // Ergebnisvariable | |
char op; // aktueller Operand | |
// Wenn keine Parameter angegeben sind |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for i in "139.6.57.1" "139.6.57.8" "139.6.57.11" "139.6.57.63" "139.6.57.66" | |
do | |
ping -c 1 $i > /dev/null | |
if [ $? == 0 ] | |
then | |
echo "$i is online : $i" | |
else | |
echo "$i is offline : $i" | |
fi | |
done |
NewerOlder