
再起動後に次のスクリプトを実行したい
username$ screen
username$ while true; do php cron.php; sleep 5; done
次に別のスクリーンセッションを作成して別のものを実行します
username$ while true; do php cron2.php; sleep 5; done
通常、私は cron を使用してこれを実行しますが、5 秒ごとにこれを実行したいと考えています。
システムを再起動した後でも何かできることはありますか?