Input program name ,and you will get program id.
- step1:
make
response:
cc -c pid.c
cc -o pid pid.o
- step2
./pid node
response:
2676
Another way to realize this function: https://github.com/nishiwode322/pid/blob/master/pid.c
Input program name ,and you will get program id.
make
response:
cc -c pid.c
cc -o pid pid.o
./pid node
response:
2676
Another way to realize this function: https://github.com/nishiwode322/pid/blob/master/pid.c