HDTenEightyP/NetNews huggingface dataset:
From: dylan@ibmpcug.co.uk (Matthew Farwell)
Subject: Re: csh and redirect of stderr
Organization: The IBM PC User Group, UK.
Date: Tue, 18 Aug 1992 18:49:06 GMT
Keywords: csh, stderr

In article <1992Aug18.115253.10164@neptune.inf.ethz.ch> weingart@inf.ethz.ch writes:
>Ok, I though me a wiz, and now here I am stuck.  Well, theoretically
>I could pull down the sources, and read/muck about, but I simply
>don't have the time/patience/space to do that right now.
>
>If some kind soul could email me how to do the following in
>csh, I would be gratefull.
>
>./someprog foobar 2>/tmp/stderr-out 1>/tmp/stdout-out

This is how you do it in csh.

sh -c "./someprog foobar 2>/tmp/stderr-out 1>/tmp/stdout-out"

>Somehow, >& does not seem to do it.... ;-}

No it doesn't do it.  You can't do it in csh.  Full stop.  You could try
reading the FAQ for comp.unix.questions, specifically question 2.9
which, as it happens is entitled - This is not a flame btw:

9)  How do I redirect stdout and stderr separately in csh?

    In csh, you can redirect stdout with ">", or stdout and stderr
    together with ">&" but there is no direct way to redirect
    stderr only.  The best you can do is

        ( command >stdout_file ) >&stderr_file

    which runs "command" in a subshell;  stdout is redirected inside
    the subshell to stdout_file, and both stdout and stderr from the
    subshell are redirected to stderr_file, but by this point stdout
    has already been redirected so only stderr actually winds up in
    stderr_file.

    Sometimes it's easier to let sh do the work for you.

	sh -c 'command >stdout_file 2>stderr_file'

Dylan.
Newsgroups: comp.unix.questions
From: ae2@cunixa.cc.columbia.edu (Amiran Eliashvili)
Subject: NFS bugs
Reply-To: ae2@cunixa.cc.columbia.edu (Amiran Eliashvili)
Organization: Columbia University
Date: Wed, 19 Aug 1992 04:19:20 GMT


Hi all:


I was wondering if there is a list of NFS related bugs and
deficiencies compiled somewhere on the net. If not, I would welcome any
input about this from anyone that has unraveled NFS bugs in the past
and would like to share it on the net.

Thanks.
/amiran



Newsgroups: comp.unix.questions
From: dcb@kopachuk.uucp (David Breneman)
Subject: Re: Fun with sed!!!! [nothing better to do on Saturday night]
Organization: Tacoma Screw Products, Inc.
Date: Mon, 10 Aug 1992 19:28:53 GMT

In article <1992Aug2.152356.7333@news.acns.nwu.edu> navarra@casbah.acns.nwu.edu (John Navarra) writes:
>
>
>For today's sed problem let us go all the way back to early grade school
>where we heard the famous rule:
>
>'I' before "E" except after "C".
>
>This is the rule I want to implement in sed. So far, here is my progress:

Process deleted...

>Wonderful, Wonderful! I needed to misspell words in order to correct
>other words, then change all the misspelled words back in addition to
>other misspelled words just like them!  

When you get up, you can try adding the second half of the rule:

"...or sounding like "A" as in neighbor or weigh."

Be sure to post your solution. :-)

-- 
David Breneman     Sys Admin, Tacoma Screw Products, Inc. |  ____  ____  ____
dcb@tacoma.uucp           |   SCREWIE the TSP CLOWN sez-  |   /   /___  /___/ 
 ..!uunet!tacoma!dcb      |  "Nylok lock nuts lose their  |  /   ____/ / 
CompuServe: 75760,1232    | binding strength after 1 use!"|
Newsgroups: comp.unix.questions
From: navarra@casbah.acns.nwu.edu (John Navarra)
Subject: Passing shell variable in if statement in awk
Organization: Northwestern University, Evanston Illinois.
Date: Fri, 21 Aug 1992 11:45:03 GMT

I have written the following awk script called extract which prints
out the lines of text in a file between pattern1 and pattern2 where
the pattern is specified on the command line. Here is the script:

