linux_c_learn/deamon/run.sh

7 lines
115 B
Bash
Executable File

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