HDTenEightyP/NetNews huggingface dataset:
From: Tom Christiansen <tchrist@convex.COM>
Subject: Re: Logon detection
Originator: tchrist@cvxcs.cs.convex.com
Reply-To: tchrist@convex.COM (Tom Christiansen)
Organization: Convex Computer Corporation, Colorado Springs, CO
Date: Mon, 05 Oct 1992 14:16:52 GMT
X-Disclaimer: This message was written by a user at CONVEX Computer
              Corp. The opinions expressed are those of the user and
              not necessarily those of CONVEX.

From the keyboard of weigand@pecan.cns.udel.edu:
[81 lines of C code deleted.]

I have never come to understand why people continually 
want to program in assembler when a few lines of C will do.

I have never come to understand why people continually 
want to program in C when a few lines of sh will do.

In this case, a few lines (or fewer!) of sh will do.  
Why make a binary that takes 80 lines to express the
same concept, doesn't use existing tools, and requires
that a separate binary be installed on all your architectures,
using up vastly greater amounts of disk space?

--tom

-- 
"GUIs normally make it simple to accomplish simple actions and impossible
to accomplish complex actions."   --Doug Gwyn  (22/Jun/91 in comp.unix.wizards)

     Tom Christiansen           tchrist@convex.com      convex!tchrist
Newsgroups: comp.unix.questions
From: rscott@spock.NMSU.Edu (Joseph Good)
Subject: ACK!!  simple question
Organization: New Mexico State University
Date: Wed, 30 Sep 1992 22:04:17 GMT


Okay..  I'm new to programing C on Unix... and seem to have 
stumbled across a problem...

Don't laugh...

Here is the function..

int
test(const char *name)
{
	FILE           *infp;
	char            buf[255];	/* magic number */
	char           *head;
	char 	       *isnff = "v";
	int             val = 0;

	printf("Opening %s to verify format.\n", name);

	infp = fopen(name, "r");
	if (!infp) {
		perror(name);
		exit(-1);
	}
	
	printf("name = %s\n", name);
	
	if (!feof(infp)) {
		fgets(buf, sizeof buf, infp);
		fclose(infp);
		sscanf(buf, "%s", head);
		printf("head = %s\n", head);
		printf("ACK!!  name = %s\n",name);
/* 		if (strcasecmp(head, isnff) != 0) {
			val = 1; } */
		printf("here is what sucks... %d\n", strcasecmp(head, isnff));
	}
	
		return (val);
}


The files open up okay...  but I get a BUS ERROR when the strcasecmp 
function is called...

I can't figure it out...

If I take the printf function out, it works fine...  BUT, then the
variable used to call this function changes... and it isn't supposed 
to change.

char *infile;

if (!test(infile)) 
	goodies();

Well, infile changes.. and I can't figure this out either...
It changes to the first character that is read in from the test() 
function.

thanks for any help...

Joe

--

Joseph Good
+-------------------+ - More than just a band....
| Green Dot Brigade | - It's a whole damn army of dots...
+-------------------+ - And we've declared war on the 7-Up dots...

rscott@nmsu.edu (NeXT mail welcome!!) (main account)

