拍摄快照后如何触发shell /脚本?

问题描述 投票:0回答:1

在Motion(Motion-project)(https://github.com/Motion-Project/motion)配置/过程中。

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

谢谢

raspberry-pi motion motion-detection
1个回答
1
投票

你必须编辑你的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命令编辑您的值以执行您的脚本。

© www.soinside.com 2019 - 2024. All rights reserved.