java not found on Synology Scheduled Task

All your suggestions, requests and ideas for future development
Post Reply
sylvain
Posts: 2
Joined: 01 Dec 2015, 23:30

java not found on Synology Scheduled Task

Post by sylvain »

Hi
I have a Synology DS1813+ with Filebot 4.6.1 and MediaInfo 0.7.73-32 (installed through Package Center),

I launch this script in CLI as root

filebot -script fn:suball /volume2/Media --lang en -non-strict&

it works

but when I launch it as a scheduled task I got this error in the log
as admin
/usr/local/bin/filebot: cd: line 21: can't cd to /root
/usr/local/bin/filebot: line 53: java: not found
as root
/usr/local/bin/filebot: line 53: java: not found

What did I forget thanks
User avatar
rednoah
The Source
Posts: 23005
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: java not found on Synology Scheduled Task

Post by rednoah »

1.
Use https://github.com/rednoah/java-installer to install java correctly.

2.
/root shouldn't be the default working dir for the admin user. Make sure to enable user homes in Synology DSM.
:idea: Please read the FAQ and How to Request Help.
Post Reply