I use the filebot on my server and it works very well the problem starts if i want to run the command with cron.
I provide some logs if someone can help me how to fix that. The problem is i think about enviroment vars or something but i cant make it work.
Shell: Select all
root@Ubuntu-2004-focal-64-minimal-hwe ~ # filebot -version
FileBot 5.1.1 (r9982) / Groovy 4.0.14 / OpenJDK Runtime Environment 17.0.8 / Linux 5.15.0-71-generic (amd64)
Shell: Select all
root@Ubuntu-2004-focal-64-minimal-hwe ~ # java -version
openjdk version "17.0.8" 2023-07-18
OpenJDK Runtime Environment Temurin-17.0.8+7 (build 17.0.8+7)
OpenJDK 64-Bit Server VM Temurin-17.0.8+7 (build 17.0.8+7, mixed mode, sharing)
Shell: Select all
root@Ubuntu-2004-focal-64-minimal-hwe ~ # which filebot
/usr/local/bin/filebot
root@Ubuntu-2004-focal-64-minimal-hwe ~ # which java
/usr/local/bin/java
my simple script tha i want to run
Shell: Select all
#!/bin/bash
/usr/local/bin/filebot -rename -r "/home/seeder/googledrive/Greek-TV/H-Magissa" --db TheTVDB -non-strict --lang ell --format "{n} - {s00e00} - {t}{subt}"
echo "rename script finished"
On cronjob when i put it like this:
Shell: Select all
39 11 * * * . $HOME/.profile; /root/run_filebot.sh >> /root/filebot.log 2>&1
Shell: Select all
/usr/local/bin/filebot: 55: java: not found
rename script finished