MLDonkey: file_completed_cmd


    August 21st, 2007 | Tags: , ,

    Sample: Download file

    If you have explored MLDonkey’s settings, you would have realized that you could trigger a command/shell script upon torrent’s completion.

    I’ve included (along with this post) a sample shell script that shifts torrents to another location on the DNS-323 upon completion. Do note that this is a sample and it could have errors.

    file_completed_cmd should contain a value which points to the location of mv_torrents.sh. For example if the full path to mv_torrents.sh is /mnt/HD_a2/mv_torrents.sh then the value of file_completed_cmd should be

    file_completed_cmd = “/mnt/HD_a2/mv_torrents.sh”


    Share it on del.icio.us




    7 responses

    1. Thanks a million, this works great!!!

       
    2. There is a little problem in my case. file_completed_cmd works, files are being moved to proper directory. But then downloaded torrents are waiting “to be committed” in a web-interface… Whe I restart mldonkey, it tries to download those files again and again… any suggestion, please ?

       
    3. Jarek, the default settings (in files tab) auto commit the files after finish downloading. Perhaps you wish to try manually commiting the files and see if it is the commit procedure that is causing the re-download of files

       
    4. Works great! Thank you
      I’m trying to modify the scrept to leave files at least 12 hours in the shared folder ;)

       
    5. Trunks,

      Wow! That modification would be great! Do share with us!

       
    6. if [ -d "/mnt/HD_a2/mldonkey/incoming/files" ]; then
      find /mnt/HD_a2/mldonkey/incoming/files -mmin +720 -maxdepth 1 -exec mv ‘{}’ ‘/mnt/HD_a2/Incoming’ \;
      fi
      if [ -d "/mnt/HD_a2/mldonkey/incoming/directories" ]; then
      find /mnt/HD_a2/mldonkey/incoming/directories -mmin +720 -maxdepth 1 -exec mv ‘{}’ ‘/mnt/HD_a2/Incoming’ \;
      fi

      This is the last one, tested and working!

       
    7. Trunks,

      Thanks for the script! I would remove the earlier 2. :)

       

    RSS Feeds



    Treat shadowandy!


    Like to treat shadowandy a cup of Starbucks?

    Polls


    Which is your preferred SOHO networking brand?

    • D-Link (48%, 225 Votes)
    • Linksys (27%, 126 Votes)
    • Cisco (12%, 57 Votes)
    • Netgear (7%, 34 Votes)
    • Buffalo (2%, 9 Votes)
    • TRENDnet (1%, 6 Votes)
    • PCI (1%, 5 Votes)
    • Planex (1%, 3 Votes)

    Total Voters: 465

    Loading ... Loading ...


    Recent Comments



    Friend's Blog



    Interesting Links



    Previous Postings




    Copyright © 2005 - 2008 www.shadowandy.net  94 queries. 0.856 seconds.Go back up ↑