Run command `at ` 5 seconds from now

前端 未结 8 1812
甜味超标
甜味超标 2020-12-29 05:03

As part of a slightly complex script, I need to tell a server to run a simulation. Normally, I would achieve this by doing ssh user@server \'simulation/script\'

8条回答
  •  臣服心动
    2020-12-29 05:13

    "at" doesn't have sub-minute resolution but you can fake it:

    echo "sleep 5 ; COMMAND" | at now
    

提交回复
热议问题