Write your script:
Write a bash script that performs your tasks and make it executable:
Code: Select all
vi nightly.sh
Code: Select all
#!/bin/sh
filebot -script fn:amc --output "/path/to/output" --action duplicate -non-strict "/path/to/input" --log-file amc.log --def excludeList=amc.txt
Code: Select all
chmod +x nightly.sh
Configure cron to call your script:
Edit crontab:
Code: Select all
vi /etc/config/crontab
Code: Select all
0 4 * * * /path/to/nightly.sh > /path/to/nightly.log 2>&1
Keep your crontab simple! Do use the absolute path to the executable. Do redirect standard output and error output, so you can see what the log says later.