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 |
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
#include<stdio.h> | |
#include<stdlib.h> | |
// #include<unistd.h> (char ** environ) (alternative zu char*envp[]) | |
int main(int argc, char* argv[],char *envp[]) | |
{ | |
char * variable; // Definierte Variable | |
int i = 0; // Laufvariable | |
// Gib alle Variablen aus wenn keine Parameter gegeben 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
#include<stdio.h> | |
#include<stdlib.h> | |
#define PROCESS 3 | |
#define LOOP 20 | |
// Prozessinstruktionen | |
void run_process(int i); |
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> | |
#include<unistd.h> | |
#define PARAM_ERROR "Falsche Angabe von Parametern !\n" | |
#define FORK_ERROR "Kinprozess konnte nicht erzeugt wernden !\n" | |
#define PIPE_ERROR "Pipe konnte nicht erzeugt werden !\n" | |
#define DUP2_ERROR "IO-Stream konnte nicht dupliziert werden !\n" | |
/* |
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> | |
#include<string.h> | |
#include<sys/types.h> | |
#include<sys/stat.h> | |
#include<fcntl.h> | |
#include<errno.h> | |
#define FIFO_NAME "fifo" | |
#define ARGUMENT_ERROR "a.out < s/r >\n" |
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> | |
#include <unistd.h> | |
#include <sys/types.h> | |
#include <sys/ipc.h> | |
#include <sys/shm.h> | |
#include <sys/wait.h> | |
#define MAXCOUNT ((FUSS_B+FUSS_A)*17) | |
#define FUSS_B 15.51337 |
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
#!/bin/bash | |
#GNUPLOT WIRD BENOETIGT !!!! | |
#Getestete Ausgabe: | |
# RaceCondition Verhalten | |
# | |
# 30 ++------------+-------------+-------------+-------------+------------++ | |
# ******** + + Raceconditions zu Wartezeit ****** + | |
# | * : : + + | | |
# 25 ++......*............................................................++ |
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> | |
#include <unistd.h> | |
#include <sys/types.h> | |
#include <sys/ipc.h> | |
#include <sys/shm.h> | |
#include <sys/sem.h> | |
#include <sys/wait.h> | |
#define MAXCOUNT ((FUSS_B+FUSS_A)*17) |
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> | |
#include <unistd.h> | |
#include <sys/types.h> | |
#include <sys/ipc.h> | |
#include <sys/shm.h> | |
#include <sys/sem.h> | |
#include <sys/wait.h> | |
#include <errno.h> | |
#include <string.h> |
OlderNewer