LoginSignup
0
0

More than 3 years have passed since last update.

n回失敗するまで繰り返し続けるlinuxコマンド ワンライナー

Posted at

How do I write a retry logic in script to keep retrying to run it upto 5 times?

より拝借。5回くらい同じコマンドを繰り返す。

for i in 1 2 3 4 5; do command && break || sleep 15; done
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0