Linux Transmission- Script fails to start

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
cazten
Posts: 1
Joined: 22 Sep 2015, 03:32

Linux Transmission- Script fails to start

Post by cazten »

Apologies if this ends up being simple. I tried looking through the how top's and FAQ and this is my last resort after staring at this issue forever.

Trying to setup a script based off the templates from the website for transmission on linux.

Heres my script saved as transmission.sh
#!/bin/bash
filebot -script fn:amc --output "/media/F260A74160A70C03/Media" --log-file /media/amc.log
--action duplicate --conflict override -non-strict --def music=y artwork=y
"ut_dir=$TR_TORRENT_DIR/$TR_TORRENT_NAME" "ut_kind=multi" "ut_title=$TR_TORRENT_NAME" > /media/out.log

- The only thing I changed here was the output directory which I believe is correct?
- When running the with Command: filebot -script transmission.sh

root@openmediavault:/media/F260A74160A70C03/Downloads# filebot -script transmission.sh
MultipleCompilationErrorsException: startup failed:
Script1.groovy: 2: expecting EOF, found 'fn' @ line 2, column 17.
filebot -script fn:amc --output "/media/F260A74160A70C03/Media" --log-file /media/amc.log
^

1 error

org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
Script1.groovy: 2: expecting EOF, found 'fn' @ line 2, column 17.
filebot -script fn:amc --output "/media/F260A74160A70C03/Media" --log-file /media/amc.log
^

1 error

at net.filebot.cli.ScriptShell.evaluate(ScriptShell.java:61)
at net.filebot.cli.ScriptShell.runScript(ScriptShell.java:82)
at net.filebot.cli.ArgumentProcessor.process(ArgumentProcessor.java:116)
at net.filebot.Main.main(Main.java:168)
Failure (°_°)


- Also:
root@openmediavault:/media/F260A74160A70C03/Downloads# filebot -script fn:sysinfo
FileBot 4.6 (r3052)
JNA Native: 4.0.0
MediaInfo: MediaInfoLib - v0.7.58
7-Zip-JBinding: OK
chromaprint-tools: fpcalc -version failed (/usr/share/filebot/fpcalc)
Extended Attributes: OK
Groovy Engine: 2.4.3
JRE: Java(TM) SE Runtime Environment 1.8.0_60 (headless)
JVM: 64-bit Java HotSpot(TM) 64-Bit Server VM
CPU/MEM: 4 Core / 1 GB Max Memory / 28 MB Used Memory
OS: Linux (amd64)
uname: Linux openmediavault 3.16.0-0.bpo.4-amd64 #1 SMP Debian 3.16.7-ckt11-1+deb8u3~bpo70+1 (2015-08-08) x86_64 GNU/Linux
Done ヾ(@⌒ー⌒@)ノ
User avatar
rednoah
The Source
Posts: 23953
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Linux Transmission- Script fails to start

Post by rednoah »

transmission.sh is a shell script, NOT a Groovy script.

Meaning:
Transmission calls shell. shell calls transmission.sh and that calls filebot/amc with all parameters.

Please follow this thread: viewtopic.php?f=4&t=3005
:idea: Please read the FAQ and How to Request Help.
Post Reply