Search found 30 matches

by huidbui25
Sat Mar 21, 2020 1:05 pm
Forum: Troubleshooting
Topic: You have new mail warning when starting the shell
Replies: 4
Views: 206

Re: You have new mail warning when starting the shell

Thank you very much for your prompt reply and help! It worked. :) And sorry for the late answer, my attention was distracted by that China virus :/ Just one (minor) issue left: The email that was sent (because of that logrotate cronjob) was completely blank. So, emailing itself seemed to work but no...
by huidbui25
Thu Mar 12, 2020 9:10 pm
Forum: Troubleshooting
Topic: You have new mail warning when starting the shell
Replies: 4
Views: 206

You have new mail warning when starting the shell

Hi! Each time I login to the shell I can see a little message telling me 'You have new mail': The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux ...
by huidbui25
Fri Feb 14, 2020 6:53 pm
Forum: General Discussion
Topic: Temperature by email
Replies: 17
Views: 1731

Re: Temperature by email

WarHawk wrote:
Fri Feb 07, 2020 3:53 am
neat..post it up!
Good idea. Done so here. I'm a Linux novice tho.
by huidbui25
Fri Feb 14, 2020 6:46 pm
Forum: Community Tutorials
Topic: [Tutorial] Check CPU temperature and send warning mail
Replies: 1
Views: 564

[Tutorial] Check CPU temperature and send warning mail

This tutorial guides you through the steps to set up a simple script that monitors your Raspberry's CPU temperature and automatically sends emails as long as the CPU temperature exceeds a threshold defined by you. Of course, after you set up everything, you can use the mailing feature for other mail...
by huidbui25
Fri Feb 07, 2020 10:22 pm
Forum: General Discussion
Topic: Temperature by email
Replies: 17
Views: 1731

Re: Temperature by email

Heureka ... more or less ;) I have to add "sudo" to the cronjob line to make it work:

Code: Select all

*/2 * * * * sudo bash /usr/local/bin/temp_mon
I only don't understand the reason why it doesn't work without that "sudo".
by huidbui25
Fri Feb 07, 2020 9:56 pm
Forum: General Discussion
Topic: Temperature by email
Replies: 17
Views: 1731

Re: Temperature by email

Ahh, I'm getting closer. The error is not caused by cron but by the mailing program, it trys to send to the wrong email address. But not sure why. When executing the script manually it works, when exectuted by cron the mailer uses different mail settings and hence fails.
by huidbui25
Fri Feb 07, 2020 9:35 pm
Forum: General Discussion
Topic: Temperature by email
Replies: 17
Views: 1731

Re: Temperature by email

MichaIng wrote:
Fri Feb 07, 2020 4:00 pm
One can also increase cron log level via /etc/default/cron.
I'll try that and see what I find ...
by huidbui25
Fri Feb 07, 2020 9:34 pm
Forum: General Discussion
Topic: Temperature by email
Replies: 17
Views: 1731

Re: Temperature by email

0,5,10,15,20,25,30,35,40,45,50,55 * * * * date >>/tmp/debug_cron_pax.txt That was a good hint and, indeed, it works. It's not the notation, */5 ... works, too: the txt file is being created and a new line added every five minutes. So the problems seems to be related to my script somehow. :? What wo...
by huidbui25
Fri Feb 07, 2020 3:17 pm
Forum: General Discussion
Topic: Temperature by email
Replies: 17
Views: 1731

Re: Temperature by email

Sorry, this was a typo. I meant minute instead of second. Later I want to run the script only like every 10 Minutes or so. But apart from that, the current cronjob command doesn't seem to run at all, no matter if I set it to 1 minute or 2 minutes or whatever. I can execute the script manually, but c...