more than one -exec

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
User avatar
feuerwasser
Posts: 13
Joined: 04 Mar 2015, 18:38

more than one -exec

Post by feuerwasser »

I have the problem that i want filebot to execute more than one bash command like "synoindex -a" and "chmod" or "chown". Is that possible and how?
User avatar
rednoah
The Source
Posts: 22974
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: more than one -exec

Post by rednoah »

You can just call many commands, just like on the command line using semi-colon (e.g. command1; command2; etc).

@see https://superuser.com/a/612413/349721

For the sake of clean code, I'd just write a script for all your custom post-processing and then simply call that one script with all the parameters you need. That'll also help you test your post-processing script without FileBot.
:idea: Please read the FAQ and How to Request Help.
User avatar
feuerwasser
Posts: 13
Joined: 04 Mar 2015, 18:38

Re: more than one -exec

Post by feuerwasser »

Thank's a lot! That helped. I just have two post processing commands, so no external script needed but good advice.
Post Reply