Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 29 Jan 2001 17:43:16 -0600
From:      Lucas Bergman <lucas@slb.to>
To:        Peter Brezny <peter@sysadmin-inc.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: piping dump output to mail user.
Message-ID:  <20010129174316.I17961@billygoat.slb.to>
In-Reply-To: <000001c08a48$492ae440$46010a0a@sysadmininc.com>; from peter@sysadmin-inc.com on Mon, Jan 29, 2001 at 06:07:42PM -0500
References:  <000001c08a48$492ae440$46010a0a@sysadmininc.com>

next in thread | previous in thread | raw e-mail | index | archive | help
> I was hoping to be able to mail what dump would normally output to
> the screen with a command like this in crontab
> 
> dump (variables) | mail peter@sysadmin-inc.com
> 
> Although the dumps run, I don't get anything in the mail.

Maybe the output is going to stderr instead of stdout?  Try

  # dump blah blah 2>&1 | mail whomever

Also, check crontab(5) and read about the MAILTO variable.

Lucas


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?20010129174316.I17961>