more than one command after torrent gets finished

Linux specific questions, problems.
Post Reply
kingofdunghill
Newbie
Newbie
Posts: 1
Joined: Sun Jun 14, 2020 12:55 pm

more than one command after torrent gets finished

Post by kingofdunghill » Sun Jun 14, 2020 12:59 pm

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: 1865
Joined: Wed Jul 07, 2010 6:14 pm

Re: more than one command after torrent gets finished

Post by Peter » Mon Jul 27, 2020 12:34 pm

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