Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 Feb 1998 19:29:06 -0800 (PST)
From:      Dan Busarow <dan@dpcsys.com>
To:        Spike Gronim <spork@cncn.com>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Cron script. 
Message-ID:  <Pine.UW2.3.95.980223192306.11146A-100000@cedb>
In-Reply-To: <Pine.BSF.3.96.980223221746.18936A-100000@mental>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 23 Feb 1998, Spike Gronim wrote:
> I want it to go to /dev/null, not get mailed to me. I have tried using >,
> >&,>>&, and >> and none work. How do I do this?

	.../pop > /dev/null 2>&1

is the sh equivilent of >&.  Much more flexible though.  The first
> redirects stdout (fd 1) to /dev/null, the 2>&1 dups fd 2 (stderr)
from fd 1

Dan
-- 
 Dan Busarow                                                  714 443 4172
 DPC Systems / Beach.Net                                    dan@dpcsys.com
 Dana Point, California  83 09 EF 59 E0 11 89 B4   8D 09 DB FD E1 DD 0C 82


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?Pine.UW2.3.95.980223192306.11146A-100000>