Need help making a script for mktorrent please? (Linux)
Register

We are the best invite forum on the internet! Here you will find free invites, free seedboxes, free bonuses, and much more. Our members know the true meaning of sharing and have created a truly global bittorent community! Our site has the most up to date information on all private trackers and our members will guide you and introduce you to this truly secretive and enlightened club. Ready to get started? Register now!


Results 1 to 5 of 5
Like Tree1Likes
  • 1 Post By securecrt

Thread: Need help making a script for mktorrent please? (Linux)

  1. #1

    Join Date
    Mar 2011
    Location
    Sheffield, England
    Posts
    583

    Default Need help making a script for mktorrent please? (Linux)

    Hi Folks!

    I'm going to try and keep this simple..


    I have a folder full of more folders what I want to make torrents for.

    I want to make a script that makes a seperate torrent for each folder but I don't know how to do it.



    At the moment I have an alias added to the .bash_alias file



    Which saves some time but it would be cool if I could apply the mktorrent command to all the folders in the current directory or whatever.

    I am pretty sure this is quite easy to do? Ideally a bash script but mabye a python script or something but if someone could show me how or just give me an example script it would be insanely useful to me and then I could apply it to other commands too..
    Last edited by Kitkatra; November 11th, 2011 at 07:24 AM.


  2. To remove ads become VIP. Inquire about advertising here.
  3. #2

    Join Date
    Mar 2011
    Location
    Los Angeles
    Posts
    645

    Default

    a simple one:

    cd your torrent folder
    for i in `ls`;do wtmk $i;done
    Kitkatra likes this.

  4. #3

    Join Date
    Mar 2011
    Location
    Sheffield, England
    Posts
    583

    Default

    Quote Originally Posted by securecrt View Post
    a simple one:

    cd your torrent folder
    for i in `ls`;do wtmk $i;done
    Thanks for your response! It doesn't quite work yet as all my folder names have spaces in them so it tries to do the command on all parts of the folder name seperately. Could you please tell me which bit of the command to enclose in quotes to get this command to work please?

    For example if I have a folder in there called: Album - Name (V0) it would try to do the command on "Album", "-", "Name" and "V0"!

    I have tried:
    for i in `ls`;do wtmk "$i";done
    but it does the same thing..

    Easy to fix?
    Last edited by Kitkatra; November 11th, 2011 at 08:41 AM.

  5. #4

    Join Date
    Mar 2011
    Location
    Los Angeles
    Posts
    645

    Default

    for i in *;do wtmk "$i";done

  6. #5

    Join Date
    Mar 2011
    Location
    Sheffield, England
    Posts
    583

    Default

    Cool, I made a script wich used
    ls -F | grep / | while read line; do mktorrent -a "YOUR_ANNOUNCE_URL" -p "$line"; done
    On advice from malevich!

    Thanks for your help, I'm sure thats an easier way of doing the same thing though.. solved. :)
    Last edited by Kitkatra; November 11th, 2011 at 10:27 AM.

Similar Threads

  1. need help to tweak rtorrent for my new evo 2gbits vps
    By west93600 in forum Seedbox Discussions
    Replies: 6
    Last Post: June 10th, 2011, 06:02 AM
  2. Need help for Samsung Ultra Touch S8300
    By mrjimmy in forum Mobile Phones
    Replies: 0
    Last Post: June 22nd, 2009, 03:54 AM
  3. Need help for movie !
    By Hard in forum Help
    Replies: 1
    Last Post: May 12th, 2009, 09:31 AM
  4. I need help with my seedbox! Please
    By TorrentJunkE420 in forum BitTorrent Discussion
    Replies: 7
    Last Post: February 11th, 2009, 05:51 PM
  5. need help for my sct and scl acc
    By orayan in forum BitTorrent Discussion
    Replies: 2
    Last Post: October 13th, 2008, 06:16 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •