我想运行一个时限为 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 中是否有类似的超时命令?