Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我编写了一个 shell 脚本,其中包含一些命令来收集各种测试日志。但是我想在特定命令之前放置等待时间,以便它在启动 shell 脚本后 30 分钟后运行。任何了解它的人请帮助我出去。
提前致谢
您可以使用该at命令来安排作业随时运行:
at
echo "/my_path/my_script" | at now + 30 minutes
如果您想在脚本中延迟,您可以使用此解决方案睡到特定时间。