BW-userx |
07-13-2019 09:02 AM |
kill process from script
systemD, this script is calling other scripts within it, maybe that is it. but kill pidID is not working on it, either method I use, kill PIDID , of here using xargs.
Code:
$ pgrep fetchwp | xargs kill
$ ps | grep fetchwp
userx 20104 0.0 0.0 7232 3860 pts/0 T 08:51 0:00 \_ /bin/bash /home/userx/bin/fetchwp
userx 9998 0.0 0.0 7232 3648 pts/1 T 08:38 0:00 \_ /bin/bash /home/userx/bin/fetchwp
userx 20488 0.0 0.0 7232 3716 pts/3 T 08:52 0:00 \_ /bin/bash /home/userx/bin/fetchwp
userx 28051 0.0 0.0 6264 2216 pts/3 S+ 08:58 0:00 \_ grep --color=auto fetchwp
|