1
rated 0 times
[
1]
[
0]
/ answers: 1 / hits: 1590
/ 2 Years ago, sat, october 22, 2022, 1:45:25
I'm new to shell scripting.
I'm trying to somehow cron a job that will wget one url once to trigger a task, and another url every 2 minutes after to keep the task alive.
So far I've managed to get the first url to work without issue, the problem comes with the second url wget repeating every 2 minutes for 1 hour.
I've tried including cron within the .sh script as I saw suggested somewhere else, like
*/2 * * * * wget $url
but terminal just throws it out with an error "no such file or directory".
Whats the best method of doing this?
More From » command-line