shell下循环间隔执行命令

#!/bin/bash

for variable  in $(seq 1 60)
do
        usleep 50000
        test_yuvcap -i 0 -R -f  /cap/cap$variable
done

$(seq 1 60)表示抓取60帧数据

usleep 50000 表示延迟50ms

发布了52 篇原创文章 · 获赞 6 · 访问量 3079

猜你喜欢

转载自blog.csdn.net/lx123010/article/details/104002075