Write your script:
Write a bash script that performs your tasks and make it executable:
Shell: Select all
vi nightly.sh
Shell: 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
Shell: Select all
chmod +x nightly.sh
Configure cron to call your script:
Edit crontab:
Shell: Select all
vi /etc/config/crontab
Shell: Select all
0 4 * * * /path/to/nightly.sh > /path/to/nightly.log 2>&1