#!/bin/sh
# extract [-n] pattern1 pattern2 < filename
# awk script which prints out block of information between pattern1 and
# pattern2 in a file. If pattern2 is not specified, it prints from the 
# first pattern to the end of file. The -n option will print out the
# line numbers of the file between the two patterns. 

if [ "$1" = "-n" ] 
   then  shownumbers=yes
	 shift; pattern1=$1; pattern2=${2:-NF} 
   else 
         pattern1=$1; pattern2=${2:-NF}
fi
          
awk '
/'"$pattern1"'/,/'"$pattern2"'/ {
    if ( '"$shownumbers"' )
    printf("[%d] \t %s \n", NR, $0)
    else
    printf("%s\n",$0)
}' -

	I am having trouble passing the 'shownumbers' variable into the
awk script. I want to test if it exists or not. If extract is called with
the -n option, the line numbers for the file are printed in addition to
the line themselves (like grep -n ). If the -n is called, I set shownumbers
to yes. However, it does not pass through to the awk script for some
reason that I can't understand. What am I doing wrong?

-tms 

-- 
From the Lab of the MaD ScIenTiST:
					
navarra@casbah.acns.nwu.edu
From: asoper@wyvern.twuug.com (Aubrey Soper)
Newsgroups: comp.unix.questions
Subject: Re: vi (cut and paste)
Keywords: vi
Date: 18 Aug 92 20:34:41 GMT
Organization: Tidewater UNIX Users Group

phd85@seq1.keele.ac.uk (D.H. Holden) writes:


> hi, 
>    Does anyone know how you cut a range of text to one
>   
>    of the named buffers, where the range does not cover
> 
>   an integer number of lines, i.e., 

>  How do i cut from here > text  text text ..........

>  ............... n number of lines .....

> ...... to here <  into the named buffer "a for example?

>    Cheers,

>              Dave.

"ad/<

should do it.  You can also mark the end and delete to
that mark.  I'd recommend that you get a book on vi, such
as UNIX Text Processing by Hayden Books.  With only the
UNIX docs, you'll probably wind up hating vi...

aubrey soper
Newsgroups: comp.unix.questions
From: shin-jungshik@CS.YALE.EDU (Jungshik Shin)
Subject: 'host' program source wanted
Organization: Yale University
Date: Sun, 16 Aug 1992 19:14:48 GMT

  I'd like to get source code of 'host' program(HOST lookup command). My
site has only 'nslookup' and it's kind of more inconvenient than 'host' that I
used before.  Would you please send me source of 'host' program to me,
jshin@minerva.cis.yale.edu if it's in public domain. My host is SUN Sparcs
Station II (SUN 4/80).    

  I'm afraid this is one of FAQ's. Please excuse me if that's the case or
this group is not appropriate for this question. (I could not find FAQ
file)

   Thank you very much in advance.
From: ssoni@cs.colgate.edu
Newsgroups: comp.unix.questions
Subject: mail to bitnet
Date: 19 Aug 92 00:34:15 GMT

how do i send mail to a bitnet address if i'm on telnet?
is this the right place for this? if not, sorry

ANY help and/or info will be greatly appreciated!!


Thanks,Sidd
ssoni@csnext.colgate.edu
From: shc@lhdsy1.lahabra.chevron.com (S.H. Couturie)
Newsgroups: comp.unix.questions
Subject: Re: Exabyte (8mm) vs. DAT (4mm), advice needed
Date: 13 Aug 92 16:58:23 GMT
Organization: Chevron, LaHabra, CA

In article <1992Aug10.191729.3124@kopachuk.uucp> dcb@kopachuk.uucp (David Breneman) writes:
>In article <1992Jul31.001931.3829@bnd2.bnd.oz.au> johnw@bnd2.bnd.oz.au (John Warburton) writes:
>>
>>This __never__, NEVER fails to amaze me. That people would skimp an extra $20
>>per tape & put their only course for recovery onto non-data certified tapes.
>>You are getting huge amounts of data onto one tape & if that tape dies & so do
>>the disks, start looking for another job...
>>
>When we got our 8mm drive (1988) there was no such thing as data certified
>tapes.  We used regular video tapes and retired them after 25 passes
>(the standard guide for broadcast video tape).  Never had any
>trouble.  Now that they are available, I'd probably go with the data
>tapes (our drive has been disconnected for about 1-1/2 years - I gotta
>get that thing hooked back up! :-) ) but we used video tapes for two
>years with no trouble.
>

