tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: Alex_Nord () Jabil ! com
To: tru64-unix-managers
Subject: [SUMMARY] Subject field in mail from cron jobs
Date: Tue, 10 Feb 1998 18:30:27 +0000	[thread overview]
Message-ID: <96078694111241.tru64-unix-managers.marc@archive.invalid> (raw)

	Most people suggested the same thing : use mailx (or Mail) with
the -s option to include a subject, but Bill David provided the complete
syntax (to re-direct stdout as well as stderr from the crontab file)
similar to :

5 2 * * * /usr/local/bin/nightly.backup 2>&1  | /usr/bin/Mail -s
"Nightly Backup Output" Alex_Nord@jabil.com

	What I was specifically searching for was a way to modify cron's
beavior when sending mail, but a few people indicated they didn't think
it was possible.  So, it looks like I'll go with this as the next best
thing!  Thanks everybody!

> -----Original Message-----
> From:	Alex_Nord@Jabil.com [SMTP:Alex_Nord@Jabil.com]
> Sent:	Tuesday, February 10, 1998 12:00 PM
> To:	alpha-osf-managers@ornl.gov
> Subject:	[Q:] Subject field in mail from cron jobs
> 
> 	Is there a way to set the subject field in mail messages that
> are sent as the result of cron jobs?  I have tried adding something
> like
> the following :
> echo "Subject: Nightly Backup Output"
> as the first line in the script (which works on some other versions of
> Unix), but it just ends up as the first line of the body of the
> message.
> Any insight on how to get this to work properly?  I am running DU 4.0
> with no major patches.
> 
> Alex Nord
> UNIX Systems Admin.
> Jabil Circuit, Inc.
> alex_nord@jabil.com

                 reply	other threads:[~1998-02-10 18:30 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
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