HDTenEightyP/NetNews huggingface dataset:
From: klaus@helsinki.esf.de (Klaus Wicovsky)
Newsgroups: comp.unix.questions
Subject: tar blocksize
Date: 15 Oct 92 08:20:35 GMT
Reply-To: klaus@helsinki.esf.de (Klaus Wicovsky)
Organization: ESF Headquarters, Berlin, FRG

Hello,


I do have a shell script that tars a number of files
and a second shell script that untars the files.

Now, if I use a very small file, e.g. my .login, I can still untar it, but I get an additonal message (on stderr):

helsinki:[tmp] > tar xvf TARFILE.20762
tar: blocksize = 8
x .login, 365 bytes, 1 tape blocks


The message on stderr is [tar: blocksize = 8]. 

Since (my?) tar doesn't deliver an exit status, I need to check if stderr is empty to find out if something has gone wrong. In the example above nothing has gone wrong but I get this message.

One way to overcome this problem is to read with a blocksize of 1:

helsinki:[tmp] > tar xvbf 1 TARFILE.20762
x .login, 365 bytes, 1 tape blocks

My questions are:

(1)What is the effect of reading with a blocksize of 1 instead of e.g. 20?
(2)Is there any other way to solve this problem?


Thanks!

-----------------------------------------------------------------

   Klaus Wicovsky                                                   
                                                                    
   ESF Headquarters                    Tel : ++49+30-820 903 47      
   Hohenzollerndamm 152                Fax : ++49+30-820 903 19      
   1000 Berlin 33                      UUCP: klaus@esf.de        
   Germany             
Newsgroups: comp.unix.questions
From: reid@metis.tti.com (Reid Kneeland)
Subject: A peeve (was Re: A QUESTION
Summary: skip this if you're busy
Organization: Transaction Technology Inc.
Date: Tue, 13 Oct 1992 20:18:42 GMT

In answwering the original quesion, the following was suggested:

>cat file | cut -d' ' -f1

Most other answers to this question did the same silly thing with cat.

My question:

Why is it that so many people do this:

	cat file | prog

When this:

	prog < file

will work just fine?  Is there any good reason to fire up an additional
process (I know, cat has fairly low impact on system performance)?

What makes people do this?  Is it some funny psychological thing?  I
see it all the time and I've never understood it.

=====================================================================
Reid Kneeland
reid@tti.com  (that's MISTER reid@tti.com to you!)
Transaction Technology Inc., Santa Monica, CA, USA (310) 450-9111 x2499
The opinions expressed above do not necessarily etc etc...

Never trust a man who can count to 1,023 on his fingers.
From: dave@cs.arizona.edu (Dave Schaumann)
Newsgroups: comp.unix.questions
Subject: Re: IS UNIX DEAD?
Date: 11 Oct 92 06:17:03 GMT
Reply-To: dave@cs.arizona.edu (Dave Schaumann)
Organization: University of Arizona

In article <1b1johINNpmn@bigboote.WPI.EDU>, mugsy@winton (Michael G. Bruce) writes:
>In article <1992Oct8.124810.16164@maths.tcd.ie> robb@maths.tcd.ie (Robert Bashford) writes:
>>pardon me for asking but WTF is NT?
>>
>
>A figment of Bill Gates' mind... ;) 
>(flames/cheers welcome)

Yeah... y'see, they decided that there might be some life in DOS after
all, so they came up with "Disk Operating System -- New Technology".
With the appropriate acronym, of course... ;-)

-- 
The security of the Enterprise is of Paramount importance.
                        -Jean Luc Picard, stardate 45965.3
Xref: sparky comp.unix.questions:11957 comp.unix.sys5.r3:34
From: jack@admin.mport.COM (Jack Craig)
Newsgroups: comp.unix.questions,comp.unix.sys5.r3
Subject: Re: UNIX physical memory control
Date: 9 Oct 92 19:55:51 GMT
Followup-To: comp.unix.questions
Organization: Microport Inc., Scotts Valley, CA 95066 US of A

hausler@aldetec.oz.au (Graham Hausler) writes:

>I require some information concerning device drivers and UNIX memory
>manipulation.
> 
>I am developing a VME device driver on a MVME187 System V/88 system (R3V7)
>and wish to map some of the physical memory to the VME space. I have had
>a look at the device driver documentation and cannot see how I can 'remove'
>pages of UNIX physical memory from the system so I can use it on the VME
>bus. Am I wrong in thinking that a device driver cannot lock/reserve physical

is there a reason you cant sptalloc(count, foo...)

in your xx_init() routine. usually the best time to grab that suff is when
you're booting. find some ddi/ddk doc on sptalloc(), sptfree()

=============================================================================
 Jack Craig  Microport         SVR4 408-438-UNIX   uunet!mport.com!jack
             Software Horizons SVR3 408-684-1375   uunet!sco.com!blznrzn!jack
=============================================================================

>-- 
>Internet:   hausler@aldetec.oz.au      --> GEMCO, Perth, Australia.
Newsgroups: comp.unix.questions
From: francois@mot.com (Andre Francois)
Subject: RCS and SCCS under unix
Organization: rpg
Date: Fri, 16 Oct 1992 20:47:11 GMT

  I was looking for some good documentation on RCS and SCCS code management systems.
  I am more interested in RCS than SCCS, but I would like both anyway.  I also heard
  about a RCS freeze scripts that will create a version of my RCS files (this was
  origrinally written in REX a mainframe language).  If anyone knows the whereabouts
  of any of this in UNIX, please mail me at: eaf003:@email.comm.mot.com.

  Andre Francois
Newsgroups: comp.unix.questions
From: ipeattie@nyx.cs.du.edu (Ian Peattie)
Subject: Re: tset when term=vt300 (a.k.a. offering a choice)
X-Disclaimer: Nyx is a public access Unix system run by the University
	of Denver for the Denver community.  The University has neither
	control over nor responsibility for the opinions of users.
Keywords: tset term unknown
Organization: Nyx, Public Access Unix at U. of Denver Math/CS dept.
Date: Sun, 11 Oct 92 12:06:12 GMT

In article <1992Oct11.045931.27602@unlinfo.unl.edu> mosemann@unl.edu writes:
>   I would like to put a line in my .login so that when I login from a
>terminal with an unknown type, tset will offer to use the type of vt100.
>Otherwise, I want it to go ahead with the original terminal type.
>   For example, if I login from a terminal that advertises itself as a
>vt300, term and TERM are set accordingly.  tset says it is unknown and
>wants to use unknown as the type.
>
>eval `tset -sQ`
>Type vt300 unknown
>TERM = (unknown)
>
>   How can I get it to say TERM = (vt100) for this unknown vt300 (and
>any other unknown terminals, I don't want to type all of the unknown
>terminal types in)?  Any nifty ideas?  These terminals would be marked
>as network in ttytab.  As a side question, is there any place where I can
>get definitions for a vt300 and a vt400?  Thanks.
>--
>Russell
>mosemann@unl.edu

Try using the mapping flag -m

tset -m network:vt100 -m :\?vt100

This will set your terminal as a vt100 if there is an entry for 'network' for
that line, else it will prompt with TERM=(vt100).

Ian
----*
Newsgroups: comp.unix.questions
Subject: DCD MS500 /system 3: info needed.
From: cohen@cmu.unige.ch
Date: 16 Oct 92 12:32:42 +0200
Organization: University of Geneva, Switzerland

I am just starting to work on a very exotic and old Unix machine,
a Data System Design DCD MS500, running under System 3.

Can anybody help me regarding the following questions:

	1) Does this machine supports GNU
	2) Where can I find technical info about it (i.e. good books,
	   BBS, ftp sites or so): all the documentation about this
	   machine was lost during a department moving.

Many thanks in advance,

Emmanuel Cohen-Laroque
University of Geneva, Switzerland.
Newsgroups: comp.unix.questions
From: mcdono@nosc.mil (Tim McDonough CSC  )
Subject: Problem with dd and tar file on exabyte
Reply-To: mcdono@nosc.mil
Organization: NCCOSC, NRaD Division
Date: Fri, 9 Oct 1992 21:22:43 GMT

Greetings 
	I want to copy a tar file from one exabyte tape to another. 
	I've been using dd/cpio to copy the single tar file 
	with little luck. I've tried ibs/bs=8196 . Tar has no 
	problem extracting the files. Using a SPARCstation 1+ 4.1.2

fizzle 18> /usr/bin/dd if=/dev/rst9 files=1 of=/dev/rst6 
st1:	Error for command 'read', Error Level: 'Fatal'
    	Block: 0	File Number: 0
    	Sense Key: No Additional Sense
	Incorrect Length Indicator Set
dd: read: I/O error
0+0 records in
0+0 records out


---
Tim McDonough                   |   The opinions voiced are my own and
Computer Sciences Corp.         |   do not reflect those of my employer
mcdono@sunspot.nosc.mil         |   or the Susquehanna Hat Company.

Newsgroups: comp.unix.questions
From: bill@Celestial.COM (Bill Campbell)
Subject: Re: Man page naming convention
Organization: Celestial Software, Mercer Island, WA
Date: Sat, 10 Oct 1992 02:16:05 GMT

In <1b24n7INN3l0@early-bird.think.com> barmar@think.com (Barry Margolin) writes:

:In article <1992Oct8.183108.21963@news.eng.convex.com> tchrist@convex.COM (Tom Christiansen) writes:
:>:Why does the man command require the section number of the man page entry
:>:to be in the file name suffix, when it's already in the directory name?

:>One reason is that people can have one man3 directory that contains
:>both system.3 (or 3c) and system.3f, just to name one scenario.

:I considered that, but why couldn't that be /usr/man/man3/system and
:/usr/man/man3/system.f?  Also, did they have the lettered subsections when
:the naming convention was started?

The main reason I can see for using the .<number> suffix is that
I usually write all the man pages in a directory other than /usr/man...
and it helps to determine where to put them when I'm done.

Bill
-- 
INTERNET:  bill@Celestial.COM   Bill Campbell; Celestial Software
UUCP:   ...!thebes!camco!bill   6641 East Mercer Way
             uunet!camco!bill   Mercer Island, WA 98040; (206) 947-5591
SPEED COSTS MONEY -- HOW FAST DO YOU WANT TO GO?
Newsgroups: comp.unix.questions
From: franklin@ug.cs.dal.ca (Steve Franklin)
Subject: Re: HELP WITH FORWARDING
Organization: Math, Stats & CS, Dalhousie University, Halifax, NS, Canada
Date: Thu, 15 Oct 1992 19:51:13 GMT

In <Bw63JA.9sI@cs.dal.ca> franklin@ug.cs.dal.ca (Steve Franklin) writes:

>Well, I have a bit of a problem I'm hoping one of you can help me with:

>Objective: 
>To create a simple mailing list for no more than 20 users. 

>Available resources:
>Just UNIX e-mail accounts. No designated account for redirecting mail, but
>no disk quota, and a reasonably fast machine.

>Attempts:

>I created a .forward file with the contents:
>"| /usr/local/bin/filter -o filter_errors"
                   ^^^^^^(sorry about the typo. the other article has
                          been cancelled. I wish my problem was this simple 8)
>which was world readable (-rwxr-xr-x)

>Then, I created (in my elm directory) the appropriate alias:
>mac = macintosh users = paixao,graham,earhard,hayes,franklin,blakey

>Then, I created the filter-rules ~/.elm/filter-rules:

>if (subject = "macintosh gurus") then execute "readmsg 1 | elm mac"
>if (subject = "test") then execute "readmsg 1 | elm franklin"

>Then, I figured that everything would work. No way. I mailed myself
>with the subject "test" and it didn't work. It sent mail to the post-office
>and to me, but I didnt' even get mail (oh yes, did I mention, while I have
>my.forward file up and running, I get no mail).
>   I mailed myself with the subject "macintosh gurus" and once again: nothing.

>I"m at the end of my string here, and definitely having difficulty with what
>would seem to be an ordinary task. Any suggestions would be taken graciously
>and with heaps of appreciation.
>   thanks in advance...
>steve
>-- 
>aasdSteveFranklin-Subliminal Psychology Major.ks;dlasBlueJaysRULEkasdfeahsdbfl
>sd;lfaswoq[eBuyMeAQuadra!!!mbnZMXCNdfsba;KdSPAMiuroqiyetIBMSuxiweuryth'ewr;mxn
>qpuepriuPartyOneqtuj;,n.,xnc,kjasFlameMeNot!;lkj;lkgkjd;askElvisLivesjhfquweru
>zx.cfranklin@ug.cs.dal.ca,sk;t;lrut[Superboy@ac.dal.cav.zx,Physics!eq3rwkh;oHA
-- 
aasdSteveFranklin-Subliminal Psychology Major.ks;dlasBlueJaysRULEkasdfeahsdbfl
sd;lfaswoq[eBuyMeAQuadra!!!mbnZMXCNdfsba;KdSPAMiuroqiyetIBMSuxiweuryth'ewr;mxn
qpuepriuPartyOneqtuj;,n.,xnc,kjasFlameMeNot!;lkj;lkgkjd;askElvisLivesjhfquweru
zx.cfranklin@ug.cs.dal.ca,sk;t;lrut[Superboy@ac.dal.cav.zx,Physics!eq3rwkh;oHA
From: olsenc@carson.u.washington.edu (Clint Olsen)
Newsgroups: comp.unix.questions
Subject: Problems with tilde (~) substitutions...
Date: 15 Oct 92 05:34:59 GMT
Article-I.D.: u.1992Oct15.053459.11923
Organization: University of Washington, Seattle

Hello:

I am writing a korn shell script which obtains a list of
usernames.  What I want to do is tack on a tilde on the front
of it to denote their home directory.

For example, 

user=mike
homedir=~$user

Rather than expand to mike's home directory, I get this:

% echo $dir
~mike

Any ideas?

-----------------------------------------------------------------------
Clint Olsen 
olsenc@u.washington.edu
-----------------------------------------------------------------------
Newsgroups: comp.unix.questions
From: kenj@yarra.pyramid.com.au (Ken McDonell)
Subject: Re: weird behaviour of sed
Organization: Pyramid Technology Corp PL, Melb., Australia
Date: Thu, 15 Oct 1992 21:48:24 GMT

mau@beatles.cselt.stet.it writes:

>My man page (SunOs 4.1.2) for sed says that 
>           s/regular expression/replacement/flags
>change the regular expression into the replacement and defers to ed(1).
>ed says that it is the first occurrence of a string which match the RE to be
>substituted. Fine.

>So, if z is a file containing the line 
>	asdfgh asdgfh asdfgh asdgfh asdfgh asdgfh
>the command  sed 's/.*gf/GF/1' z should return 
>GFh asdfgh asdgfh asdfgh asdgfh
>, shouldn't it? ...

No.  the meta character . matches _any_ character, including spaces,
so the RE match goes
asdfgh asdgfh asdfgh asdgfh asdfgh asdgfh
<----------- .* --------------------->gf

and the replacement is ...

> ... Well, it returns just GFh .

correct.

>how can I accomplish my goal?

if you want to repace all characters up to, and including gf in the _first_
word of the line, and assuming words are separated by spaces,

	s/[^ ]*gf/GF/

i.e. zero or more non-spaces ([^ ]*) then gf
-- 
Ken McDonell			  E-mail:     kenj@pyramid.com
Systems Technology Laboratory		      kenj@yarra.pyramid.com.au
Pyramid Technology Corporation	  Phone:      +61 3 521 3799
Melbourne, Australia		  Disclaimer: I speak for me alone, of course.
From: tholome@bangalore.esf.de (Eric Tholome)
Newsgroups: comp.unix.questions
Subject: Re: .forward question
Date: 14 Oct 92 12:16:07 GMT
Reply-To: tholome@bangalore.esf.de (Eric Tholome)
Organization: ESF Headquarters, Berlin, FRG

In article <Oct.13.23.16.32.1992.23930@andromeda.rutgers.edu>, capistra@andromeda.rutgers.edu (M P Capistrano) writes:
|> How can I have my mails forwarded to a certain address but still keep
|> the copy in my current address?  

Your .forward can contain several addresses, including your local address.

Here is how it should look like:

\yourlocalemailaddress, yourremoteemailaddress

Note that the backslash at the beginning is there to avoid further aliasing of "yourlocaladdress" (otherwise, it would recursively apply the rule described in .forward).

						Eric

-- 
_____________________________________________________________________________
Eric Tholome       ESF Headquarters             internet: tholome@esf.de
                   Hohenzollerndamm 152         UUCP:     tholome@esf.uucp
                   D-1000 Berlin 33             Ph.:      +49 30 82 09 03 25
                               Germany          Fax:      +49 30 82 09 03 19
Xref: sparky comp.unix.questions:12180 comp.protocols.snmp:696
From: kannan@cathedral.cerc.wvu.wvnet.edu (R. Kannan)
Newsgroups: comp.unix.questions,comp.protocols.snmp
Subject: Hospital Information System - MIB
Keywords: MIB, HIS
Date: 16 Oct 92 19:33:17 GMT
Followup-To: comp.unix.questions

Problem: How to integrate devices such as barcode readers into
unix network?

Shadyside Hospital has initiated a major reworking of the information
technologies in an effort to bring affordable quality heathcare. ( I
call this initiative SHRINE for Shaydside Hospital Research Initiative
in Next generation Environment ). And
we are currently planning to a build a comprehensive MIB for our
institution.

One component of the information technologies in use at the Hospital
is simple tracking devices such as barcode readers. The problem we are
faced with is how to incorporate barcode readers in the network as
well as in the MIB.

MIB:
Are there ways to assign an IP address to the readers. We are
currently looking into cisco reverse telnet servers. The barcode
readers will be connected to the telnet server. And the barcode nodes
can then be monitored from anywhere in the network.

Barcode Applications:

What is the general approach to conenct such devices to Unix boxes,
poll (or other asynchronous methods) and get the input from these
devices. 

Are there other ways of doing the same? Is anyone else working on similar
problems? Or Does anyone have better or alternate approaches to these
problems.

We appreciate in advance your time and reply.

--
thank you very much

R. Kannan
MIS, Shadyside Hospital
5230 Centre Avenue
Pittsburgh, PA 15232
Voice: 412-623-2589
FX: 412-623-2693

email:kannan@cerc.wvu.wvnet.edu
Courtesy of Concurrent Engineering Research Center, West Virginia
University, Morgantown, WV 26506.

All standard disclaimers are in full effect.
From: barmar@think.com (Barry Margolin)
Newsgroups: comp.unix.questions
Subject: Re: "connect()" and EINTR
Date: 15 Oct 1992 22:48:59 GMT
Organization: Thinking Machines Corporation, Cambridge MA, USA
NNTP-Posting-Host: telecaster.think.com

In article <1992Oct15.181001.2064@bnr.ca> herrage@bnr.ca writes:
>I'm currently working on HP-UX 7.05 and encountered an instant where
>a call to "connect()" failed and "errno" was EINTR.  The man pages do
>not list this as an expected error.  If EINTR is definitely something
>to check for, what's the appropriate course of action?

Any system call that blocks can fail with EINTR, which means that a signal
was received during the system call.  A common reason for this is using
something like setitimer(2), which sends a signal when the timer goes off.
Usually the appropriate course of action is to reexecute the system call.

-- 
Barry Margolin
System Manager, Thinking Machines Corp.

barmar@think.com          {uunet,harvard}!think!barmar
Newsgroups: comp.unix.questions
From: philipd@chdasic.sps.mot.com (Philip Dixon)
Subject: pstat output
Keywords: pstat process
Reply-To: philipd@chdasic.sps.mot.com
Organization: Motorola SPS ASIC, Chandler, AZ
Distribution: usa
Date: Wed, 14 Oct 1992 20:23:01 GMT

 I need a little help.  I cannot figure out what the output
from the pstat -u command is all about.  Do you know where 
I can get this information.  Or even better, does anyone know 
what the fields are? An example of part of the output follows.

Q1) What is the difference between ru and cru?

Q2) Is maxrss the maximum resident set size?  Is this the largest
    memory usage that occured while the process was running?  What are the
    unit of measure?

Q3) What is xrss?  What are the units?

Q4) What is drss and srss? Units?

