#!/bin/bash if [ "$1" = "ps" ];then ps -aux | grep test else gcc -o test.bin daemon.c ./test.bin $1 fi