I strongly recommend that the data grade tapes be used with the 8500
drives.

We have 2 8500 drives on our Epoch-1 used very heavily for backups every 
night.  Before this January, they were 8200's; with the 8200's, the 
video grade tapes worked fine -- we never had any trouble writing or reading
any tapes.

After upgrading to the 8500's -- to get 5GB per tape -- and not incidentally
adding 10i robots as well, we found increasing numbers of hard and soft 
tape errors being reported (either explicitly, or just observed from 
very slow write speeds -- induced by error-rewrite-error-rewrite cycles).
Note that we never had any problems reading any tape once written.

We have converted to all data-grade tapes (well, Sony QG -- Computer Grade),
and have seen the error incidence drop to essentially zero.  This 
significantly improves our tape write speed, and the system reliability
as well.

We shopped around for tape prices; we found a distributor for the QG's 
with a $15/tape, quantity 10, price.  Since we were paying $6/tape for
the video grades, it is a hit, but certainly not too bad, all things
considered.

Steve
--
Steve Couturie                      Voice:     (310) 694-9332	
Chevron Information Technology Co.  FAX:       (310) 694-7709
P.O. Box  446                       Internet:  shc@chevron.com
La Habra, CA  90633-0446            UUCP:      ...!uunet!lhdsy1!shc
From: walter@mecky.rent-a-guru.de (Walter Mecky)
Newsgroups: comp.unix.questions
Subject: Is there a kermit with sliding windows?
Date: 12 Aug 92 20:47:59 GMT
Reply-To: walter@rent-a-guru.de (Walter Mecky)
Organization: RENT-A-GURU (tm), Buettelborn; FR Germany

I am looking for a UNIX kermit which has the feature of sliding windows
(like uucp). The newest version I have is 4E(072) which does not. But
my Dell SVR4 has such a version, but only in binary form. 

Question: Does such a kermit version exist, what is the number and where
can I get it?

Thanks all who answer.

-- 
   __o  	Walter Mecky
 _ \<,_ 	walter@rent-a-guru.de	or  ...uunet!unido!mikros!walter
(_)/ (_)        Phone: +49 6152 40813
Newsgroups: comp.unix.questions
From: navarra@casbah.acns.nwu.edu (John Navarra)
Subject: Re: Associative arrays in [gn]awk --whynot! (long but interesting)
Organization: Northwestern University, Evanston Illinois.
Date: Sat, 22 Aug 1992 03:44:37 GMT

In article <1992Aug22.032705.6993@news.acns.nwu.edu> navarra@casbah.acns.nwu.edu (John Navarra) writes:
>
>        3) Nawk, gawk, and awk all print out associative arrays in 
>           different screwed ways. Although each is predictable, none
>           of them work properly. Obviously, most of you responding
>           to this message know that they don't work right -- but know
>           also, that they do not work differently. 
>         
	That last line should read "that they do not work, differently"
meaning that none of them work AND they all don't work differently. Is
that clear enough?

-tms
-- 
From the Lab of the MaD ScIenTiST:
					
navarra@casbah.acns.nwu.edu
From: cxk6819@hertz.njit.edu (K. Chandrakanth)
Newsgroups: comp.unix.questions
Subject: setting News..
Date: 17 Aug 92 18:29:07 GMT
Organization: New Jersey Institute of Technology, Newark, N.J.
Originator: cxk6819@hertz.njit.edu

Dear Netters,
	One of my friend has question regarding News. He has a 
Sparc Station 2, which is connected to the Internet. He wants to
know whether he can connect to the usenet so that he can have access
to some of the News groups. Hee wants to know the procedure for
getting access for the usenet. Please helpme to  help him. If you can
email to me I would really appreciate. Thanks in advance.

cxk6819@hertz.njit.edu.

chandrakanth.
-- 
god's theorem:
		those who sow in tears will reap in joy.
