Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 10 Feb 2001 08:52:38 -0800
From:      "DINKEY,GENE (HP-Loveland,ex1)" <gene_dinkey@hp.com>
To:        "'Juha Saarinen'" <juha@saarinen.org>, Peter Brezny <peter@sysadmin-inc.com>
Cc:        freebsd-questions@freebsd.org
Subject:   RE: Dump console output sent to mail address possible?
Message-ID:  <F341E03C8ED6D311805E00902761278C531572@xfc04.fc.hp.com>

next in thread | raw e-mail | index | archive | help
Actually IIRC wouldn't it be 

mail <address> < <script>  ?


Gene Dinkey
Hewlett Packard Customer Care
TCD - PA-RISC based workstations


> -----Original Message-----
> From: Juha Saarinen [mailto:juha@saarinen.org]
> Sent: Friday, February 09, 2001 6:11 PM
> To: Peter Brezny
> Cc: freebsd-questions@freebsd.org
> Subject: Re: Dump console output sent to mail address possible?
> 
> 
> 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
> 


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?F341E03C8ED6D311805E00902761278C531572>