more than one command after torrent gets finished

Linux specific questions, problems.
Post Reply
kingofdunghill

more than one command after torrent gets finished

Post by kingofdunghill »

Hi, can somebody tell me how to execute 2 commands after the torrent download finished in the built in form?

/home/stipy/.filebot/filebot-portable/filebot.sh -script fn:amc --output "/home/stipy/torrents/downloads/finished/" --action duplicate -non-strict "/home/stipy/torrents/finished/" --log-file /home/stipy/filebot/amc.log --def excludeList=/home/stipy/filebot/amc.txt && /home/stipy/torrents/unrar.sh


this && doesnt work for me.

Thx
User avatar
Peter
Administrator
Administrator
Posts: 2701
Joined: Wed Jul 07, 2010 6:14 pm

Re: more than one command after torrent gets finished

Post by Peter »

Simply make a new .sh file, make it executable (chmod +x whatever.sh) and then add these commands into that.

Like:

Code: Select all

$ touch ~/whatever.sh
$ chmod +x ~/whatever.sh
$ nano -w ~/whatever.sh
The file contents:

Code: Select all

/home/stipy/.filebot/filebot-portable/filebot.sh -script fn:amc --output "/home/stipy/torrents/downloads/finished/" --action duplicate -non-strict "/home/stipy/torrents/finished/" --log-file /home/stipy/filebot/amc.log --def excludeList=/home/stipy/filebot/amc.txt
/home/stipy/torrents/unrar.sh
And then in qBittorrent you simply call this "whatever.sh" file instead of that long line. Easy.
Post Reply