theone Posted June 28, 2010 Share Posted June 28, 2010 How can I create a kill script for rtorrent in unMenu User Scripts if I don't know the PID? Link to comment
prostuff1 Posted June 28, 2010 Share Posted June 28, 2010 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 Link to comment
theone Posted June 28, 2010 Author Share Posted June 28, 2010 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. Link to comment
kizer Posted June 28, 2010 Share Posted June 28, 2010 killall rtorrent ? http://www.linfo.org/killall.html Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.