forked from GithubBackups/healthchecks
Switched from piping to --output /dev/null for curl
This commit is contained in:
parent
beff11ceff
commit
4592987810
@ -42,7 +42,7 @@ increasingly important as you add more checks to your account.</p>
|
||||
after the command:</p>
|
||||
<div class="highlight"><pre><span></span><code>$ crontab -e
|
||||
<span class="c1"># m h dom mon dow command</span>
|
||||
<span class="m">8</span> <span class="m">6</span> * * * /home/user/backup.sh <span class="o">&&</span> curl -fsS --retry <span class="m">3</span> PING_URL > /dev/null
|
||||
<span class="m">8</span> <span class="m">6</span> * * * /home/user/backup.sh <span class="o">&&</span> curl -fsS --retry <span class="m">3</span> --output /dev/null PING_URL
|
||||
</code></pre></div>
|
||||
|
||||
|
||||
|
@ -41,7 +41,7 @@ after the command:
|
||||
```bash
|
||||
$ crontab -e
|
||||
# m h dom mon dow command
|
||||
8 6 * * * /home/user/backup.sh && curl -fsS --retry 3 PING_URL > /dev/null
|
||||
8 6 * * * /home/user/backup.sh && curl -fsS --retry 3 --output /dev/null PING_URL
|
||||
```
|
||||
|
||||
Now, each time your cron job runs, it will send a HTTP request to the ping URL.
|
||||
|
@ -1,3 +1,3 @@
|
||||
<div class="highlight"><pre><span></span><span class="c1"># m h dom mon dow command</span>
|
||||
<span class="m">8</span> <span class="m">6</span> * * * /home/user/backup.sh <span class="o">&&</span> curl -fsS --retry <span class="m">3</span> {{ ping_url }} > /dev/null
|
||||
<span class="m">8</span> <span class="m">6</span> * * * /home/user/backup.sh <span class="o">&&</span> curl -fsS --retry <span class="m">3</span> --output /dev/null {{ ping_url }}
|
||||
</pre></div>
|
||||
|
@ -1,2 +1,2 @@
|
||||
# m h dom mon dow command
|
||||
8 6 * * * /home/user/backup.sh && curl -fsS --retry 3 PING_URL > /dev/null
|
||||
8 6 * * * /home/user/backup.sh && curl -fsS --retry 3 --output /dev/null PING_URL
|
||||
|
Loading…
x
Reference in New Issue
Block a user