Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Question: creating kill script for rtorrent

Featured Replies

How can I create a kill script for rtorrent in unMenu User Scripts if I don't know the PID?

 

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

  • 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.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.