From 45929878103b68049d39a7ccea8cf00ba7afdc19 Mon Sep 17 00:00:00 2001 From: Simon Beginn Date: Thu, 11 Jun 2020 20:30:41 +0200 Subject: [PATCH] Switched from piping to --output /dev/null for curl --- templates/docs/monitoring_cron_jobs.html | 4 ++-- templates/docs/monitoring_cron_jobs.md | 4 ++-- templates/front/snippets/crontab.html | 2 +- templates/front/snippets/crontab.txt | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/templates/docs/monitoring_cron_jobs.html b/templates/docs/monitoring_cron_jobs.html index efcdfccf..e20f8e75 100644 --- a/templates/docs/monitoring_cron_jobs.html +++ b/templates/docs/monitoring_cron_jobs.html @@ -42,7 +42,7 @@ increasingly important as you add more checks to your account.

after the command:

$ 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
 
@@ -109,4 +109,4 @@ there is an error. Feel free to adjust the curl options to suit your needs.

System clock synchronized: yes NTP service: active RTC in local TZ: no - \ No newline at end of file + diff --git a/templates/docs/monitoring_cron_jobs.md b/templates/docs/monitoring_cron_jobs.md index c055d051..f1b4b050 100644 --- a/templates/docs/monitoring_cron_jobs.md +++ b/templates/docs/monitoring_cron_jobs.md @@ -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 -``` \ No newline at end of file +``` diff --git a/templates/front/snippets/crontab.html b/templates/front/snippets/crontab.html index 84a57cb9..1ea0fcd7 100644 --- a/templates/front/snippets/crontab.html +++ b/templates/front/snippets/crontab.html @@ -1,3 +1,3 @@
# 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 }}
 
diff --git a/templates/front/snippets/crontab.txt b/templates/front/snippets/crontab.txt index 64c6ecc4..84edb987 100644 --- a/templates/front/snippets/crontab.txt +++ b/templates/front/snippets/crontab.txt @@ -1,2 +1,2 @@ # m h dom mon dow command - 8 6 * * * /home/user/backup.sh && curl -fsS --retry 3 PING_URL > /dev/null \ No newline at end of file + 8 6 * * * /home/user/backup.sh && curl -fsS --retry 3 --output /dev/null PING_URL