Tôi có quá trình này chạy:pkill -f không làm việc cho quá trình giết
342 pts/2 T 0:00 sh -c sudo screen /usr/bin/python /usr/bin/btdownloadcurses "http://zoink.it/torrent/732A4A9B54B7E3A916C2835D936D985942F65A6D.torrent" --display_interval 20 --saveas "/srv/"
343 pts/2 T 0:00 sudo screen /usr/bin/python /usr/bin/btdownloadcurses http://zoink.it/torrent/732A4A9B54B7E3A916C2835D936D985942F65A6D.torrent --display_interval 20 --saveas /srv/
344 pts/2 T 0:00 screen /usr/bin/python /usr/bin/btdownloadcurses http://zoink.it/torrent/732A4A9B54B7E3A916C2835D936D985942F65A6D.torrent --display_interval 20 --saveas /srv/
tôi đã cố gắng để chạy:
pkill -f http://zoink.it/torrent/732A4A9B54B7E3A916C2835D936D985942F65A6D.torrent
Nhưng quá trình này vẫn chạy.
Làm cách nào để buộc giết các quá trình có chứa: "http://zoink.it/torrent/732A4A9B54B7E3A916C2835D936D985942F65A6D.torrent"?
Câu hỏi như thay đổi nội dung dưới đây:
ps ax | grep 'Momomoko.E01.140011.HDTV.H264.720p.mp4'
tôi muốn giết tất cả các quá trình có chứa các chuỗi trên.
Tôi cố gắng chạy dòng trên, và nó sẽ trả về kết quả ba:
342 pts/2 T 0:00 sh -c sudo screen /usr/bin/python /usr/bin/btdownloadcurses "http://zoink.it/torrent/732A4A9B54B7E3A916C2835D936D985942F65A6D.torrent" --display_interval 20 --saveas "/srv/Momomoko.E01.140011.HDTV.H264.720p.mp4"
343 pts/2 T 0:00 sudo screen /usr/bin/python /usr/bin/btdownloadcurses http://zoink.it/torrent/732A4A9B54B7E3A916C2835D936D985942F65A6D.torrent --display_interval 20 --saveas /srv/Momomoko.E01.140011.HDTV.H264.720p.mp4
344 pts/2 T 0:00 screen /usr/bin/python /usr/bin/btdownloadcurses http://zoink.it/torrent/732A4A9B54B7E3A916C2835D936D985942F65A6D.torrent --display_interval 20 --saveas /srv/Momomoko.E01.140011.HDTV.H264.720p.mp4
Làm thế nào để chạy dòng này:
ps ax | grep 'Momomoko.E01.140011.HDTV.H264.720p.mp4'
..with php, và kill -9
tất cả các quy trình phù hợp?
Tôi đã chỉnh sửa câu hỏi của mình, cảm ơn :) –
@Limzhenxiang kiểm tra lại, tôi đã cập nhật câu trả lời theo yêu cầu mới của bạn. – Skynet