RE: Email inside cron

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Here's the cron entry:

0 4 * * 1-5 /home/sybase/scripts/migr_status.csh

The script runs fine every day, it just does not send the email at the end. 

-----Original Message-----
From: redhat-list-bounces@xxxxxxxxxx [mailto:redhat-list-bounces@xxxxxxxxxx] On Behalf Of Manuel Arostegui Ramirez
Sent: Friday, August 20, 2004 10:44 AM
To: General Red Hat Linux discussion list
Subject: Re: Email inside cron

 --- "Silva, Germano" <Germano_Silva@xxxxxxxxx>
escribió: 
> Hi,
>  
> I have a Cshell script that does a whole bunch of
> stuff and as it is
> doing stuff, it writes status data to a log file. At
> the end of the
> script I email the contents of the log file to me
> email address as
> follow:
>  
> /bin/mail -s "${MsgHeader} finished." ${MailTo}
> <${logfile}
>  
> This works fine when I run the script interactively,
> but no email is
> sent when I run ut as a cron job.
>  
> Any ideas why?
>  
> Thanks
>  

Can you tell us what's the exactly line you've put on
/etc/crontab?
Maybe you're missing something

Cheers

=====
--

Manuel Aróstegui Linux user 200896
http://manuel.todo-linux.com


		
______________________________________________
Renovamos el Correo Yahoo!: ¡100 MB GRATIS!
Nuevos servicios, más seguridad
http://correo.yahoo.es


-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list



-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux