Terminal 终端运行代码为n秒

Terminal 终端运行代码为n秒,terminal,command,Terminal,Command,我已经搜索过了,但是还没有找到一个命令-我如何在终端上运行say hello.o n秒 watch -n 60 hello.o 如果要运行hello.o n秒X次 x=0 n=60 while [ "$x" -lt 10 ]; do ./hello.o; ((x++));sleep $n; done 这将永远每60秒运行一次hello.o。

我已经搜索过了,但是还没有找到一个命令-我如何在终端上运行say hello.o n秒

 watch -n 60 hello.o
如果要运行hello.o n秒X次

x=0
n=60
while [ "$x" -lt 10 ]; do ./hello.o; ((x++));sleep $n; done

这将永远每60秒运行一次
hello.o