我喜欢运行一个像这样对 cam 进行快照的 cron:
* 9-17 * * 1-5 vlc -I dummy v4l2:///dev/video0 --video-filter scene --no-audio --scene-path /home/foo/tmp/cam --scene-prefix snapshot --scene-format png vlc://quit --run-time=1
但是当 cron 运行时,它只会抛出一个我不明白的错误:
** Message:
Failed to get session bus:
Error spawning command line 'dbus-launch --autolaunch=55644972b3c91c1d24d83d8252721f00 --binary-syntax --close-stderr':
Child process exited with code 1
在网上我找不到干净或好的文档是什么。你能帮我弄清楚吗?