atlantis@acca.nmsu.edu  (Just plain ol' Unix) (seldom used)
Newsgroups: comp.unix.questions
From: walker@superboy.jsc.nasa.gov (Doug Walker)
Subject: Mail to compuserve?
Reply-To: walker@superboy.jsc.nasa.gov
Organization: NASA Johnson Space Center
Date: Fri, 2 Oct 1992 17:57:58 GMT

I know this is a FAQ but I looked and couldn't find it.

I have a friend on compuserve.  I know his id number.

if I type 

   mail 12344,232@compuserve.com

then the rest of the message it just bounces.

what am I doing wrong?  I am sure that the sun does not like the comma,
but enclosing the whole thing in quotes doesn't help either.

Thanks in advance

Sorry about waasting bandwidth for a FAQ.

Doug
From: jbowyer%ovc.vutbr.cs%CSBRMU11.BITNET@aearn.edvz.uni-linz.ac.at (Jeff Bowyer)
Newsgroups: comp.unix.questions
Subject: Start/Stop
Date: 30 Sep 92 08:39:01 GMT

1. How do I change the STOP command from ^s to something else?  The
manual does not list STOP as an option under the stty command.  I
tried the stty command with STOP as the option anyway, but no
success.

2. We use LAN WorkPlace for DOS.  When I enter the status command
at the TNVT220> prompt, one line reads:

  Interrupt remote process character '^O'

How do I change this setting?  I can't find any discussion in the
documentation, nor can I find anything relevant in the setup
screen (Alt-s).

Thanks for your assistance.

Jeff

==========================================================================
 Jeff Bowyer                         EMail:
 Technical University of Brno        jbowyer%ovc.vutbr.cs@csbrmu11.bitnet
 Udolni 19, 602 00 BRNO
 Czechoslovakia
==========================================================================

"If I had to do it over, I wouldn't do what I did then, for a lot of
 reasons, including political reasons.
                -- President George Bush, on raising taxes, March
                   1992.  On the campaign trail a few days later:
                   ``Life means nothing without fidelity to
                   principles.''"

Vote for ROSS PEROT!
Xref: sparky comp.unix.questions:11476 comp.lang.c:14143
From: jim@aeshq.UUCP (Jim Roberts)
Newsgroups: comp.unix.questions,comp.lang.c
Subject: Help : prog to time-out a 'read' for sh
Keywords: help
Date: 24 Sep 92 13:39:19 GMT
Followup-To: comp.unix.questions
Organization: AES Headquarters, Environment Canada, Toronto, Canada


Hello all,

  I am hoping that someone out there has already written a version of
  the Bourne Shells 'read' which will time out, and allow you to come
  back to it again later, continuing at the point where it left off
  before.

  If not already out there, how do I go about writing it?  I tried to
  turn buffering of stdin off, and using select to determine if there
  was anything to read, but I loose characters (probably because the
  stdin buffer has been turned off).  Can I use ioctl and select?  Should
  I use curses?  Any hints on either?  How do I stop from loosing characters?

  What I want to do it something on the line of : 

  #!/bin/sh

  while [ "COMMAND" != "QUIT" ]
  do
     update_some_stuff
     COMMAND=`TimedRead`
     # If no characters typed for so many seconds, run through loop again
     # updating everything as needed.
  done


Any help much appreciated.


Jim Roberts


-- 
 ------------------------------------------------------------------------------
  Jim Roberts
  Environment Canada, Downsview Ontario                         jim@aeshq.uucp
  Atmospheric Environment Service
Newsgroups: comp.unix.questions
From: hays@ponder.ponca.dupont.com
Subject: Can't access network card using SCO ODT/DOS
Reply-To: hays@pogun.dnet.dupont.com
Organization: Conoco Inc., Ponca City, OK
Date: Fri, 2 Oct 1992 21:21:11 GMT

I am having trouble getting the DOS utility (Merge) under SCO ODT V1.1
to recognize my Ethernet network card (3C503).  I would like to be able
to start the DOS session and then be able to load IPX and access rest
of the LAN at my location.  I would even be willing to install two 
network cards in my system if this is the only way to do it.

Is this even possible ??  I thought I saw a discussion on this a few
months back in this newsgroup.  As I am not a regular reader of this 
newsgroup, please send mail to :

	summers@pogun.dnet.dupont.com

Any information in this area would be GREATLY APPRECIATED.  This is a
problem that I "really" need to resolve at my site.  I will summarize 
post the results.

HW -  Dell 486/25
      3COM 3C503 Ethernet Adapter
SW -  SCO ODT V1.1

Thanks in advance !!

david        Will drive fork-lift or do Unix for food !!!
From: djbpitt+@pitt.edu (David J Birnbaum)
Newsgroups: comp.unix.questions
Subject: Re: How to uncompress "tar-z" (NOT tar.Z) files?
Keywords: tar tar-z archive uncompress decompress
Date: 1 Oct 92 19:46:29 GMT
Distribution: na
Organization: University of Pittsburgh

>Now: can anyone explain why *.tar.Z files wind up on archives with
>*.tar-z names? My OS experience is pretty limited; is it because some
>systems have trouble with filenames that have two dots in them?

An email response informed me that VMS doesn't like multiple periods in
file names. Neither does MSDOS, of course, but the latter would also
refuse to store a name with a five-character extension.

--David

-- 
Professor David J. Birnbaum         djbpitt+@pitt.edu [Internet]
The Royal York Apartments, #802     djbpitt@pittvms   [Bitnet]
3955 Bigelow Boulevard              voice: 1-412-687-4653
Pittsburgh, PA  15123  USA          fax:   1-412-624-9714
Newsgroups: comp.unix.questions
From: tzung@versyss.uucp (Tzung Liu)
Subject: How do I make tape stream
Organization: VERSYSS Incorporated, Torrance, California
Date: Tue, 6 Oct 1992 16:32:01 GMT

I'm using 386/486 PC with QIC-02 streamer tape drives.
The UNIX version is generic AT&T V.3 2.0 with 1K and 2K file
system.   I can't make tape streaming when backing up files
with CPIO or TAR.

Any pointer on how I can make it stream?

Thank.

*************************************************
* Tzung Liu, Versyss Inc, Torrance, California  *
* tzung@versyss.com                             *
*************************************************
Newsgroups: comp.unix.questions
From: guenther@stolaf.edu (Philip A Guenther)
Subject: Re: What does 'daemon' mean?
Organization: Academic Computing Center, St. Olaf College
Date: 27 Sep 92 21:53:28

In article <1440@rand.mel.cocam.oz.au> twp@rand.mel.cocam.oz.au (Tony Payne CSD) writes:
>   Greetings,

>   I have been working with UNIX for several years now, and it
> suddenly occurred to me the other day that I have no idea what the
> word 'daemon' stands for.  I asked several of my colleagues, and
> they also had no idea of its origins.  Anyone out there know ???
> Thanks in advance,

>   Tony.

To quote the jagon file (2.9.10)...

:daemon: /day'mn/ or /dee'mn/ [from the mythological meaning,
   later rationalized as the acronym `Disk And Execution MONitor'] n.
[...]
   Daemon and
   {demon} are often used interchangeably, but seem to have
   distinct connotations.  The term `daemon' was introduced to
   computing by {CTSS} people (who pronounced it /dee'mon/) and
   used it to refer to what ITS called a {dragon}.  Although the
   meaning and the pronunciation have drifted, we think this glossary
   reflects current (1991) usage.

and on demon:

:demon: n.
[...]
   2. [outside MIT] Often used
   equivalently to {daemon} --- especially in the {{UNIX}} world,
   where the latter spelling and pronunciation is considered mildly
   archaic.

For more info consult the actual jargon file pages. :-)

Philip Guenther
--
guenther@stolaf.edu (Philip Guenther)       | The ACC might agree with me,
Student Sys Prog, Academic Computing Center | but with that bunch, (and me)
St Olaf College, Northfield, MN 55057-1001  | you never know... :-) :-| :-(
"Life makes sense?  LIFE MAKES SENSE!!?  Where do people get these ideas?"-me
From: mikeb@cad5.cray.com (Mike J. Buchmann)
Newsgroups: comp.unix.questions
Subject: Setting stdout buffer to 0 in a csh script
Date: 5 Oct 92 22:05:17 GMT
Organization: Cray Research, Inc.
Originator: mikeb@cad5


How can one go about setting the stdout buffer to 0 length
in a csh script.

The problem comes up when piping two commands together,
such as:

   xyz | abc

abc does not receive the output from xyz until the output buffer is
full or xyz is finished.


Thanks for the help.


Mike Buchmann
-------------------

Mike Buchmann
Cray Research, Inc.
Chippewa Falls, WI  54729

mikeb@ted.cray.com
Newsgroups: comp.unix.questions
From: lux@sol.UVic.CA (Michael O'Henly)
Subject: Recursive rm (how?)
Summary: How do I do an 'rm' that will delete recursively?
Keywords: recursive rm shell
Organization: University of Victoria
Distribution: na
Date:  5 Oct 92 19:53:49 GMT

	I want to write a shell script that will start at a certain
point in my directory hierarchy and delete certain files from that
point "down".

	In each directory below the starting point, I'd want it to...

		rm .cache *.save *~ .*~

	I'm sure this is easy to do, but I haven't been able to figure
it out...

	Thanks for any help.

	Michael.
-- 
Michael O'Henly                 
McPherson Library                Internet:  lux@sol.uvic.ca
University of Victoria                      lux@uvvm.uvic.ca
Victoria, B.C., Canada             BITNET:  lux@uvvm
From: dsiegel@optima.UUCP (Dave Siegel)
Newsgroups: comp.unix.questions
Subject: Re: The origin of the word 'superuser'
Date: 6 Oct 92 00:42:48 GMT

From article <1992Oct5.221326.27971@athena.mit.edu>, by herrera@athena.mit.edu (Ramon F Herrera):
> I have been discussing with several friends the origin
> of the word "superuser".
> 
> I claim (because I read it somewhere) that the meaning
> of the command "su" is and has always been "Substitute User"

I got this from _UNIX SVR4, The Complete Reference_ by Stephen Coffin, in the U nix System adminstration sextion.

"The root id has it's own password, and also has special privileges, including
full access to all system files and resources; thus, the root login
is called superuser."  additionall, "The UNIX system also provides a tool
that lets you switch your login id temporarily, without logging out.  This is 
the su (for switch user or superuser) command."

please note, that in the second example, this refers to a *super* shell,
or shell on top of your current one, rather than in the "superman" sense.

I've also heard it referred to as "single-user" somewhere else.

In my opinion, buth substitute and switch are sort of misleading, since you
are not substiting a new user id for your current one, but rather, starting
a whole new shell.

-dave

--
Dave Siegel              dsiegel@cs.arizona.edu    dsiegel@biosci.arizona.edu
SysMgr, Biotec, U of Az  dsiegel@hacks.arizona.edu dsiegel@seagull.tucson.az.us
"The opinions expressed herein are not necessarily those of my employer,
not necessarily mine, and probably not necessary."
Newsgroups: comp.unix.questions
From: herrera@athena.mit.edu (Ramon F Herrera)
Subject: The origin of the word 'superuser'
Keywords: superuser substitute user su history 
Organization: Massachusetts Institute of Technology
Date: Mon, 5 Oct 1992 22:13:26 GMT


I have been discussing with several friends the origin
of the word "superuser".

I claim (because I read it somewhere) that the meaning
of the command "su" is and has always been "Substitute User"
and that this command has always had one argument, but by default,
when you don't provide the argument, it is as if you had typed
"su root".  Systems administrators always preferred the
shorter version and the word "superuser" came from there.

A friend of mine who has more years of experience
claims that he remembers when Unix was young
that the meaning of "su" was super-user and that
in those days the command "su" was used only
to become superuser (it didn't take any arguments).

Who is right? Can you provide references?

Thanks,

-Ramon Herrera

pd: the man page in Suns say "super", the one in
BSD and Ultrix says: "substitute".
From: barmar@think.com (Barry Margolin)
Newsgroups: comp.unix.questions
Subject: Re: grep in subdirectories
Date: 30 Sep 1992 16:27:56 GMT
Organization: Thinking Machines Corporation, Cambridge MA, USA
NNTP-Posting-Host: telecaster.think.com
Keywords: grep

In article <denis.717853848@smoky> denis@smoky.ikf.physik.uni-frankfurt.de (Denis Endisch) writes:
>Is there a possibility to told grep to search in a whole directory tree?
>In combination with the find command it would be helpful if grep would
>axcept filenames instead of text from stdin, but as far as I know there
>is no option for grep to do so.

That's what xargs is for:

	find .... -print | xargs grep foo /dev/null

The /dev/null is added to guarantee that grep will always have more than
one file argument, so that it will print out the file names.

Also, if the number of files isn't very large, the following will also
work:

	grep foo `find ... -print`
-- 
Barry Margolin
System Manager, Thinking Machines Corp.

barmar@think.com          {uunet,harvard}!think!barmar
From: npm@po.CWRU.Edu (Neil P. Milani)
Newsgroups: comp.unix.questions
Subject: Problems installing updated rn for HP-9000/340 system
Date: 30 Sep 1992 01:08:29 GMT
Organization: Case Western Reserve University, Cleveland, OH (USA)
Reply-To: npm@po.CWRU.Edu (Neil P. Milani)
NNTP-Posting-Host: slc5.ins.cwru.edu


	We are attempting to install a updated version of rn to
our HP-9000 system.  After receiving a version (Patch level 4),
we ran the configure file and then the make.  After running the
make we received the following error message:

	gcc	addng.o art.o... (other files)... clientlib.o 
		-lcurses -lbsdipc -lm -o rn
	ld: Undefined External -
		_index
		_bzero
		_bcopy
	ld: output file still contains undefined symbols
	ld: (Warning) did not generate an output file
	*** Error code 1

	Now, I don't really know that much about HP-UX as you
may have guessed from the info that I have provided so far.  I 
think that the defined words _index, _bzero, and _bcopy are not
recognized by our system.  I do know a little about C, so I recog-
nize the define syntax.  I ran a man on these words and came up
with no references.  It seems that our system uses an alternative
word that does something similar (like bcopy and memscpy, or something
like that).  I saw something in the Configure file that tried to see
which of two similar commands that our system uses when it does
the setup.  It may have "picked" the wrong one.
	So do I have to change these command words to make it work?
Or am I on the wrong track?  Sorry if these are trivial questions,
I'm just trying to increase my UNIX knowledge with a little attempt
at some installation experience.  Any help would be greatly appreciated.
Thanks.
-- 
|Neil P. Milani  	| The world is made for those of us  |
|JCU Physics Alumni     | not cursed with self awareness.    |
|CWRU EEAP Alumni       |    	         - William Blake     |
From: john@sekrit.WPI.EDU (John Stoffel)
Newsgroups: comp.unix.questions
Subject: Re: Problem w/ corrupted file(would love to rm it...)
Date: 1 Oct 92 16:24:21 GMT
Distribution: comp
Organization: Worcester Polytechnic Institute
NNTP-Posting-Host: sekrit.wpi.edu
In-reply-to: henders@infonode.ingr.com's message of 1 Oct 92 13:53:18 GMT


try using fsck on the file system and see if it catches it.  It's
pretty good at catching stuff like that.

--
Youth of today!  Join me in a mass rally for traditional mental attitudes!
-------------------------------------------------------------------------------
john@wpi.wpi.edu | Work Station Specialist | Worcester Polytechnic Institute
John Stoffel     | 508-831-5512 (work)     | Worcester, MA  01609
Newsgroups: comp.unix.questions,comp.dcom.fax
From: kgermann@zeos.com (Ken Germann)
Subject: Unix Fax Servers
Organization: Zeos International, Ltd
Date: Tue, 06 Oct 1992 04:05:31 GMT


A month or so ago I posted a request for information on 
SCO Unix Voice Fax Back servers. We are considering
using Faximum Plus for Faxing from Unix. We would have
all the necessary hardware and software pieces to support
a Voice Fax Back Server except the Dialogic Voice board and
the software to drive he voice prompts and telephone keypad
responses.


Anyone who hhas or knows of a company that is experienced with
writing applications that utilize the Dialoogic Voice Boards
under SCO Unix can send information to the address below or
contact me via E-mail.

The last contact that I had was frm Data TTech. I don't have
their number. I will summarize the information that I find.
-- 
Ken Germann              ZZZZ EEEE  OO   SSS    ZEOS International, Ltd.  
support@zeos.com   INET     Z E    O  O S       Technical Support Dept.
uunet!zeos!support UUCP    Z  EE   O  O  SS     530 5th Ave N.W.
800-228-5390      VOICE   Z   E    O  O    S    St. Paul, MN 55112
612-633-7337             ZZZZ EEEE  OO  SSS     FAX         612-633-4607
Newsgroups: comp.unix.questions
From: kudzu@netcom.com (Michael Sierchio)
Subject: Re: What does 'daemon' mean?
Summary: Cf. James Clerk Maxwell
Organization: True Love, and Home-Grown Tomatoes
Date: Thu, 1 Oct 1992 19:50:33 GMT

as in Maxwell's demon -- a mythological conceit used to describe
a hidden "intelligent" process.


-- 
+--------------------------------------------------------------------------+
|  Michael Sierchio                          1563 Solano Avenue, Suite 123 |
|  kudzu@netcom.com                                Berkeley, CA 94707-2116 |
+--------------------------------------------------------------------------+
Newsgroups: comp.unix.questions
From: rayj@Celestial.COM (Ray Jones)
Subject: Re: Hidden (invisible) files
Organization: Celestial Software, Mercer Island, WA
Date: Sun, 04 Oct 1992 21:15:11 GMT

In <1992Oct4.020557.13568@nmsu.edu> rscott@spock.NMSU.Edu (Joseph Good) writes:



>Is there a way to make files invisible?

>Where they have all the normal permissions, but you just can't
>see them with a 'dir' or an 'ls'???

The normal way to do this is to start the file name with a "."
Lots of files are "hidden" this way, for example
.profile
.login
.cshrc
.logout
Of course, you can see "hidden" files with 
ls -a
which means "list all"
-- 
Onager Systems			 Ray A. Jones
18710 NE 59th Ct.		UUCP .....uunet!camco!onager!ray
# 2053       			...ray@onager.Celestial.COM
Redmond, WA 98052               206-885-3568
From: fwp@CC.MsState.Edu (Frank Peters)
Newsgroups: comp.unix.questions
Subject: Re: How to uncompress "tar-z" (NOT tar.Z) files?
Keywords: tar tar-z archive uncompress decompress
Date: 2 Oct 92 00:10:13 GMT
Organization: Computing Center, Mississippi State University

In article <6587@blue.cis.pitt.edu.UUCP> djbpitt+@pitt.edu (David J Birnbaum) says:
: 
: Now: can anyone explain why *.tar.Z files wind up on archives with
: *.tar-z names? My OS experience is pretty limited; is it because some
: systems have trouble with filenames that have two dots in them?

One of the largest repositories of UNIX software was a machine named
Simtel20.arpa (later wsmr-simtel20.army.mil I believe).  This was a
Tops-20 system and didn't use the same file naming system as UNIX.

A lot of other archives (like wuarchive.wustl.edu) got much of their
data by copying it from Simtel and didn't bother to change the names.
--
Frank Peters  -  UNIX Systems Programmer  -  Mississippi State University
Internet: fwp@CC.MsState.Edu  -  Phone: (601)325-7030  -  FAX: (601)325-8921
From: bruce@head-cfa.harvard.edu (Bruce Sams)
Newsgroups: comp.unix.questions
Subject: AWK or PERL: which is better?
Date: 28 Sep 92 08:55:57 GMT
Organization: Smithsonian Astrophysical Observatory, Cambridge, MA,  USA


I recently posted a question to the net, asking how to perform a
certain editing task using "sed".  Many people kindly replied, and
supplied a lot of different soutions to the puzzle.  But what was
also very intersting was the number of replies which said (in effect)
"well, you COULD do this with sed, but I recommend awk or perl" and then went
on to show sample scripts for one or the other choices.  

After some experimenting with awk (I have just downloaded perl from MIT)
I am now at the cross roads: which one of these languages is "better", and
which should I learn?  Is there a general rule about the simplicity,
applicability, and speed of these two editors? Are ther strong opinions
(either way) about awk or perl?  I am a new system manager and would
like to tell my users one language which they can learn and use in almost
all situations, and with the least startup time for learning.  In this
respect awk seems very good, but maybe perl is better.

All opinions are welcome.

Thanks


Bruce Sams

sams@cvxastro.mpa.ipp-garching.mpg.de
Xref: sparky comp.unix.questions:11758 comp.mail.misc:3217
From: jeffo@uiuc.edu (J.B. Nicholson-Owens)
Newsgroups: cso.general,comp.unix.questions,comp.mail.misc
Subject: Smail/Sendmail preferences
Date: 4 Oct 92 06:46:27 GMT
Reply-To: jeffo@uiuc.edu (J.B. Nicholson-Owens)
Organization: University of Illinois at Urbana

Are there any preferences for Smail over Sendmail (or vice versa?)  If you have  
any comments on either, I'd like to hear them.

Thanks.
-- 
-- Jeff (jeffo@uiuc.edu)
-- NeXTmail ok