Q5) What is minflt? What is majflt?  Units?


REFERENCE:

ru:     utime   1:50 stime   6:23
        maxrss 0 xrss 6076558 drss 0 srss 23
        minflt 170 majflt 10 nswap 0
        inblock 7 oublock 0 msgsnd 1205857 msgrcv 516
        nsignals 897 nvcsw 9722 nivcsw 20585
cru:    utime   0:00 stime   0:00
        maxrss 0 xrss 0 drss 0 srss 0
        minflt 0 majflt 0 nswap 0
        inblock 0 oublock 0 msgsnd 0 msgrcv 0
        nsignals 0 nvcsw 0 nivcsw 0


---
Philip Dixon	Motorola SPS ASIC   		philipd@chdasic.sps.mot.com
		1300 N. Alma School Rd 		Philip-Dixon-RXSB40@email
		M/S CH290			office:  (602) 821-4729
		Chandler, Arizona 85224		telefax: (602) 821-4963


Xref: sparky comp.unix.questions:12094 comp.unix.sysv386:15581
From: ahahma@polaris.utu.fi (Arno Hahma)
Newsgroups: comp.unix.questions,comp.unix.sysv386
Subject: Re: Cache Ram causing a panic?
Keywords: disk cache-ram disk-io
Date: 14 Oct 92 17:58:46 GMT
Organization: University of Turku

