task plugin ?

shwetha17

Member
May 24, 2018
785
0
16
I'm trying to figure out what the _task plugin does. I've done some searching and haven't been able to find an answer. Can someone please explain what this plugin does and how to use it?
 

dsouvik215

Member
May 25, 2018
896
0
16
Runs a task from the rtorrent user, stores the output of that command and sends it to the webui, while storing the pid to kill it if wanted.
Another useful tool in the plugin development, probably some documentation would provide more in depth information about it and how should be used.
 

das329717

Member
May 25, 2018
928
0
16
I installed it, but I still can't figure out how to use it. Sorry if this is obvious. I've checked in all the menus in rutorrent I think and I still can't find how to use it.
 

dsouvik215

Member
May 25, 2018
896
0
16
This plugins must be used from other plugins.
The user has no direct interaction with it.

For example its used in the archive/extract, create torrent process.
Something similar is implemented in filemanager/fileupload to show the output in the command console.
Also makes the rtorrent processs execute the commands (rm, cp, read write files, etc) since its running from the shell user it has the right permissions (enhancing security).
Without this important feature all user data should be readable and writable by the www-data/apache user which makes a big mess because data is written with the web user id (making data managing from ftp impossible), and a user could access other user's data. (this is one scenario,there are many).