After moving from Mandriva 2011 to Mageia 3 I have a minor annoyance
with CRON output. The script below should provide 3 outputs (numbered
in the comments), but only the 2nd and 3rd arrive in my mail. 

In fact, any output from the cron job itself disappears.

Any suggestions where to look?

Here's my test script
=================
#!/bin/sh
## aaaa-test - is a CRON working?
## output #1 - test the echo command 
echo "this is a test of the echo command in a CRON job" 
## output #2 - mail to solomon 
echo "aaaa-test mail to solomon" | mail -s "aaaa-test solomon" solomon 
## output #3 - mail to root 
echo "aaaa-test mail to root" | mail -s "aaaa-test root" root 


And here are the first few lines of /etc/crontab
==============================
SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
## tried MAILTO=solmon or  MAILTO=root but don't get mail from jobs
MAILTO=solomon
##MAILTO=root
HOME=/
# run-parts
01 * * * * root nice -n 19 run-parts /etc/cron.hourly


-- 
Shlomo Solomon
http://the-solomons.net
Sent by Claws Mail 3.9.0 - KDE 4.10.2 - LINUX Mageia 3


_______________________________________________
Linux-il mailing list
[email protected]
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il

Reply via email to