AMC Works in SSH but not as Task Sheduler in Synlogy NAS

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
WtfJoke
Posts: 7
Joined: 13 Dec 2014, 02:44

AMC Works in SSH but not as Task Sheduler in Synlogy NAS

Post by WtfJoke »

Hi there,

First thanks for your awesome AMC-Script. Works like a charm.
Neverthless, when I try to start it by using a sheduled task I receive following error (by setting up output logging like described in
http://www.filebot.net/forums/viewtopic ... 802#p12015):

Code: Select all

/usr/syno/bin/filebot: line 37: java: not found
/volume1/public/RenameMoviesEpisodesFilebotScript.sh: line 2: 
: not found
So it seems java cant be found. Where can I declare or extend the path variable in order that java can be found?
Did somebody run into the same issue or knows how to fix it?

The command which will be run is:

Code: Select all

filebot -script fn:amc --lang de --output "/volume1/Freigabe/Series & Movies" --log-file amc.log --action copy -non-strict "/volume1/Freigabe/DL" --def excludeList=amc.txt "seriesFormat=Serien/{n}/{'Staffel '+s}/{n}.{s00e00} - {t}/{fn}" "movieFormat=Movies/{n} {y}/{fn}"
But as mentioned before, this works without problems in any ssh-client.
User avatar
rednoah
The Source
Posts: 23005
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: AMC Works in SSH but not as Task Sheduler in Synlogy NAS

Post by rednoah »

export PATH=... or ln into /bin and probably many other ways to do it. I recommend symlinking the java executable same as the filebot executable.
:idea: Please read the FAQ and How to Request Help.
WtfJoke
Posts: 7
Joined: 13 Dec 2014, 02:44

Re: AMC Works in SSH but not as Task Sheduler in Synlogy NAS

Post by WtfJoke »

rednoah wrote:export PATH=... or ln into /bin and probably many other ways to do it. I recommend symlinking the java executable same as the filebot executable.
Thanks. I am more a bit of a linux beginner.
Neverthless I followed your advice and was able to create a symbolic link for java, which fixed the issue. Now it works.

In case someones run into the same issue.
I did following steps to create a new symbolic link for java.
  1. which java (Output was: /volume1/@appstore/java8/ejdk1.8.0_06/linux_arm_sflt/jre/bin/java)
  2. Create a symlink: ln -s /volume1/@appstore/java8/ejdk1.8.0_06/linux_arm_sflt/jre/bin/java /
    usr/bin/java

EDIT: Something else... Is there some way to copy/move the existing .nfo file in the same folder as the video file as well?
User avatar
rednoah
The Source
Posts: 23005
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: AMC Works in SSH but not as Task Sheduler in Synlogy NAS

Post by rednoah »

FileBot does not allow move/copy of artwork/nfo because it's almost always better to just have FileBot recreate that data.
:idea: Please read the FAQ and How to Request Help.
Post Reply