From owner-freebsd-questions Fri Feb 9 17:11:25 2001 Delivered-To: freebsd-questions@freebsd.org Received: from vimfuego.saarinen.org (saarinen.org [203.79.82.14]) by hub.freebsd.org (Postfix) with ESMTP id 9192037B6AC for ; Fri, 9 Feb 2001 17:11:07 -0800 (PST) Received: from vimfuego.saarinen.org ([192.168.1.1] ident=foobar) by vimfuego.saarinen.org with esmtp (Exim 3.20 #1) id 14ROZ3-0002GI-00; Sat, 10 Feb 2001 14:11:01 +1300 Date: Sat, 10 Feb 2001 14:11:01 +1300 (NZDT) From: Juha Saarinen To: Peter Brezny Cc: "freebsd-questions@freebsd.org" Subject: Re: Dump console output sent to mail address possible? In-Reply-To: <003701c092fc$0fb7ede0$46010a0a@sysadmininc.com> Message-ID: X-S: Always MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG How about redirecting 2>&1 | mail -- 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