🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: csu.unix.linux
Article #13

Re: Crontab errror

#13
From: Mike Loseke
Date: Fri, 11 Sep 1998 00:00
29 lines
1941 bytes
Thus spake <carheden@holly.colostate.edu>:
>What about STDIN?  1 is STDOUT, 2 is STDERR, is there a STDIN?  If so,
>could you give me an example of it's use? (Maybe something analogous to
>DOS's copy con <filename> command, or would 'con' [short for console if
>you don't use dos much] be replaced with /dev/keyboard or something?)

 STDIN is always determined by the direction of a pipe or redirection,
unless the man page for the command explicitly states that it uses a
character (like - for cpio or tar) to denote STDIN.

 For instance:

$ tar cvf - files | rsh remotemachine "cd dir; tar xvf -"

 In this case, the "-" is referring to STDOUT the first time it is used
and STDIN the second.

 Something analogous to "copy con <filename>" would be:

$ cat > file
foo
bar
^C

 Then file would contain the two lines typed in.

-- 
   Mike Loseke    | Users are simply nature's way of
 mike@verinet.com | keeping me from hogging the processor.
Technical Details
Message-ID: <6tblm0$8g7$1@bamboo.verinet.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <35F010FF.F76B604B@holly.colostate.edu> <35F5BBA3.C11366BD@holly.colostate.edu> <6t5039$vr9$1@bamboo.verinet.com> <35F8122A.87EE20B1@holly.colostate.edu>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 148df6,2fc132920a18f170
X-Google-Attributes: gid148df6,public
X-Google-Thread: 117ddd,2fc132920a18f170
X-Google-Attributes: gid117ddd,public
X-Google-Thread: 1159f7,2fc132920a18f170
X-Google-Attributes: gid1159f7,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/11
Message-ID: <6tblm0$8g7$1@bamboo.verinet.com>
X-Deja-AN: 390169065
References: <35F010FF.F76B604B@holly.colostate.edu> <35F5BBA3.C11366BD@holly.colostate.edu> <6t5039$vr9$1@bamboo.verinet.com> <35F8122A.87EE20B1@holly.colostate.edu>
X-Complaints-To: usenet@cactus.verinet.com
X-Trace: cactus.verinet.com 905533953 21526 204.144.246.3 (11 Sep 1998 17:12:33 GMT)
Organization: Disco Pants and Haircuts
NNTP-Posting-Date: 11 Sep 1998 17:12:33 GMT
Newsgroups: csu.unix.linux,csu.cs,csu.unix,csu.cs.systems