LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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, 06: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, 02: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



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 02:20 PM
Using Bit Torrent Hockeyfan Linux - Software 6 10-20-2005 09:30 PM
bit torrent Saquear Linux - Software 2 03-19-2005 01:04 PM
how to install bit torrent? or bit tornado 0o0 Linux - Newbie 6 04-21-2004 11:52 PM
Bit Torrent teamstatic84 General 10 07-20-2003 08:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:10 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
Open Source Consulting | Domain Registration