小编AWS*_*ner的帖子

AIX 中 shell 脚本的时间限制

我想运行一个时限为 50 秒的 shell 脚本。下面在 linux 中工作正常。

  timeout 50s sudo sh my-script.sh
Run Code Online (Sandbox Code Playgroud)

但是我有 AIX 服务器,我想在 50 秒的时间限制内运行上面的脚本。所以我在 AIX 中运行相同的命令,但它给了我

     timeout command not found
Run Code Online (Sandbox Code Playgroud)

AIX 中是否有类似的超时命令?

linux aix

2
推荐指数
1
解决办法
447
查看次数

标签 统计

aix ×1

linux ×1