Transmission - Can't create script to remove completed downloads

  • I have OMV3 running on Armbian, and I found this to remove my completed downloads:


    Transmission remove downloaded torrents



    Zitat

    nano /usr/local/bin/transmission_script.sh



    chmod +x/usr/local/bin/transmission_script.sh



    I did exactly that, removed the auth part since I do not have to authentication (I pasted using nano)



    In desperation I also did chmod -R 777 onto my downloads directory and into that file, but nothing works, I get "Unexpected response" with a buch of "invalid characters". I've tried running the script both through SSH and shell in a box, both with bash script.sh and ./script.sh. Nothing works


    EDIT: In the meantime I managed to run the script with sh script.sh. Problem is, I have some debug echos in the script and it does not go into the "for loop", so it seems it doesn't find any torrents. I currently have three on "seeding complete".


    Any idea?

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!