From owner-freebsd-questions Wed Mar 19 9:33:13 2003 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 64CC637B401 for ; Wed, 19 Mar 2003 09:33:11 -0800 (PST) Received: from relay1.ntu-kpi.kiev.ua (oberon.ntu-kpi.kiev.ua [195.245.194.35]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9869643F93 for ; Wed, 19 Mar 2003 09:33:09 -0800 (PST) (envelope-from nikolay@asu.ntu-kpi.kiev.ua) Received: by relay1.ntu-kpi.kiev.ua (Postfix, from userid 426) id DE86719914; Wed, 19 Mar 2003 19:33:06 +0200 (EET) Received: from onyx.asu.ntu-kpi.kiev.ua (eth0.onyx.asu.ntu-kpi.kiev.ua [10.18.16.2]) by relay1.ntu-kpi.kiev.ua (Postfix) with ESMTP id 504B219907 for ; Wed, 19 Mar 2003 19:33:06 +0200 (EET) Received: from drweb by onyx.asu.ntu-kpi.kiev.ua with drweb-scanned (Exim 4.10) id 18vhR4-0000BC-00 for freebsd-questions@freebsd.org; Wed, 19 Mar 2003 19:33:06 +0200 Received: from nikolay by onyx.asu.ntu-kpi.kiev.ua with local (Exim 4.10) id 18vhR4-0000B6-00 for freebsd-questions@freebsd.org; Wed, 19 Mar 2003 19:33:06 +0200 Date: Wed, 19 Mar 2003 19:33:06 +0200 From: "Nikolay Y. Orlyuk" To: freebsd-questions@freebsd.org Subject: Re: can't pipe to /dev/null ? Message-ID: <20030319173306.GB99728@asu.ntu-kpi.kiev.ua> Mail-Followup-To: freebsd-questions@freebsd.org References: <5.2.0.9.0.20030319111153.02415060@mail.go2france.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <5.2.0.9.0.20030319111153.02415060@mail.go2france.com> User-Agent: Mutt/1.5.1i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wed, Mar 19, 2003 at 11:20:35AM -0600, Len Conrad wrote: > in /etc/aliases: > > devnull: |/dev/null > > and: > > # ll /dev/null > crw-rw-rw- 1 root wheel 2, 2 Mar 19 11:13 /dev/null > > but: > > Mar 19 10:55:08 img10 postfix/local[41744]: 671235621: > to=, relay=local, delay=1, status=bounced (Command > died with status 1: "/dev/null") > > ... is fixed with: > > devnull: |cat>/dev/null > > .... which gives: > > Mar 19 11:13:51 img10 postfix/local[43231]: E5C4A5623: > to=, relay=local, delay=0, status=sent (delivered to > command: cat) > > Mar 19 11:13:51 img10 postfix/local[43231]: E5C4A5623: > to=, relay=local, delay=0, status=sent (delivered to > file: /dev/null) > > Piping into /dev/null has worked in the past, wondering why the cat command > has become necessary? Maybe because is match piping to program not file? I think variant with cat is better, if you want without it better will be devnull: /dev/null > > -- With best wishes Nikolay mail: nikolay@asu.ntu-kpi.kiev.ua To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message