def exec synatax error

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
erty56
Posts: 1
Joined: 26 Sep 2017, 15:43

def exec synatax error

Post by erty56 »

Part of my filebot command contains "--def exec=" which calls on a command that uses a regex. Part of the regex uses curly braces to detect repetition i.e. {1,3}
The curly braces seem to break filebot:

Code: Select all

SyntaxError: unexpected token: 1
Is there any way to get around it?
User avatar
rednoah
The Source
Posts: 22976
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: def exec synatax error

Post by rednoah »

{...} is interpreted by FileBot so you can't use those bash constructs in a FileBot exec expression.

:idea: I recommend creating a shell script that does the job and then simply call that with the appropriate arguments after you have tested it manually.
:idea: Please read the FAQ and How to Request Help.
Post Reply