cron job
-
Hi
I need to run a cron job every 15mins for heartbeat to a alarm service:
I need to runcurl "https://ipv64.net/health.php?token=xxxxxxxx"
I've installed the cron package and created a new job
15 * * * * root curl "https://ipv64.net/health.php?token=xxxxxxxx"
On first test this seemed to run but now it doesn't as I don't get the heartbeat at the receiving site.
- where can I check if this is running and if it has some error? Can't find the log.
- Did I do this correctly?
Thx in advance!
-
@manilx It should be "*/15" in the first column for every 15 minutes. "15" will run at 15 minutes past the hour. (vs, any time divisible by 15)
-
@steveits Thank You! Changed it and will see how it goes.
-
This post is deleted! -
You also usually need the full path to the binary for commands run there.
-
@stephenw10 What would be the full path for curl?
-
[22.05-RELEASE][admin@cedev-3.stevew.lan]/root: which curl /usr/local/bin/curl
-
@stephenw10 All working now. Thank you all.
Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.