Run command `at ` 5 seconds from now

前端 未结 8 1794
甜味超标
甜味超标 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条回答
  •  Happy的楠姐
    2020-12-29 05:18

    I ran into the same issue today, but I was able to resolve it using nohup

    nohup bash -c 'sleep 5 && at now -f script-name.sh'

提交回复
热议问题