Run cURL command every 5 seconds Run cURL command every 5 seconds linux linux

Run cURL command every 5 seconds


You can run in while loop.

while sleep 5; do cmd; done

Edit:

If you don't want to use while..loop. you can use watch command.

watch -n 5 cmd


Another simple way to accomplish the same task is:

watch -n {{seconds}} {{your-command}}