🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: csu.unix.linux
Article #9

Re: Crontab errror

#9
From: Mike Loseke
Date: Tue, 08 Sep 1998 00:00
14 lines
1655 bytes
Thus spake <carheden@holly.colostate.edu>:
>Right, 1 is stdout and 2 is stderr.  What does 2>&1 do, route stderr to
>stdout (& tells it 1 is stdout not a file called 1, right?)?  Could I
>also use /dev/stdout>/dev/null?

 2>&1 redirects STDERR to STDOUT. Since STDOUT is already being directed
to /dev/null, by 1>/dev/null, anything also redirected to STDOUT will
then go to /dev/null. I've never seen "/dev/stdout>/dev/null" so I
couldn't say. It certainly isn't portable. If you leave out the "&"
on 2>&1, you get a file called "1" with STDERR output in it.

-- 
   Mike Loseke    | Users are simply nature's way of
 mike@verinet.com | keeping me from hogging the processor.
Technical Details
Message-ID: <6t3kr5$345$1@bamboo.verinet.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <35F010FF.F76B604B@holly.colostate.edu> <35F2B6CC.969A402@holly.colostate.edu> <6svuv0$snn$1@bamboo.verinet.com> <35F54B19.A4742CB7@holly.colostate.edu>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1159f7,2fc132920a18f170
X-Google-Attributes: gid1159f7,public
X-Google-Thread: 117ddd,2fc132920a18f170
X-Google-Attributes: gid117ddd,public
X-Google-Thread: 148df6,2fc132920a18f170
X-Google-Attributes: gid148df6,public
X-Google-Thread: 153cb4,2fc132920a18f170
X-Google-Attributes: gid153cb4,public
From: mike@bamboo.verinet.com (Mike Loseke)
Subject: Re: Crontab errror
Date: 1998/09/08
Message-ID: <6t3kr5$345$1@bamboo.verinet.com>
X-Deja-AN: 389066724
References: <35F010FF.F76B604B@holly.colostate.edu> <35F2B6CC.969A402@holly.colostate.edu> <6svuv0$snn$1@bamboo.verinet.com> <35F54B19.A4742CB7@holly.colostate.edu>
X-Complaints-To: usenet@cactus.verinet.com
X-Trace: cactus.verinet.com 905270950 8195 204.144.246.3 (8 Sep 1998 16:09:10 GMT)
Organization: Disco Pants and Haircuts
NNTP-Posting-Date: 8 Sep 1998 16:09:10 GMT
Newsgroups: csu.unix.linux,csu.cs,csu.unix,csu.cs.systems