From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,da373674f918a272 X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2002-04-09 12:52:20 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-proxy.baileynm.com!web.eng.baileynm.com!not-for-mail From: peter@abbnm.com (Peter da Silva) Newsgroups: comp.unix.tru64 Subject: Re: cron: mail with subject? Date: 9 Apr 2002 19:36:42 GMT Organization: Engineering Netwrk Support, ABBNM Message-ID: References: <0rn0wmxgdk.fsf@display.hmi.de> NNTP-Posting-Host: grendel.eng.baileynm.com Xref: archiver1.google.com comp.unix.tru64:7238 In article <0rn0wmxgdk.fsf@display.hmi.de>, Thomas Anders wrote: > Unfortunately the output of a cron job gets mailed with an empty > subject line by default. Is there a way to globally change this > behaviour in Tru64 Unix 5.1A without doing a "mailx -s" (or similar) > in every single cron job? Two solutions: 1. Cron sends mail by calling /usr/bin/mail explicitly. Rename that to /usr/bin/mail.real and create a new "/usr/bin/mail" that looks for the line "Cron: The previous message is the standard output" and does whatever it is you want instead. 2. Replace cron with one of the Open Source versions, such as this one: http://freshmeat.net/projects/dcron/?topic_id=141 and you can change its behaviour any way you want. -- `-_-' In hoc signo hack, Peter da Silva. 'U` "A well-rounded geek should be able to geek about anything." -- nicolai@esperi.org Disclaimer: WWFD?