How can I send script output from cron? #719
-
Hi,
When I run it manually I get the desired output like so: When it runs via cron line Is there any way to get the output when running from cron? Thanks for any info. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
When it runs from cron,
As an experiment, I just did the following on RPi 400 running Raspbian: Created
Installed cowsay (
I do see the success pings coming in every minute, and they do contain the request body with cowsay output. Perhaps you can do something similar, to see if the problem is specific to raspiBackup, or it's something else. |
Beta Was this translation helpful? Give feedback.
-
I got it working like this (per discussion with author stdout is disabled when running headless)
But if I understand things correctly I am now receiving the exit code of the |
Beta Was this translation helpful? Give feedback.
When it runs from cron,
As an experiment, I just did the following on RPi 400 running Raspbian:
Created
/home/user/experiment.sh
and made it executable:Installed cowsay (
sudo apt install cowsay
) and created a cron entry for it:I do see the success pings coming in every minute, and they do contain the request body w…