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 2011-03-18 11:04:37

innyinskip
Member
Registered: 2011-02-27
Posts: 19

Leechr Script!

Morning guys,

After having issues (Because im new) to installing sickbeard onto the dlink 323 i have opted for another option!

I have found a small python script called Leechr

http://code.google.com/p/leechr/

Its not a bad little script as it checks for items from myepisodes.com and can connect to nzbmatrix.com nzbs.org etc.

The only issue is that it has to be manually run using python leechr.py

Is there anyway to shedule this task say ever 2 hours so i dont have to run it manually?

Cheers as always guys!
Craig

Offline

 

#2 2011-03-18 11:53:26

scaramanga
Member
Registered: 2010-08-04
Posts: 251

Re: Leechr Script!

Sure you can. Use cron. Read about it here: http://linux.die.net/Linux-CLI/scheduling.html
If you'd like to automatically create that cron job on every boot you'll need to create a script to do just that and place it under /ffp/start. It should be something similar to step 3, here: http://dns323.kood.org/howto:backup?s=c … led_backup


DNS-323 HW Rev. C1 FW 1.10 fun-plug 0.5
2 x WD10EARS-00Y5B1 in Standard mode (LCC set to 5 min; Aligned to 4K)
Transmission with Transmission Remote GUI

Offline

 

#3 2011-03-18 12:11:40

innyinskip
Member
Registered: 2011-02-27
Posts: 19

Re: Leechr Script!

wicked, thanks very much.
Having a bit of an issue running the script.
I have got the editcron.sh script as below:

#!/bin/sh

CRONTXT=/mnt/HD_a2/crontab.txt

# start with existing crontab
/bin/crontab -l > $CRONTXT

# add the Rsync job to execute at 2:05 am - also create a logfile
/bin/echo "0 2 * * * /mnt/HD_a2/newsbin/Leechr/python leechr.py -d

# install the new crontab
/bin/crontab $CRONTXT

# clean up
/bin/rm $CRONTXT


I am getting an error on line 9 (The line that references to the leechr.py file) Does this look right to you?
Cheers

Offline

 

#4 2011-03-18 12:14:53

innyinskip
Member
Registered: 2011-02-27
Posts: 19

Re: Leechr Script!

Never mind matey! Got there in the end!! smile Thanks ever so much!! Just need to get coutchpotato done and im a happy little camper!

Offline

 

#5 2011-03-18 14:59:44

innyinskip
Member
Registered: 2011-02-27
Posts: 19

Re: Leechr Script!

Apparently i havent got it sorted!
Doesnt seem to run the python job!
Any ideas?!

Offline

 

#6 2011-03-18 20:21:30

scaramanga
Member
Registered: 2010-08-04
Posts: 251

Re: Leechr Script!

Didn't you mean to write something like this:

Code:

/bin/echo "0 2 * * * /mnt/HD_a2/newsbin/Leechr/python leechr.py -d" >> $CRONTXT

If you issue the command from telnet/ssh and it works but putting the command in your script doesn't than it's probably because of the different run environment. your cron job is run as user root.
To help figure it out, try changing the command like so:

Code:

/bin/echo "0 2 * * * /mnt/HD_a2/newsbin/Leechr/python leechr.py -d > /mnt/HD_a2/leechr.log 2>&1" >> $CRONTXT

Hopefully, in the log file (/mnt/HD_a2/leechr.log) you'll find the reason why it's not working.


DNS-323 HW Rev. C1 FW 1.10 fun-plug 0.5
2 x WD10EARS-00Y5B1 in Standard mode (LCC set to 5 min; Aligned to 4K)
Transmission with Transmission Remote GUI

Offline

 

#7 2011-03-23 19:52:09

mastervol
Member
Registered: 2008-09-06
Posts: 81

Re: Leechr Script!

nzbgetter is probably a similar script with php where i added a few things here and there ...
it basically runs on my 323 24/7 or at least every 6 hours big_smile


DNS-323     F/W: 1.06  H/W: ??  ffp: 0.5  Drives (normal mode): 1 x 1,5 TB Seagate SATA II ST31500341AS, 1 x 250 GB Western Digital SATA I

Offline

 

#8 2011-03-24 12:29:39

innyinskip
Member
Registered: 2011-02-27
Posts: 19

Re: Leechr Script!

mastervol wrote:

nzbgetter is probably a similar script with php where i added a few things here and there ...
it basically runs on my 323 24/7 or at least every 6 hours big_smile

Mastervol, could you share what you did for nzbgetter please mate?
smile


Thanks muchly!!

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB