Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

All Questions

Tagged with
0
votes
1answer
44 views

Cron email not sent by sSMTP if job takes > 5 minutes

We have two servers, one of which runs Ubuntu and the other Amazon Linux 2. Both run a series of cron jobs for different clients. The Ubuntu server sends an email (to a group email address) with the ...
0
votes
1answer
44 views

Prevent cron sending error messages

I have cron set to run a task for user pi (on my Raspberry Pi running Raspbian Stretch) every 15 minutes. 6,21,36,51 * * * * /usr/bin/mosquitto_sub -h Pi3Plus.local -v -C 1 -t weather >> ...
1
vote
0answers
151 views

Sending a mail inside a scheduled (cron) shell script does not work

I have a shell script with the following content #!/bin/sh sudo Rscript /home/username/RWD/test.R sudo find /home/username/RWD -type f -name "*.png" -exec /usr/bin/mpack -s "Test Mail" {} my.email@...
-1
votes
1answer
16 views

Find file generated 1 day ago and the name has pattern “performance-team(A/B/C-(yesterday's date)”

Trying to find how to regularly find any file generated 1 day ago and the name has pattern "performance-team(A/B/C)-(yesterday's date)". And then email it to certain mail-address from Tuesday to ...
0
votes
1answer
362 views

Tell guest OS to use my dockerized mail server to send email

I have postfix running in a Docker container. A cronjob try to send email, but reply “(CRON) info (No MTA installed, discarding output)” error in the syslog According to this link, the solution is ...
1
vote
1answer
7k views

How to add subject line when sending email output of find using ssmtp

I got a script running (as cronjob) that will list the files in a folder before doing a Rsync job and emailing me the list. How can I add a subject line. find /path/to/folder/ -type f -size +1M -name ...
2
votes
1answer
2k views

Why cron jobs' output keeps getting written to ~/dead.letter?

I have a job scheduled by cron running every day, and the job is about compressing a folder using tar; and I found that the standard output of tar keeps getting written into ~/dead.letter everyday. ...
15
votes
4answers
51k views

mail: cannot send message: process exited with a non-zero status

I've had a cronjob working for about a fortnight without any problems. Then last night I checked I didn't get the email that I usually get. I went to the terminal to try send myself an email, I got ...