Georgio has asked for the wisdom of the Perl Monks concerning the following question:

Hello all!

I need to download some ".torrent"- files using ssh-session to server. I installed modul Net::BitTorrent::File (from CPAN)- on server, but I didn't understend clearly how to use it from Perl-script?
For example - how me to load and save(on server) torrent-file: 'behind_the_scenes_of_world_wars_divx.avi.torrent' from 'http://www.mininova.org/tor/32926'?

Thanks for your help!

Replies are listed 'Best First'.
Re: Using modul Net::BitTorrent::File
by friedo (Prior) on Apr 24, 2005 at 09:23 UTC
    Net::BitTorrent::File is for creating and manipulating .torrent files, not downloading them.

    To download files over SSH you'll need to use something like scp or Net::SCP.

    To download a .torrent file from a webserver you'll need to use something like LWP::Simple.

Re: Using modul Net::BitTorrent::File
by castaway (Parson) on Apr 24, 2005 at 09:30 UTC
    Do you want the .torrent file, or the file it's pointing to? Net::BitTorrent::File seems to just be for reading .torrent files, not for fetching them. You probably want a bittorrent client, or just scp.

    C.

      Yes!
      I'm Sorry! I didn't asked clearly! I need the file, that .torrent is pointing to!
      Maybe I need some bittorent client to install on server? And than using ssh-session to load that file, which is pointed from .torrent?

      Sorry about my english...

      Thanks!