In article <1992Oct13.161224.12100@openage.openage.com> bent@openage.openage.com (Ben Taylor) writes:

>motherboard has 256k of 20 nanosecond Cache Ram. The motherboard is, as far
>as I can tell, an Opti, with AMI Bios.  We are running ISC 3.0, SYSVR3.2.

I also have a 50 MHz motherboard with the same chipset, cache, bios
(ISA-board) and OS.

>start doing major disk access (untarring a 40MB archive) the machine will
>panic on cue.  We had our tech in this morning, and he turned off the 

That is exactly the problem I used to have. You could cause a panic by
doing heavy disk access or causing a high load on the computer
(swapping). A good test for this was to rebuild a kernel or compile a
large program using the -O switch. If that didn't crash the machine,
then nothing would.  The problem was with the MMU in the processor,
the processor overheated and did not work at 50 MHz any more. At 25
MHz it always worked ok.

Then, I changed the board (warranty) and the new one had same kind of
problems, too.  This time, it was not the processor, but the cache
overheating/not capable of doing at 50 MHz. The solution was to set
one wait state for the cache, both read and write (AMI bios should
support that) and enable the "cache buffer output" in the setup
(important!!! otherwise you will have ghost problems and eventually a
messed up hard disk due to memory errors).

Another, as important part of the solution was to make the cooling of
the board better, i.e. to install an extra fan blowing against the
board. Without the extra cooling, the machine will panic/do weird
things after being run for a few hours. With the cooling - no problems
after couple of days continuous use (except the irritating
interference sound of the two fans running at slightly different
speeds ;).

>external cache, as a test.  Now, running concurrent untars, the machine
>does not panic.  They think that the cache ram may not be fast enough.

Changing faster chips might help, if you just cool them enough. The
cache chips run very hot, about as hot as the processor itself (you
can barely touch them).

If I was now planning for a new motherboard, I would probably choose a
33 MHz with more memory instead. A lot less debugging, or is it?

>Ben Taylor

ArNO
    2
From: alan@ssd.ukpoit.co.uk (Alan Barclay)
Newsgroups: comp.unix.questions
Subject: Re: Getting % prompt in piping "more"
Date: 15 Oct 92 14:40:28 GMT
Organization: iT - The Information Technology Business Of The Post Office

In article <GUENTHER.92Oct12185749@amcl5.stolaf.edu> guenther@stolaf.edu (Philip A Guenther) writes:
>more (or any program for that matter), can only figure out what the
>percentage is by lseeking on the file descriptor given to it, all the
>way to the end, then going back to the begining (Note that it doesn't

That's wrong, the stat system call, or fstat if the file is already
open, will tell the program all sorts of interesting information,
including 

	    off_t   st_size;	/* File	size in	bytes */

However this cannot happen on a pipe, as nothing knows what amount
of data is going to get written into a pipe, the other fields
in the stat structure will get filled in.


-- 
Alan Barclay, iT, Barker Lane, CHESTERFIELD, S40 1DY, Derbys, England 
alan@ukpoit.uucp, ..!uknet!ukpoit!alan, FAX:+44 246214353, VOICE:+44 246214261
iT - The Information Technology Business     | explist now set to 3 days.
Of The Post Office : In Tune With Technology | Anyone got a 1.2 Gig disk?
Newsgroups: comp.unix.questions