Page 1 of 1

Does not seem to work when using Cron with the following

Posted: 30 Nov 2019, 00:58
by aaseef021
Hi when I run the following using Crontab

/path/pathto .sh script which consist of the following

Code: Select all

filebot -script fn:amc --output "/data/Videos" --action copy --conflict override -non-strict --log-file amc.log --def clean=y artwork=y excludeList=amc.txt "/data/Torrents/Completed"
It does nothing.

if I run this manually it works fine. I know my cron is setup correctly as the extraction work if I do

Code: Select all

filebot -exraxt -r --input --ouput

Re: Does not seem to work when using Cron with the following

Posted: 30 Nov 2019, 06:36
by rednoah
:idea: Please read Shell Script Debugging for Beginners.


:arrow: I recommend using filebot -extract for batch extracting archives:

Code: Select all

filebot -extract -r /path/to/input --output /path/to/output

:!: :!: filebot -exraxt -r --input --ouput is wrong for multiple reasons, and if you run it, you well get immediate failures, because almost every single argument is either mistyped or doesn't exist:

Code: Select all

$ filebot -exraxt -r --input --ouput
"-exraxt" is not a valid option
$ filebot -extract -r --input --ouput
"--input" is not a valid option
$ filebot -extract -r /path/to/input --ouput
"--ouput" is not a valid option
$ filebot -extract -r /input --output
Option "--output" takes an operand
$ filebot -extract -r /path/to/input --output /path/to/output
...