Unfortunately no one can be told what fun_plug is - you have to see it for yourself.
You are not logged in.
I've written a small PHP script to control ctorrent on my DSM-G600
It lets you upload .torrent files, start and stop torrents.
Requires a working lighttpd with PHP install, + nohup & ctorrent executables.
ctdb.php has some configuration variables at the top, you must edit to reflect your preferences, file locations and such.
I have some ideas for more features - and will eagerly listen to Your ideas.
Update: Already found a bug! The list of running torrents only shows last torrent.
New fixed version in the zip.
/Zilver
Last edited by ZilverZurfarn (2007-10-13 15:58:46)
Offline
A feature update.
Added the feature to download a .torrent file directly from the web. Just paste the web URL for the .torrent file to add it to your torrents directory.
Moved the config variables to a separate file (to make version updates simpler).
/Zilver
Offline
I'm trying to use your script. And I have some troubles.
I join a screenshot:
I've no feedback from the started downloads.
Tank you.
Sorry for my english. ^^
Offline
I can't get the screenshot, but I maybe have to make it clear that there is no interactivity with started torrents. ctdb is just a simple way to start and stop torrents "remotely".
All you can see in the "Running torrents" is basically just a list of what's running at the moment - nothing about their state.
However, I am working on a standalone Windows version of ctcs, where you can follow the status of all running torrents, and maybe in some distant future even control the running torrents.
/Zilver
Offline
ok, ty.
How to know if a download is done?
Last edited by medlatek (2007-10-17 22:49:54)
Offline
Refresh the page, and see if it's gone from the "Running Torrents" list.
...or telnet into the DSM-G600, and type ps (basically what the ctdb does to produce the Running Torrents list) to see if there are any ctorrent processes running.
Unfortunately, the ps list lines are truncated at 80 characters, so there is no way (afaics) to find out what torrent file is handled by the torrent processes.
/Zilver
Offline
ok ty
Offline
Ah - Now I can see the screen shot. It looks as expected to me. I was initially hoping to at least show what torrent file each ctorrent instance was downloading, but as, like I said, the ps list is truncated, I can't find it. None of the usual ps switches seems to work to produce more than 80 characters.
/Zilver
Last edited by ZilverZurfarn (2007-10-18 09:45:18)
Offline