Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
From: peter@abbnm.com (Peter da Silva)
Subject: Re: cron: mail with subject?
Date: 9 Apr 2002 19:36:42 GMT	[thread overview]
Message-ID: <a8vfsa$658@web.eng.baileynm.com> (raw)
In-Reply-To: 0rn0wmxgdk.fsf@display.hmi.de

In article <0rn0wmxgdk.fsf@display.hmi.de>,
Thomas Anders  <anders@hmi.de> 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?


  parent reply	other threads:[~2002-04-09 19:36 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-04-02 15:35 cron: mail with subject? Thomas Anders
2002-04-04 11:37 ` Thomas Voegeli
2002-04-08  9:19   ` Thomas Anders
2002-04-09 19:36 ` Peter da Silva [this message]
2002-04-18  9:09   ` Thomas Anders
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox