Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 10 Feb 2001 14:11:01 +1300 (NZDT)
From:      Juha Saarinen <juha@saarinen.org>
To:        Peter Brezny <peter@sysadmin-inc.com>
Cc:        "freebsd-questions@freebsd.org" <freebsd-questions@freebsd.org>
Subject:   Re: Dump console output sent to mail address possible?
Message-ID:  <Pine.LNX.4.31.0102101402510.18331-100000@vimfuego.saarinen.org>
In-Reply-To: <003701c092fc$0fb7ede0$46010a0a@sysadmininc.com>

next in thread | previous in thread | raw e-mail | index | archive | help
How about redirecting 2>&1 | mail <email-address>

-- 
Regards,


Juha

PGP fingerprint:
B7E1 CC52 5FCA 9756 B502  10C8 4CD8 B066 12F3 9544

On Fri, 9 Feb 2001, Peter Brezny wrote:

> I've got a script executed by cron that runs a dump command:
>
> dump -1ua -f /bkup/`date +%y%m`-bkup/incr.`date +%y%m%d`.root.bkup /
>
> Which I like, but I'd like dump to send what it normally puts on the console
> to me via e-mail.
>
> i tried adding | mail peter@sysadmin-inc.com
>
> but this only sends a blank message.  how can i convince it to send the
> output from the dump program.
>
>
> TIA
>
> Peter Brezny
> SysAdmin Services Inc.
>
>
>
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-questions" in the body of the message
>
>





To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.LNX.4.31.0102101402510.18331-100000>