June 28, 201016 yr How can I create a kill script for rtorrent in unMenu User Scripts if I don't know the PID?
June 28, 201016 yr How can I create a kill script for rtorrent in unMenu User Scripts if I don't know the PID? I am not at my server right now, but when I get home and get a free chance I will write a little script to do this. take a look at some of the examples and you may get an idea on how it is done. I grep of the process by name should be able to get you the PID that you can then kill. I know I did this for one I wrote (or something similar) it it works pretty well. I think it is the stop airvideo user script. Find that one and take a look at what it is doing and you might be able to figure it out. Hope that helps a little bit
June 28, 201016 yr Author top -b -n1 | grep rtorrent this gives back the line which includes the PID number. How do I only return the PID number from that? I am not a unix/linux user, I need some help in this area.
Archived
This topic is now archived and is closed to further replies.