Newsgroups: comp.unix.questions
From: les@chinet.chi.il.us (Leslie Mikesell)
Subject: Re: vi will not open large files
Keywords: UNIX System V/386 Ver 3.2 Rel 2.3
Organization: Chinet - Public Access UNIX
Distribution: na
Date: Thu, 20 Aug 1992 14:09:18 GMT

In article <1992Aug18.191708.7657@cbnewsl.cb.att.com> gwt@cbnewsl.cb.att.com (geoffrey.c.woods) writes:

>This question probably has a very simple solution, but I can't seem to 
>figure it out. The problem is that vi will not create a /tmp file larger
>than 518144 characters, so I cannot edit files over approximately 300K.

It's a compiled-in limit in vi.  If you have source you can probably
fix it by changing a couple of #defines.  Otherwise you can run
GNU emacs in vip (vi emulation) mode.

Les Mikesell
  les@chinet.chi.il.us
From: cgraham@sps.com (Christopher Graham)
Newsgroups: comp.unix.questions
Subject: INETD to a server question...
Date: 13 Aug 92 13:46:30 GMT
Organization: SPS - Indialantic, FL


Hi,

I was wondering if there is an example server that is 
EXECed by the inetd out on the net. I am having trouble 
figuring this process out.

                        Christopher J. Graham
 
                                 __o   
                               _ \ \_~  
                              (_)/ (_) 
 
                           cgraham@sps.com
                       ...!uunet!sps!cgraham
 
                 Software Productivity Solutions, Inc.
                           P.O. Box 361697
                         Melbourne, Fl 32936
From: jh@cadre.com (Joe Hartley)
Newsgroups: comp.unix.questions
Subject: Re: Zmodem installation problem
Date: 13 Aug 92 18:30:19 GMT
Reply-To: jh@cadre.com
Organization: Sun Microsystems, Inc.

In article 22845@eng.ufl.edu, zzang@whale.stat.ufl.edu (Zhuo Zang) writes:
>Hello,
>I try to install the Zmodem on the DECstation
>with Ultrix 4.2 .
>After I compiled all the programs, rz ,sz ,....
>I ran the programs. And it doesn't work.
>The problem seems that the Zmodem didn't 
>direct the data flow to the serial port
>correct, I need to set the tty somehow,
>but I don't know how.

You may be confused about how ZModem works.  It actually sends its output
to stdout (on UNIX).  For example, when I dial into my UNIX box, I'll
type sz <filename> to initiate the download to my machine at home.  My 
comm program then actually understands that a Zmodem transfer has started,
and begins receiving automatically, although if yours doesn't, it can
certainly be started manually.
   I'm not exazctly sure what you mean by "direct the data flow to the serial
port," though.  If you gave a little more detail as to how you're doing things,
we might be of a little more help.

---
===============================================================================
Joe Hartley          | jh@cadre.com  -  Whenever you find that you are on the
Cadre Technologies   | side of the majority, it is time to reform. - M. Twain
222 Richmond St.     | --------------------------------------------------------
Providence, RI 02903 | Overman 1st Class - the Kilgore Trout Memorial Clench
(401) 351-5950 x266  |            of the Church of the SubGenius  
===============================================================================
From: roth@ordin.cs.wisc.edu (Bill Roth)
Newsgroups: comp.unix.questions
Subject: measuring memory usage
Date: 17 Aug 92 20:42:16 GMT
Organization: U of Wisconsin Madison - Computer Sciences


Hi.

Is there any simple way to measure the memory a process uses from
within the process at certain benchmark points? I do not want to set
up counters at every malloc. I merely want to see the change in memory
usage after some operation has occurred.

Please email your replies.

--

-------------------------------------------------------------------
Bill Roth, University of Wisconsin Computer Sciences Dept.
Internet: roth@cs.wisc.edu. BITNET: ROTH@WISCPSL. HEPNET: PSL::ROTH
Newsgroups: comp.unix.questions
From: kgermann@zeos.com (Ken Germann)
Subject: Digiboard & UUCP
Organization: Zeos International, Ltd. 
Date: Fri, 14 Aug 1992 20:42:11 GMT


We have a DIGICON C/X. I set up the ports for the modem. The modem
drops the connection as soon as it detects a carrier. I have the
RTS CTS TX RX and GROUND being used on the DIGIBOARD connections.
Any suggestions on getting this to work? 
-- 
  	   New! ZEOS 486 Upgradable VESA Local Bus Motherboard.  

			   info@zeos.com
