How to have a Shell script continue after reboot?

前端 未结 3 723
野的像风
野的像风 2020-12-20 07:14

I have a Shell script that needs to run in a loop, and perform a series of commands, and when it\'s finished repeat, hence the loop. Between each command there is a sleep co

3条回答
  •  太阳男子
    2020-12-20 08:05

    I think you can use a cron job for this. A cron job can run each minute and with a "lock file" strategy you can run the script only if the lock file is not present hence when the previous running script was ended.

提交回复
热议问题