Leave a Comment
Shell: repeat a task multiple time
All shells (bash/zsh):
1 |
watch -n 3 "curl --location --request GET 'http://...'" |
will run curl
every 3 seconds until you break it.
zsh specific:
1 |
repeat 5 { curl --location --request GET 'http://...' } |
will repeat it 5 times without any delay
Similar Posts
LEAVE A COMMENT
Для отправки комментария вам необходимо авторизоваться.