🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: csu.unix.linux
Article #11

Re: Crontab errror

#11
From: Mike Loseke
Date: Tue, 08 Sep 1998 00:00
28 lines
2306 bytes
Thus spake <carheden@holly.colostate.edu>:
>> 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.
>
>I was just wondering if STDOUT could be used like a device, but you were

 STDOUT and STDERR are shell conventions and exist seperately from
devices, although they can interact with them.

>right, I checked and there is no such thing.  The 1 and 2 seem confusing
>though.  How and when are they used other than redirection?  When do I
>need the &?

 They are pretty much just used for STDIN and STDOUT redirection. I can't
think of another place where it would be used, off the top of my head.

 Honestly, without digging through a stack of books or searching the net
like crazy, I can't remember where they come from either. I've always
just used them somewhat interchangeably within shells and scripts. Where,
specifically, the 1 and 2 linked up with STDOUT and STDERR respectively,
I couldn't say. As far as use of the & goes, in this case I think it's
used like an escape character so that a file isn't created, which would
be the default from the ">" redirect.

-- 
   Mike Loseke    | Users are simply nature's way of
 mike@verinet.com | keeping me from hogging the processor.
Technical Details
Message-ID: <6t5039$vr9$1@bamboo.verinet.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <35F010FF.F76B604B@holly.colostate.edu> <35F54B19.A4742CB7@holly.colostate.edu> <6t3kr5$345$1@bamboo.verinet.com> <35F5BBA3.C11366BD@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: 153cb4,2fc132920a18f170
X-Google-Attributes: gid153cb4,public
X-Google-Thread: 117ddd,2fc132920a18f170
X-Google-Attributes: gid117ddd,public
X-Google-Thread: 148df6,2fc132920a18f170
X-Google-Attributes: gid148df6,public
From: mike@bamboo.verinet.com (Mike Loseke)
Subject: Re: Crontab errror
Date: 1998/09/08
Message-ID: <6t5039$vr9$1@bamboo.verinet.com>
X-Deja-AN: 389276475
References: <35F010FF.F76B604B@holly.colostate.edu> <35F54B19.A4742CB7@holly.colostate.edu> <6t3kr5$345$1@bamboo.verinet.com> <35F5BBA3.C11366BD@holly.colostate.edu>
X-Complaints-To: usenet@cactus.verinet.com
X-Trace: cactus.verinet.com 905315242 15986 204.144.246.3 (9 Sep 1998 04:27:22 GMT)
Organization: Disco Pants and Haircuts
NNTP-Posting-Date: 9 Sep 1998 04:27:22 GMT
Newsgroups: csu.unix.linux,csu.cs,csu.unix,csu.cs.systems