dmage / co2mon

CLI for MasterKit CO2 Monitor

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to kill process

hram opened this issue · comments

How to kill process that was started from command make graph.rrd ?

$ time make graph.rrd
real    0m0.042s
user    0m0.006s
sys     0m0.005s

If execution time of this command is much longer, then you have big problems.
However, you can press Ctrl+C to send a termination signal to the rrdtool process.

My mistake. How can I kill infinite loop runed after command

./update_graph.sh >/dev/null &

$ jobs
[1]-  Running                 sleep 60 &
[2]+  Running                 ./update_graph.sh > /dev/null &
$ kill %2
[2]+  Terminated              ./update_graph.sh > /dev/null

thanks a lot