From owner-freebsd-questions Mon Jul 13 17:59:29 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id RAA20238 for freebsd-questions-outgoing; Mon, 13 Jul 1998 17:59:29 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from lucy.bedford.net (lucy.bedford.net [206.99.145.54]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id RAA20233 for ; Mon, 13 Jul 1998 17:59:25 -0700 (PDT) (envelope-from listread@lucy.bedford.net) Received: (from listread@localhost) by lucy.bedford.net (8.8.8/8.8.8) id UAA03152; Mon, 13 Jul 1998 20:59:17 -0400 (EDT) (envelope-from listread) Message-Id: <199807140059.UAA03152@lucy.bedford.net> Subject: Re: /etc/crontab In-Reply-To: from "elmore@sohopros.com" at "Jul 13, 98 06:08:33 pm" To: elmore@sohopros.com Date: Mon, 13 Jul 1998 20:59:17 -0400 (EDT) Cc: questions@FreeBSD.ORG X-no-archive: yes Reply-to: djv@bedford.net From: CyberPeasant X-Mailer: ELM [version 2.4ME+ PL38 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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