Post command notifications

I’m testing the x86_64 QNAP qpkg, and would like to log events to the QNAP Notification Center. Before switching to the web UI, I used the attached bash script to run CLI commands, capture the command exit status and error message, if any, and log these to the Notification Center.

Can this be done with the web UI and Post Command scripts? If so, how?

duplicacy.sh.txt (1.2 KB)

I planned to add pre/post scripts to schedules but unfortunately that hasn’t been implemented yet.

For now you can place them in .duplicacy/scripts under .duplicacy-web/repositories.

Can the Post Command scripts access the duplicacy command exit status and error message, if any? If so, how?

Unfortuantely the CLI doesn’t pass the exit status and error message to post command scripts.