LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-27-2004, 07:03 PM   #1
tobysaville
LQ Newbie
 
Registered: Apr 2003
Posts: 18

Rep: Reputation: 0
automating bit torrent


Without having time to learn shell scripting just yet, i was wondering if someone could help me with a script that would solve the following algorithm

I have all my bit torrent files in a folder and i want to set up a cron job to get these torrents at night. I was thinking something like the following.
Code:
for each *.torrent file in the torrent/ dir
  btdownloadcurses.py <filename>.torrent &
Thanks for your suggestions and I promise I will learn shell scripting soon!!

tobes
 
Old 06-08-2004, 03:54 AM   #2
ziggyboy
LQ Newbie
 
Registered: May 2004
Location: Australia
Distribution: Slackware
Posts: 12

Rep: Reputation: 0
This is pretty easy.

Code:
#!/bin/sh

TORDIR=/home/myself/torrent/

for I in `ls $TORDIR*.torrent`
do
        screen btdownloadcurses.py $I &
done
Note: YOU HAVE TO EDIT THIS SCRIPT!

Some things to remember:

1. Change TORDIR to the absolute path of your torrent directory.

2. I used screen because you used the curses version of BT. To view your downloads, type 'screen -list'. To learn how to use screen and/or use torrents under Linux, check out my guide:

http://sogono.com/carlo/linuxtorrent/

Cheers.
Carlo
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Bit torrent Mark_667 Debian 11 11-27-2005 03:20 PM
Using Bit Torrent Hockeyfan Linux - Software 6 10-20-2005 10:30 PM
bit torrent Saquear Linux - Software 2 03-19-2005 02:04 PM
how to install bit torrent? or bit tornado 0o0 Linux - Newbie 6 04-22-2004 12:52 AM
Bit Torrent teamstatic84 General 10 07-20-2003 09:44 AM


All times are GMT -5. The time now is 10:35 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration