Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 Jul 1998 20:59:17 -0400 (EDT)
From:      CyberPeasant <djv@bedford.net>
To:        elmore@sohopros.com
Cc:        questions@FreeBSD.ORG
Subject:   Re: /etc/crontab
Message-ID:  <199807140059.UAA03152@lucy.bedford.net>
In-Reply-To: <XFMail.980713181249.elmore@sohopros.com> from "elmore@sohopros.com" at "Jul 13, 98 06:08:33 pm"

next in thread | previous in thread | raw e-mail | index | archive | help
elmore@sohopros.com wrote:
> In /etc/crontab what do this mean?
> 
> 2>&1 | mail root
> 
> I know that | mail root means mail something 
> to root but I don't know what the 2>&1 means.

this is sh syntax for "Redirect file descritor 2 to wherever f.d. 1 is".
In other words, put stderr to the same stream as stdout.

| mail root 

then mail that to root.

Dave
-- 
Sancho Panza: `Microsoft Windows NT Server is the most secure network 
	operating system available.'
Don Quixote: `You are mistaken, Sancho.'

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?199807140059.UAA03152>