DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#1 2006-10-11 18:30:01

username
Member
Registered: 2006-10-09
Posts: 12

Ctorrent Scheduling Question

I got ctorrent installed on my DSM with no problems. It works fine when started in a telnet session.

But how do I schedule torrents without having to keep a telnet session(s) open? I do want to be able to set up torrent downloads and turn my PC off.

There is a mention of S_DOWN here: http://dns323.kood.org/forum/t9-programs-community.html . I added the two S_DOWN commands to my fun_plug, but what do I do with S_DOWN.c file? It needs to be compiled, right? Or does it replace an existing S_DOWN file on the box? Does it still need to be compiled?

Thanks again.

Last edited by username (2006-10-11 18:31:19)

Offline

 

#2 2006-10-11 23:28:04

sala
Member / Site Admin
From: Estonia
Registered: 2006-07-28
Posts: 731
Website

Re: Ctorrent Scheduling Question

S_DOWN is "work in progress", do not use it. You can start torrents using fun_plug.
Just add your ctorrent command lines and restart (with do_reboot command or from web interface). You can also use & at the end of your command if you like to run multiple torrents at the same time (remember that you need to open a port for every instance of ctorrent you are going to run).
And finally there is nohup command you may also find useful.
http://dns323.kood.org/downloads/nohup-5.97.tar.bz2


DSM-G600 - NetBSD hdd-boot - 80GB Samsung SP0802N
NSA-220 - Gentoo armv5tel 20110121 hdd-boot - 2x 2TB WD WD20EADS

Offline

 

#3 2006-10-12 00:13:20

username
Member
Registered: 2006-10-09
Posts: 12

Re: Ctorrent Scheduling Question

Thanks for the suggestions. I will definitely try nohup.

I did try the & trick from a telnet window. I was hoping it would give me the command prompt back so I could do other things. It didn't.

I was also thinking about starting ctoorents as cron jobs. However, I could not get crontab -e to work. I guess it was looking for a text editor that was not there. crontab -l worked fine. Any ideas on how to edit the crontab file?

Offline

 

#4 2006-10-12 21:29:11

sala
Member / Site Admin
From: Estonia
Registered: 2006-07-28
Posts: 731
Website

Re: Ctorrent Scheduling Question

& at the end of command will give the command prompt back, sometimes you just need to press enter and then you can get back to console.


DSM-G600 - NetBSD hdd-boot - 80GB Samsung SP0802N
NSA-220 - Gentoo armv5tel 20110121 hdd-boot - 2x 2TB WD WD20EADS

Offline

 

#5 2006-10-12 23:09:24

username
Member
Registered: 2006-10-09
Posts: 12

Re: Ctorrent Scheduling Question

Oh yeah, I see it now. & definitely works. I did try to press enter before and thought I had no effect, but it does. A command prompt does appear. It just gets overwritten by the ctorrent "status line" so fast, that I did not notice that the first time I tried.

Thanks for nudging me back in the right direction.

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB