There are 2 main options on how to get cron tasks output via RSS feed. Choose one of them.
This option would work only if your server has been configured to send emails.
You can check that, for example, by running:
echo
'test'
|
mail
-s
"test"
your@emailaddress.com
If you get an email after that then it works.
If not then just proceed to option B.
Open crontab on your server:
crontab
-e
Add
MAILTO=88wc0csg448so40ockw8wwoggw8gs8w8@ai.notifier.in
variable at the beginning of the config.
So it should look the following way:
MAILTO=88wc0csg448so40ockw8wwoggw8gs8w8@ai.notifier.in
# Your cron tasks...
This option requires cURL to be installed on your server.
Check it by running:
curl
--version
You should see something like that:
curl 7.47.0 ...
If that's not the case then you should install it first.
Open crontab on your server:
crontab
-e
If you'd like to be notified about all output (STDIN and STDERR) add the following code after each of your tasks:
| curl -H "Content-Type: text/plain" --data-binary @- https://notifier.in/webhook/88wc0csg448so40ockw8wwoggw8gs8w8
So it should look the following way:
2 3 * * *
./your_example_script.sh
| curl -H "Content-Type: text/plain" --data-binary @- https://notifier.in/webhook/88wc0csg448so40ockw8wwoggw8gs8w8
9 * * * *
./your_another_example_script.sh
| curl -H "Content-Type: text/plain" --data-binary @- https://notifier.in/webhook/88wc0csg448so40ockw8wwoggw8gs8w8
If you'd like to be notified only about error output (STDERR) add the following code after each of your tasks:
2>&1>/dev/null | curl -H "Content-Type: text/plain" --data-binary @- "https://notifier.in/webhook/88wc0csg448so40ockw8wwoggw8gs8w8?ignoreEmptyBody=1"
So it should look the following way:
2 3 * * *
./your_example_script.sh
2>&1>/dev/null | curl -H "Content-Type: text/plain" --data-binary @- "https://notifier.in/webhook/88wc0csg448so40ockw8wwoggw8gs8w8?ignoreEmptyBody=1"
9 * * * *
./your_another_example_script.sh
2>&1>/dev/null | curl -H "Content-Type: text/plain" --data-binary @- "https://notifier.in/webhook/88wc0csg448so40ockw8wwoggw8gs8w8?ignoreEmptyBody=1"
You could also get emails, HTTP requests bodies, and articles' summaries via RSS.