Run command `at ` 5 seconds from now

前端 未结 8 1814
甜味超标
甜味超标 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:14

    I think it is much easier doing:

    sleep n && command   
    

    where n is number of seconds.

提交回复
热议问题