*BSD News Article 63884


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.rmit.EDU.AU!news.unimelb.EDU.AU!munnari.OZ.AU!news.ecn.uoknor.edu!news.ysu.edu!news.cps.udayton.edu!news.engr.udayton.edu!blackbird.afit.af.mil!zombie.ncsc.mil!news.mathworks.com!newsfeed.internetmci.com!in1.uu.net!daver!news.walltech.com!cyberstation.net!usenet
From: Scott Hanes <istrbitl@cyberstation.net>
Newsgroups: comp.unix.questions,comp.unix.bsd.misc,comp.unix.bsd.bsdi.misc
Subject: stderr redirection with BSD Unix
Date: Wed, 20 Mar 1996 07:21:08 -0600
Organization: CyberStation, Inc
Lines: 17
Message-ID: <31500644.37A7@cyberstation.net>
NNTP-Posting-Host: istrbitl.cyberstation.net
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Mailer: Mozilla 2.0GoldB1 (Win95; I)
Xref: euryale.cc.adfa.oz.au comp.unix.questions:79005 comp.unix.bsd.misc:564 comp.unix.bsd.bsdi.misc:2706

Hi,

	I've been trying to redirect stderr in BSD/OS 2.0.1 using System 
V manuals. :(  No dice.  System V says to use  '>' for stdout redirect 
(and stdin redirect to be accurate) and '2>' for stderr redirect.
	I tried this in BSD unix and it doesn't seem to work. I tried
		find / -name <filename> -print > found.txt 2> /dev/null
  trying to get just what I want without all of the :permission denied
error messages. When I do so, the message I get is:
		find: 2: unknown option.

	I'm not putting a space between 2 and > It just doen't seem to 
be the correct way to redirect stderr in BSD Unix.. Any ideas what IS 
the right way??

Much thanks,
Scott