Ken Germann		support@zeos.com 	Zeos International, Ltd.
From: mckelvey@fafnir.com (James W. McKelvey)
Newsgroups: comp.unix.questions
Subject: Re: Fun with sed!!!! [nothing better to do on Saturday night]
Date: 19 Aug 92 05:13:23 GMT
Reply-To: mckelvey@fafnir.com
Organization: Fafnir Software, Saugus, CA, USA

In article <512@alden.UUCP> sgr@alden.UUCP (Stan Ryckman) writes:
> In article <1992Aug10.192853.3209@kopachuk.uucp> dcb@kopachuk.uucp (David  
Breneman) writes:
> >In article <1992Aug2.152356.7333@news.acns.nwu.edu>  
navarra@casbah.acns.nwu.edu (John Navarra) writes:
> >>
> >>
> >>For today's sed problem let us go all the way back to early grade school
> >>where we heard the famous rule:
> >>
> >>'I' before "E" except after "C".
> >>
> >>This is the rule I want to implement in sed. So far, here is my progress:
> >
> >Process deleted...
> >
> >>Wonderful, Wonderful! I needed to misspell words in order to correct
> >>other words, then change all the misspelled words back in addition to
> >>other misspelled words just like them!  
> >
> >When you get up, you can try adding the second half of the rule:
> >
> >"...or sounding like "A" as in neighbor or weigh."
> 
> Oh, it gets a lot worse than that.
> How do you pronounce "either?"
> Does anyone named "Neil" pronounce his name as if "Nail?"
> 
> In fact, I ran "egrep -i '(^|[^c])ei' /usr/dict/words"; the
> first few (of 213 matches) are:
> 	absenteeism	<- not "A" sound
> 	Aeneid		<- not "A" sound
> 	agreeing	<- not "A" sound
> 	albeit		<- not "A" sound
> 	Alexei		<- not "A" sound
> 	Anaheim		<- not "A" sound
> 	Andrei		<- I don't know
> 	aniseikonic	<- I have no idea!
> 	apartheid	<- not "A" sound
> 	atheism		<- not "A" sound"
> 	atheist		<- not "A" sound
> 
> 
> What would Einstein think about this "rule?"   :-)
>            ^^   ^^
> >
> >Be sure to post your solution. :-)
> 
> Yeah, especially if you can find one that will get all these
> words right!  :-) :-)
> 
> Stan.
> --
> This .signature has expired.  Call 1-900-YOU-FOOL to find out why.
>     Stan Ryckman   sgr@alden.UUCP

Einstein is German, and doesn't have to obey English rules.  Aeneid is Greek,  
so ditto.  Apartheid is what, Afrikaans? so ditto.  Anaheim is probably German  
also.  Alexei, a foreign name, maybe from Russian, so ditto.

The others have a syllable split between the e and the i; absenteeism is  
absentee plus ism.  This also explains words like "weird", which is really two  
syllables, "we-ird".  Also, come to think of it, Aeneid, "Aen-e-id".

So the problem is your "rule" is bogus and your teachers lied to you.  The real  
rule is:

I before E except before C and in sounds of "A" like "neighbor" and "weigh",  
this being for syllables only, not compound words, and it doesn't necessarily  
apply to words imported from foreign languages, even English proper names may  
deviate, and anyway there are exceptions like "either".

Whew!

                         Jim McKelvey    mckelvey@fafnir.com
-- 
A man should not strive to eliminate his complexes, but to get in
accord with them; they are legitimately what directs his conduct
in the world. - Sigmund Freud
Jim McKelvey                      mckelvey@fafnir.com
From: udo@umunk.GUN.de (Udo Munk)
Newsgroups: comp.unix.questions
Subject: Re: reliable write()
Date: 14 Aug 92 20:04:33 GMT
Organization: umunk (private)
X-Newsreader: Tin 1.1 PL4

