Merge pull request #380 from Simonmicro/master

Switched from pipeing to --output /dev/null for curl
This commit is contained in:
Pēteris Caune 2020-06-15 15:57:59 +03:00 committed by GitHub
commit bd3f150284
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 6 deletions

View File

@ -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">&amp;&amp;</span> curl -fsS --retry <span class="m">3</span> PING_URL &gt; /dev/null
<span class="m">8</span> <span class="m">6</span> * * * /home/user/backup.sh <span class="o">&amp;&amp;</span> curl -fsS --retry <span class="m">3</span> --output /dev/null PING_URL
</code></pre></div>
@ -109,4 +109,4 @@ there is an error. Feel free to adjust the curl options to suit your needs.</p>
</span>System clock synchronized: yes
NTP service: active
RTC in local TZ: no
</code></pre></div>
</code></pre></div>

View File

@ -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.
@ -113,4 +113,4 @@ $ timedatectl status
System clock synchronized: yes
NTP service: active
RTC in local TZ: no
```
```

View File

@ -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">&amp;&amp;</span> curl -fsS --retry <span class="m">3</span> {{ ping_url }} &gt; /dev/null
<span class="m">8</span> <span class="m">6</span> * * * /home/user/backup.sh <span class="o">&amp;&amp;</span> curl -fsS --retry <span class="m">3</span> --output /dev/null {{ ping_url }}
</pre></div>

View File

@ -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