如何在快照后触发shell/script?

How to trigger shell/script after a snapshot is taken?

在 Motion(运动项目)内 (https://github.com/Motion-Project/motion) configuration/process.

有没有办法在拍摄快照后触发 shell/script?

谢谢

您必须编辑您的 motion.conf :

#Command to be executed when a picture (.ppm|.jpg) is saved (default: none) #To give the filename as an argument to a command append it with %f ; on_picture_save value

删除 "on_picture_save" 之前的 ; 并使用 shell 命令编辑您的值以执行您的脚本。