How can I run
curl on multiple URLs example:
curl https://google.com/1 curl https://google.com/2 curl https://google.com/3
I would like to automate
curl every 60 seconds.
Try the below,
1) Create file MultiCurl.sh
/usr/bin/curl "https://google.com/1" /usr/bin/curl "https://google.com/2" /usr/bin/curl "https://google.com/3"
2) Make it executable with chmod
chmod +x MultiCurl.sh
3) Added it in Cron Job
*/60 * * * * $Scriptpath/MultiCurl.sh
Alternatively, you can use the command
wget with the flag
--i. Put all the urls in a file list.txt, then run
cat list.txt https://google.com/1 https://google.com/2 https://google.com/3 wget --i ./list.txt