PDA

View Full Version : AutoShutdown on torrent complete



c2tarun
February 19th, 2013, 08:17 AM
I used Kubuntu for a while and its default torrent app, KTorrent has a feature of shutting down my machine on completion of torrent download.

My current torrent client is Deluge and installing KTorrent is something I don't want to do.
Is there any way of writing a script which monitors and shutsdown the computer on completion of torrent download?

Vaphell
February 19th, 2013, 10:21 AM
AutoShutdown plugin?
http://dev.deluge-torrent.org/wiki/Plugins
http://forum.deluge-torrent.org/viewtopic.php?f=9&t=41165

ofnuts
February 19th, 2013, 10:30 PM
I used Kubuntu for a while and its default torrent app, KTorrent has a feature of shutting down my machine on completion of torrent download.

My current torrent client is Deluge and installing KTorrent is something I don't want to do.
Is there any way of writing a script which monitors and shutsdown the computer on completion of torrent download?
KShutdown can shutdown the system when an application terminates, so if you can make Deluge exit when finished you are in business...

c2tarun
February 21st, 2013, 05:14 AM
AutoShutdown plugin?
http://dev.deluge-torrent.org/wiki/Plugins
http://forum.deluge-torrent.org/viewtopic.php?f=9&t=41165

Thanks for autoshutdown plugin, but don't know why Deluge is crashing again and again after 15-20 mins of download. :(


KShutdown can shutdown the system when an application terminates, so if you can make Deluge exit when finished you are in business...

KShtudown is again asking for 46MBs of download and will take somewhere around 96MBs, its little too much. :(


I tried qtbittorrent, its great and have the feature of autoshutdown. But I am still keeping this thread as open, if someone with solution might take a look and reply.

Vaphell
February 21st, 2013, 05:47 AM
do you use separate 'temp' and 'completed' folders? in case of such a setup, you would be able to use a trivial script to check if the temp dir is empty and issue shutdown -P if the condition is met.

c2tarun
February 22nd, 2013, 04:38 AM
do you use separate 'temp' and 'completed' folders? in case of such a setup, you would be able to use a trivial script to check if the temp dir is empty and issue shutdown -P if the condition is met.


Hmm... this can be tried. I'll go home and try it. :) lets hope this works.