[osol-discuss] Mail cron messages to email address

2010-03-07 Thread Harry Putnam
Is there a standard sort of way to make cron messages be mailed to an
email address?

crontab will not accept a mailto=s...@address.there

and /etc/default/cron appears to be limited to setting:
  PATH
and 
  CRONLOG.

___
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org


Re: [osol-discuss] Mail cron messages to email address

2010-03-07 Thread Volker A. Brandt
Hello Harry!


 Is there a standard sort of way to make cron messages be mailed to an
 email address?

Not really.  Here's what I do:

shelob:/home/volker,1268# crontab -l
#ident  @(#)root   1.2104/03/23 SMI
#
# The root crontab should be used to perform accounting data collection.
#
[...]
#
# local additions:
10 4 * * * [ -x /root/bin/daily   ]  /root/bin/daily   21 | /usr/bin/mailx 
-s Script 'daily'   volker
10 5 * * 0 [ -x /root/bin/weekly  ]  /root/bin/weekly  21 | /usr/bin/mailx 
-s Script 'weekly'  volker
10 6 1 * * [ -x /root/bin/monthly ]  /root/bin/monthly 21 | /usr/bin/mailx 
-s Script 'monthly' volker


Regards -- Volker
-- 

Volker A. Brandt  Consulting and Support for Sun Solaris
Brandt  Brandt Computer GmbH   WWW: http://www.bb-c.de/
Am Wiesenpfad 6, 53340 Meckenheim Email: v...@bb-c.de
Handelsregister: Amtsgericht Bonn, HRB 10513  Schuhgröße: 45
Geschäftsführer: Rainer J. H. Brandt und Volker A. Brandt
___
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org


Re: [osol-discuss] Mail cron messages to email address

2010-03-07 Thread Bryan Allen
I wrap all my jobs in a program my co-worker wrote:

 http://search.cpan.org/~rjbs/App-Cronjob-1.100080/lib/App/Cronjob.pm
 http://advent.rjbs.manxome.org/2009-12-07.html

Quite handy. :)
-- 
bda
cyberpunk is dead. long live cyberpunk.
___
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org


Re: [osol-discuss] Mail cron messages to email address

2010-03-07 Thread Harry Putnam
Volker A. Brandt v...@bb-c.de writes:

 Not really.  Here's what I do:

[...]

 10 4 * * * [ -x /root/bin/daily   ]  /root/bin/daily   21 | \
  /usr/bin/mailx -s Script 'daily'

[...]

I was hoping to avoid having to do that... but yeah.. I guess thats'
what I need to do.

___
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org