-
Notifications
You must be signed in to change notification settings - Fork 12
Description
First, thanks a lot for publishing this nice piece of recording software. I'm currently evaluating and testing it to see if it could replace our current 7/24h recording solution.
What would be really nice, is the ability to call a custom hook command or script on file rotation. Ideally, one could specify an optional command (rotter ... -s "/usr/libexec/rotter/my-rotter-hook.sh %s" /var/tmp ) which will be called each time a recording has finished (the file gets closed). The command would be executed and %s (or similar) would be replaced with the absolute path to the finished recording file.
In my case, I have to record to a temporary path and move the file to its final location once (but not before) it has finished (e.g. rotter ... -s "/usr/bin/mv %s /var/archive/" /var/tmp).
Other use cases would be to upload the file somewhere, insert a database record, inform a monitoring system or similar.