...
Code Block |
---|
ps -ef | grep ffmpeg | wc -l |
If you want to check the processes with full path,
Code Block |
---|
ps -aux | grep bot |
Then, you will see:
Code Block |
---|
root 17364 0.0 0.0 436760 19536 ? S 09:00 0:00 php /pub/production/_bot/bot_main.php
root 17402 0.0 0.0 113284 1596 ? Ss 09:00 0:00 bash -c cd "/lib/production/_bot" && php import_db.php
root 17933 0.0 0.0 436760 19532 ? S 09:05 0:00 php /pub/production/_bot/bot_main.php
root 18038 0.0 0.0 113284 1596 ? Ss 09:05 0:00 bash -c cd "/lib/production/_bot" && php channels.php
kurapa 21211 0.0 0.0 112816 972 pts/2 S+ 09:28 0:00 grep --color=auto bot |
To count its list,
Code Block |
---|
ps -aux | grep bot | wc -l |