guy@Auspex.COM (Guy Harris) writes:
: >Once in the
: >kernel, however, you have no way of knowing when the write to disk
: >will occur.
: 
: True by default, but *some* flavors of UNIX, as noted, have one of two
: mechanisms to give greater control over when the write to disk will
: occur:
: 
: 	1) O_SYNC - a file descriptor mode bit that can be set when the
: 	   file is opened (by including O_SYNC in the open mode) or
: 	   after it's opened (with "fcntl()"); if set, all writes are
: 	   supposed to go immediately to some flavor of permanent
: 	   storage (e.g., disk).
: 
: 	2) "fsync()" - a call that can be performed on a file descriptor
: 	   to flush all file data to permanent storage.
: 
: Some flavors of UNIX have O_SYNC, some have "fsync()", some have both,
: some have neither.

What about calling system("sync"); after a flush of the buffers for
systems which have neighter?
--
Udo Munk     | voice:      +49 2131 275348             | uucp: +49 2131 278869
Oberstr. 21  | mail :      udo@umunk.GUN.de            |     2400/1200/300 8N1
4040 Neuss 1 | ...!{mcshh,smurf,unido}!easix!umunk!udo | MYNAME=bbsuser
Fed. Rep. of | CompuServe: 100021,2515                 | login: uucp
Germany      | at first connect get ~/info  and ~/files| pwd:   public
From: guy@Auspex.COM (Guy Harris)
Newsgroups: comp.unix.questions
Subject: Re: du blocksize=512 (Was: Simple AWK question)
Date: 21 Aug 92 17:54:50 GMT
Organization: Auspex Systems, Santa Clara


 >:Suppose you have a file system with zillions of little tiny files (for
 >:example /usr/spool/news).  You figure that you can keep the disk
 >:usage down (and thus the expiry time up) by making the filesystem with
 >:a 512 byte block size (or fragment size).  Now, if you have a "du" that
 >:only thinks in Kbytes, it won't give you the right answer when you want
 >:to know how much disk space will be freed up if you blow away all of
 >:"alt/useless/bogus/groups".
 >
 >Are you saying that du's answer should vary depending on f/s geometry???

Either that, or he's saying he can't figure out how to make a "du" that
calculates the sizes in 512-byte units, but prints the result out in
Kbytes....
From: smr@hitkw14.pki-nbg.philips.de (S.Riehm)
Newsgroups: comp.unix.questions
Subject: Re: vi (cut and paste)
Keywords: vi
Date: 20 Aug 92 07:03:22 GMT

phd85@seq1.keele.ac.uk (D.H. Holden) writes:


> hi, 
>    Does anyone know how you cut a range of text to one
>   
>    of the named buffers, where the range does not cover
> 
>   an integer number of lines, i.e., 

>  How do i cut from here > text  text text ..........

>  ............... n number of lines .....

> ...... to here <  into the named buffer "a for example?

as soon as you mention the word "lines" in vi you get complete lines
only!

However, You can specify a search pattern, or any movement pattern, so
you could move the cursor to the start position, then type;
"ay/<  into/^M

using your examply above. This will yank everything up to but not
including the string in the search pattern.

you could also do stupid things like:
"ay120W
which would yank the next 120 blank separated words.

This works for delete, change, >> << etc etc also.

good luck

-----------------------------------------------------------------
Stephen Riehm		Configuration Management	   _-_|\ 
smr@pki-nbg.philips.de	Philips Kommunikations Industrie  /     \
Work: +49 911 526 2975	Nuernberg, Germany		  \_.-.*/
Fax:  +49 911 526 2095	"I was there, now I am here!"	       v 
"My company speaks another language, I CAN'T speak on it's behalf"
Newsgroups: comp.unix.questions
From: pclink@cheops.qld.tne.oz.au (Rick)
Subject: Re: Fun with sed!!!! [nothing better to do on Saturday night]
Organization: Telecom Australia, TNE Computer Support Services
Date: Wed, 19 Aug 1992 23:48:42 GMT

mckelvey@fafnir.com (James W. McKelvey) writes:
>So the problem is your "rule" is bogus and your teachers lied to you.  The 
>real rule is:

>I before E except before C and in sounds of "A" like "neighbor" and "weigh",  
>this being for syllables only, not compound words, and it doesn't necessarily  
>apply to words imported from foreign languages, even English proper names may  
>deviate, and anyway there are exceptions like "either".

Yeah, but... can you write a sed script to implement this?

Rick.
8^)