Quantcast
Channel: Debian User Forums
Viewing all articles
Browse latest Browse all 3474

Were does the output from scripts in cron.daily go?

$
0
0
Hi everyone

I'm on Debian 11.

I wrote a shell script which does some stuff (counts open sockets) and echos information to stdout. I put it into /etc/cron.daily.

I'm quite sure that in the past (Deb <10?) I got an email when the exit code of a Cron script wasn't zero or if there was any output (stdout and stderr).

Now I can't even find a note in /var/log/syslog when my script was executed...

Of course I can write messages from my script directly to a dedicated log file, which is what I'm doing right now. This allows me to see that the script is actually being executed.
But I still wonder where the output to stdout goes...

By the way: The execution from scripts triggered by a Cron configuration in /etx/cron.d is logged to /var/log/syslog...

Chees

Statistics: Posted by rantanplan — 2025-01-29 09:45 — Replies 0 — Views 33



Viewing all articles
Browse latest Browse all 3474

Trending Articles