OK in a new Red Hat 8.0 we test crond , crontab, etc and all is ok, bat in another one Red Hat 8.0 whith the same installation, hardware etc dont work.
-----Mensaje original----- De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] nombre de Javier Gostling Enviado el: jueves, 03 de julio de 2003 15:20 Para: [EMAIL PROTECTED] Asunto: Re: Red Hat 8.0 dont work mail at crontab On Thu, Jul 03, 2003 at 11:40:49AM +0200, Vicente Calero wrote: > At all versions before /red Hat 4.2 5.1 6.2 etc, when crontab run any > command send a mail to de user, if user of crontab is root send to > /var/spool/mail/root, so we can edit and show all about command executed. > Now we are install Red Hat 8.0 and crontab only send mail if there are any > error at run command. Crond send all output from the program over e-mail. That has been so since before I even knew UNIX existed. > > Example 1: run cp > > crontab -e > > 20 * * * * * cp /root/install.log /root/install.log.copy > > run ok the copy but dont send nothig to /var/spool/mail/root Exactly, because cp does not print anything when it runs (unless there is an error). Try adding the -v option to cp and you will get some output on e-mail. > > Example 2: run cpp (this command dont exist) > > crontab -e > > 20 * * * * * cprr /root/install.log /root/install.log.copy > > dont run the command and send to /var/spool/mail/root telling this command > dont exist. Correct as well, since cprr does not exist. Crond e-mails bot stdout and stderr. > > Please Send me any solution, because we use crontab an mail to backup > filesystems an show all is ok abount backup. And just as a suggestion, do your tests as a regular user instead of as root. It's safer. Cheers, -- Javier Gostling D. <[EMAIL PROTECTED]> -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list