HDTenEightyP/NetNews huggingface dataset:
From: raboles@eos.ncsu.edu (RODNEY ALLEN BOLES)
Subject: Restricting access to display (AIX 3.2)
Organization: North Carolina State University, Project Eos
Date: Tue, 6 Oct 1992 19:02:18 GMT


I have an RS/6000 that is running AIX3.2 (don't know if this matters
or not for this question).

I am running at display:0 at my workstation. It is possible 
(and needed) for other users to rlogin to my machine. 
I've noticed when a user does an xlock (and other programs) 
that my display is locked (or otherwise affected depending on
program). 

Is there a way to restrict this and still allow access to my machine??

It is not an xhost access problem. 

Thanks for any ideas,
Rodney Boles
Newsgroups: comp.unix.questions
From: morgan@jts.com (Morgan Jones )
Subject: TCP Heartbeat for NFS
Organization: JTS Computer Systems Ltd.
Distribution: comp
Date: Tue, 29 Sep 1992 18:30:10 GMT

Here is a little quickie for some Unix guru:

TCP has an option to use a heartbeat on the connection to determine if
the connection is still alive, and the option is turned off by
default.  NFS explicitly turns this heartbeat on.  Why?
-- 
Morgan Jones    -    morgan@jts.com
JTS Computer Systems Ltd., Toronto, Canada
Newsgroups: comp.unix.questions
From: ejh@khonshu.colorado.edu (Edward J. Hartnett)
Subject: any way to do database type stuff with unix tools?
Organization: CIRES, University of Colorado
Date: 6 Oct 92 16:09:19

Hi! I need to keep a tape library on my sun. What I'd like is
something like a simple database product that you can get on the PC
or Mac. I'm only talking about 400 tapes or so, with maybe five or six
information fields for each one. I want to print out labels and so
simple searches. Does anyone have any suggestions? I have some money
to spend, but a free solution would be much perfered!

Please email and I'll summarize if I get enough answers to make it
interesting.

	Thanks!
--
Edward Hartnett			ejh@khonshu.colorado.edu
From: sedrez@icad.puc-rio.br (Paulo Francisco Sedrez)
Newsgroups: comp.unix.questions
Subject: Re: internet address name resolution
Date: 28 Sep 92 21:09:40 GMT


>From: GEANEL@cn.laafb.af.mil
>Subject: internet address name resolution
>To: info-unix@BRL.MIL
>Date: Mon, 28 Sep 92 10:32:00
>
>Sometimes I need to  ftp anonymously to a site whose symbolic name (such as 
>ftp.nisc.sri.com) is known but whose internet address (such as 192.33.33.22) 
>is not known.  Consequently whenever I attempt to ftp to such a site, the 
>operating system gives an "unknown host" error message since my /etc/hosts 
>file does not contain an entry which provides address resolution of the 
>symbolic name ("route add default [gateway-internet-address]"  does not solve 
>this problem).  What can be done in such situations?  Is there a name server 
>somewhere on the internet? 

Domain Name Resolution IS a standard protocol for Internet. You can get all
documentation throught ftp at nic.ddn.mil (well, 192.112.36.5), login
anonymous, password guest, directories:

      ddn-news          - DDN Management Bulletins
      domain            - Root Domain Zone Files
      iesg              - IETF Steering Group
      ietf              - Internet Engineering Task Force
      internet-drafts   - Internet Drafts
      netinfo           - NIC Information Files
      netprog           - Guest Software (ex. whois.c)
      protocols         - TCP-IP & OSI Documents
      rfc               - RFC Repository
      scc               - DDN Security Bulletins
      std               - Internet Protocol Standards
      
The main documents are at rfc directory.

Or you maybe looking for something like nslookup, the ... Name Server lookup
utility available in most systems. For example:

miro:~> nslookup nic.ddn.mil
Server:  exu.inf.puc-rio.br
Address:  139.82.16.3

Non-authoritative answer:
Name:    nic.ddn.mil
Address:  192.112.36.5

miro:~> 

If nslookup is not available in your system, you cat telnet to nic.ddn.mil and
use the Whois service.

I think some of this may work.

Good look.

-------
Paulo Francisco Sedrez				sedrez@icad.puc-rio.br
TeCGraf/PUC-Rio
Rua Marques de Sao Vicente 225, Anexo RDC
22453 Rio de Janeiro RJ, Brasil			(021) 529-9424
From: ajayshah@cis.rand.org
Newsgroups: comp.unix.questions
Subject: How is tail -f efficiently implemented?
Date: 1 Oct 92 07:27:38 GMT
Reply-To: ajayshah@cis.rand.org
Organization: RAND, Santa Monica CA


It sounds horrendously expensive regularly polling the file to
check if some new bytes have appeared.  What is the smarter
way to implement a `tail -f'?

        -ans.
Newsgroups: comp.unix.questions
From: ayman@eecs.umich.edu (Ayman I. Kayssi)
Subject: Re: global finger
Organization: ACAL, EECS, University of Michigan, Ann Arbor
Date: Fri, 2 Oct 1992 23:02:53 GMT

mugsy@winton.uucp (Michael G. Bruce) wrote:
>Nope.  The best I can suggest is to mail to `Postmaster' at the site you
>want info for.  This is usually the SysAdmin, and will decide whether or
>not to give you the data.

Actually, you can. At least on a DEC running ultrix 4.2.
I can do a:

% finger @

or

% finger @@machine.domain

and this lists all the users listed in the /etc/passwd on either the local
machine or the machine at machine.domain.

--
Ayman I. Kayssi                               |    ayman@eecs.umich.edu
EECS Department                               +------------------------
University of Michigan                        |          (313) 764-8033
Newsgroups: comp.unix.questions
From: jdell@benazir.mit.edu (John Ellithorpe)
Subject: Re: Need advice for selecting a plotting package
Organization: Massachusetts Institute of Technology
Date: Fri, 2 Oct 1992 16:09:50 GMT

On 30 Sep 92 23:17:55 GMT, ucosmo@mcl.ucsb.edu (Boris Burtin) said:

> I am looking around for a package that would read a set of points from a data
> file and plot them to a graph (preferably in postscript form or to an X window).
> The package should handle 2d, but 3d would be nice.  It could be either a 
> standalone package or a library for fortran or C.

> Is anything like this available on the net?  Can anyone suggest an _inexpensive_
> commercial application?

> I'd appreciate any help on this matter...

> --
>      - Boris
> (cosmo@cs.ucsb.edu)

I one that comes to mind is gnuplot.  Now out in version 3.2, it's pretty
good.  It does 2d and 3d plots, contours, etc.  It works in X, and will
output in postscript, and many other varieties.  It's got command line
editing in it and can read in data or plot functions.

However, the only drawback I see, is that you can't manipulate data points
before you plot them.  But using things like sed/awk you can probably do
any manipulations in unix.

John
--

===============================================================================
John Ellithorpe                           | Internet: jdell@maggie.mit.edu
Dept. of Physics, Rm 26-349               | Phone   : (617) 253-3074  Office
Massachusetts Institute of Technology     |           (617) 253-3072  Lab
Cambridge, MA  02139                      |           (617) 236-4910  Home
===============================================================================
From: twp@rand.mel.cocam.oz.au (Tony Payne CSD)
Newsgroups: comp.unix.questions
Subject: What does 'daemon' mean?
Keywords: daemon
Date: 28 Sep 92 01:37:47 GMT
Organization: Co-Cam Computer Group, Oz


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.
Xref: sparky comp.unix.questions:11559 comp.unix.wizards:4103 comp.sys.sun.admin:6747 comp.sys.sun.misc:4432
From: twp@rand.mel.cocam.oz.au (Tony Payne CSD)
Newsgroups: comp.unix.questions,comp.unix.wizards,comp.sys.sun.admin,comp.sys.sun.misc
Subject: Please help me to boot my diskless SUN 3/60 from the network
Date: 29 Sep 92 07:04:13 GMT
Followup-To: comp.unix.questions
Organization: Co-Cam Computer Group, Oz

Greetings all,

I posted a similar article several weeks ago, but got no response. Our news
server has been playing up, and we lost a heap of articles so either no-one
saw mine, or we lost the responses.

Anyway, we have a stack of SLC's, IPC,s Sparcstation 1, 2 & 10's on our
network, and I have recently aquired a diskless SUN 3/60, which I would like
to boot remotely from one of these.

We have set up our RARP server for this machine and it hapilly goes off and
gets it's IP from it. 

A while back, played around with remote booting an SLC and got to the point
of loading the Kernel, and crashing when we try access filesystems. I wasn't
involved in this step, so could someone please tell me the correct procedure 
for setting up a heterogeneous boot server for this machine ?.

What do I need to do next? I don't have an operating system for this machine,
but would be happy to just get it going as an X-Terminal. Is this possible?
Do I need any other software?

As you can see, I'm fairly ignorant of the possibilities, so _any_ help would
be greatly appreciated.

Thanks in advance,

Tony P.

   ,-_|\     Tony Payne                   Phone:  +61 3 286 3480
  /     \    Co-Cam Computer Group        Fax:    +61 3 416 2985
  \_,-._/    Abbotsford, Melbourne        Email:  twp@rand.mel.cocam.oz.au
       v     AUSTRALIA
From: dbw@svl.cdc.com (Dave Woerner)
Newsgroups: comp.unix.questions
Subject: Re: debuggers and fork(2)
Date: 29 Sep 92 17:09:33 GMT
Distribution: comp

guenther@stolaf.edu (Philip Guenther) writes:


>debugging it: after the fork, I can't follow the child.  I'm using
>gdb, and I can get away with setting a breakpoint after the fork and
[...]
>  Does anyone know of a debugger that will notice the fork() call (or
>that you can tell about the call) and then proceed to trace the child
>as well?  Someone has got to have run across this before (and possibly

This is a feature that depends on the kernel.  Some dbx's do it,
some don't.  I don't know about gdb.  If the kernel can do it, you
either can specify a pid when you start the debugger and the debugger
will take over control of the process, or the debugger will stop
on forks/execs and give you a chance to set breaks in the children.
Since you are having trouble, you must be running on a system that
doesn't support this.  If you have access to SGI or CDC boxes, try
them (with dbx).  The latest MIPS boxes will also do this, but I don't
think they are in the field yet.  I'm sure there are others.

Dave
Newsgroups: comp.unix.questions
From: guenther@stolaf.edu (Philip Guenther)
Subject: debuggers and fork(2)
Organization: Academic Computing Center, St. Olaf College
Distribution: comp
Date: 26 Sep 92 00:58:55

  I'm currently working on writing my own shell, if just to nail down
a good knowledge of unix and C, and have run across a problem in
debugging it: after the fork, I can't follow the child.  I'm using
gdb, and I can get away with setting a breakpoint after the fork and
in the child, then examining the resulting core dump (from the child
getting SIGTRAP), but I can't then step through the child and see what
is going wrong.
  Does anyone know of a debugger that will notice the fork() call (or
that you can tell about the call) and then proceed to trace the child
as well?  Someone has got to have run across this before (and possibly
given up on having a good solution, but even knowing that would help).
Any ideas?

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
Newsgroups: comp.unix.questions
From: mtl1@crux3.cit.cornell.edu (Marshall Lai)
Subject: Zmodem
Summary: Format of files
Keywords: File Transfers
Organization: Cornell Information Technologies
Date: 26 Sep 92 17:13:33 GMT

I just moved a file called rzszXXXX.tar.Z to my unix account so that I can
use zmodem file transfer to my PC. (XXX are some numbers which I forgot.)
How do I decompress it so that I can use it?
Please email your reply.  Thanks in advance.
							Marshall
From: streb@ee.rochester.edu (Chuck S.)
Newsgroups: comp.unix.questions
Subject: Re: Hidden (invisible) files
Date: 6 Oct 92 13:41:24 GMT
Organization: Univ of Rochester, College of Engineering and Applied Science

Everyone says use .filename or .directory how about 
chmod og-rw filename ;this keeps people out
first mkdir ." " which is a directory call space
chmod og-rw ." "
cd ." "
do what has to do here

files can be name " " or "  " or "    " or "  .." ect

chuck

-- 
==============================================================================
=  Thanks for Whatever needed to be written to the net! 
=  There's no place like internet!!!                                      
=  Chuck Streb  internet streb@galaxy.ee.rochester.edu
From: ray@astro.ocis.temple.edu (Ray Lauff)
Newsgroups: comp.unix.questions
Subject: Find directory only once
Date: 27 Sep 92 06:33:59 GMT
Organization: Temple University
X-Newsreader: Tin 1.1 PL5

I am trying to use the find command to search through a bunch of
directories and then do a "du -s {}" on the leaves only (the lowest
level directories).	So, I was using the command

find . -type d -exec du -s {} \; 

but it repeats the parent directories, which in MY directory
structure (over 1 Gigabyte) is taking a long time!  Is there
a way using find to only list the leaves??

Thanks for any help.
ray@astro.temple.edu
From: mjo@ef2007.efhd.ford.com (Mike O'Connor)
Newsgroups: comp.unix.questions
Subject: Re: Help with NEWS (or XRN) on UNIX !!!!
Date: 6 Oct 1992 17:52:56 -0400
Organization: Not an official spokesperson for Ford Motor Co.
Reply-To: "Mike O'Connor" <mjo@fmsrl7.srl.ford.com>
NNTP-Posting-Host: localhost.efhd.ford.com

In article <18679.2ad1ace4@ecs.umass.edu> rajain@ecs.umass.edu writes:

:And yes! I *did* contact the "consultants" of our computing services about
:this matter and they could not "come-up" with any valid reason for the
:non-functionality of some XRN commands! <that's what they said! Maybe they

I doubt that xrn ships with your system, so I suggest you contact the
person who compiled xrn for your system and ask him/her.  

						...Mike

-- 
 Michael J. O'Connor           |  Internet:  mjo@fmsrl7.srl.ford.com
 Ford Motor Company, OPEO      |  UUCP:      ...!{backbone}!fmsrl7!mjo
 20000 Rotunda, Bldg. 1-3001   |  Phone:     +1 (313) 248-1260
 Dearborn, MI  48121           |  Fax:       +1 (313) 323-6277
Newsgroups: comp.unix.questions,news.newusers.questions
From: ellis@nova.gmi.edu (Stew Ellis)
Subject: Re: Sending Mail to BitNet
Organization: GMI Engineering&Management Institute, Flint, MI
Date: Fri, 2 Oct 1992 11:46:47 GMT

eytan@leland.Stanford.EDU (Ethan Joseph Alpern) writes:

>I am trying to send mail to a friend of mine in Italy.  He told me
>that he was on BitNet and gave me the following address: csuc_bo@almad1.
>cineca.it   I have tried sending mail to him but it did not work.
>How do I need to change this address so that my mail will reach him.

>Please send your suggestions to eytan@leland.stanford.edu

>Thanks,

>Ethan

Usually bitnet addresses are not dot addresses.  Usually sites have a bitnet
delivery stunt configured in the sendmail.cf file.  Ours (a Sun running
pretty stock Sun sendmail.cf, with the bitnet stunt added by me) would
translate your address from:
  csuc_bo@almad1.cineca.it.bitnet
to:
  csuc_bo%almad1.cineca.it.bitnet@cunyvm.cuny.edu

In short you should be able to enter either of the above addresses to send
to your friend in Italy (if the address is good).

--
--                                                        ___________________
  R.Stewart(Stew) Ellis, Assoc.Prof., (Off)313-762-9765  /   _____  ______ 
  Humanities & Social Science,  GMI Eng.& Mgmt. Inst.   /        / /  /  / /
  Flint, MI 48504      ellis@nova.gmi.edu              /________/ /  /  / /
From: tchrist@convex.COM (Tom Christiansen)
Newsgroups: comp.unix.questions
Subject: Re: logon detection
Date: 1 Oct 92 04:29:28 GMT
Reply-To: tchrist@convex.COM (Tom Christiansen)
Organization: Convex Computer Corporation, Colorado Springs, CO
Originator: tchrist@pixel.convex.com
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:
:A few of you expressed interest in my program that will detect when 
:someone has logged in. It's called waituser. It's written in standard C.
:The way it works is simple. You give it 1 username and it will loop until
:that user logs into the computer that you are currently on. This is 
:especially useful if you put it in a script that runs in the background.

Why write a C program when this works fine?

    while :; do 
	if who | grep -s "^$some_user "; then
	    break
	else
	    sleep 60
	fi
    done

--tom
-- 
    Tom Christiansen      tchrist@convex.com      convex!tchrist

    "* Unix is a footnote of AT&T Bell Laboratories."
                             --Barry Shein
Newsgroups: comp.unix.questions
From: weigand@pecan.cns.udel.edu (Steve Weigand)
Subject: logon detection
Reply-To: weigand@pecan.cns.udel.edu
Organization: University of Delaware, Newark
Date: Thu, 1 Oct 1992 03:57:44 GMT

A few of you expressed interest in my program that will detect when 
someone has logged in. It's called waituser. It's written in standard C.
The way it works is simple. You give it 1 username and it will loop until
that user logs into the computer that you are currently on. This is 
especially useful if you put it in a script that runs in the background.

For example:

 Suppose you have a friend with a username, "jdoe," and you'd like to 
surprise him when he logs on with a message that says, "HI THERE JOHN DOE!"
All you'd have to do is write a shell script called, for example, 
"test.scr". Here's what you put in it:

	waituser jdoe
	echo "HI THERE JOHN DOE\!" | write jdoe

That's all! When you want to run it, you should put it running in the
background using the ampersand:

	source test.scr &

Then logout of your machine. It will run in the background until it finds
the user "jdoe" and writes a message to his screen. 


I will put waituser.c in comp.sources.unix for you guys to download.

Warning: This program will take up some processor time. The tests I
ran on it didn't show too much of a drain on the system, but there is
some. If you guys can come up with an improved version, that doesn't
take up so much time, then post it.

Ciao, 
 -Steve Weigand
  (weigand@ee.udel.edu)

Newsgroups: comp.unix.questions,comp.unix.shell
From: adminpb@aau.dk (Nis Peder Bonde)
Subject: Re: How to terminate a global cshrc-file
Organization: Aarhus University, Denmark
Date: Tue, 6 Oct 1992 13:32:06 GMT

In an article I asked, if it was posible to terminate further execution
of BOTH an .cshrc-file AND a global /etc/csh.cshrc-file implemented
by putting this line into every users .cshrc-file:
	source /etc/csh.cshrc

The problem was, that putting an exit into /etc/csh.cshrc only
terminated the source of this file and not the source of the users
own .cshrc-file.

As pointed out by Tod McQuillin (tm8t+@andrew.cmu.edu) this is not
possible, because csh isn't set up to permit changes in it's execution-
stack.

My real problem was that under some very special circumstances I didn't
want the user to perform the tset-command in his .cshrc-file. But as Tod
pointed out, it wasn't necessary to exit the source of .cshrc to achieve
this. Instead I could just put a wrapper around /usr/ucb/tset that only
calls the original tset-program when a special environment variable isn't
set.

leo@ine.philips.nl suggested that I just put another line into the users
.cshrc-files:
	source /etc/csh.cshrc
	if ($?leave_cshrc == 1) exit

Both solutions will ofcourse work, but in my situation the former is
more clean and reflects what I really wanted to achieve.

Thanks to both Tod McQuillin and leo@ine.philips.nl for their contributions.

				Bonde
--
Nis Peder Bonde (adminpb@aau.dk, staff@aau.dk)
Systemadministrator, Datakontoret, Aarhus University
Phone     : +45 86 20 27 11 ext. 4993

Monday    : 10-12
Tuesday	  : 12-14
Wednesday : 12-14
Thursday  : 12-14
Friday	  : 10-11
From: kilroy@ms.uky.edu (Paul S. Kilroy)
Newsgroups: comp.unix.questions
Subject: Wanted: Word Proc., Spread Sheet, Drawing apps
Summary: lalal
Keywords: foo
Date: 30 Sep 92 02:11:47 GMT
Organization: University Of Kentucky, Dept. of Math Sciences

Hi,

	I'd like to leave the dos world for good, and start 
    running linux. But b4 I do, I would like to get some input
    on good word processers/text editors, spread sheet, and
    drawing apps that are out there, preferably for X, with nice
    neat GUI's, but that is not necessary. 

thanks in advance

paul

-- 
                       -Paul   (kilroy@ms.uky.edu)
Newsgroups: comp.unix.questions
From: meissner@osf.org (Michael Meissner)
Subject: Re: AWK or PERL: which is better?
Organization: Open Software Foundation
Date: 30 Sep 92 11:14:20

In article <BvD3Bz.J5r@ux1.cso.uiuc.edu> krisk@ux1.cso.uiuc.edu (Kris
Klindworth) writes:

| A few pro's and con's.
| 
| Awk:
	- There are two different awk's out there, the new awk, which
	  is documented in the book, hasn't completely superceeded the
	  old musty v7 awk.  This needs to be keep in mind when
	  dealing with multiple machines (or bring along something
	  like gawk to each machine).

| Perl:
	- Is not installed by default on most systems (ie, you have to
	  build it).

	- Multiple versions, it can be hard to keep all machines up to
	  the same rev level (though if you stick to what's in the
	  book, it is all upward compatible).

	+ Has a debugger.
--
Michael Meissner	email: meissner@osf.org		phone: 617-621-8861
Open Software Foundation, 11 Cambridge Center, Cambridge, MA, 02142

You are in a twisty little passage of standards, all conflicting.
From: da_maha@pavo.concordia.ca (MAHAR, DEREK A.)
Newsgroups: comp.unix.questions
Subject: SED
Date: 6 Oct 92 23:34:00 GMT
Organization: Concordia University
News-Software: VAX/VMS VNEWS 1.41

Any sed gurus out there?  I need your help.  I am using sed for
DOS and am trying to convert Pascal's:

case of x
  ch : begin
         do_this;
         and_this;
       end;
  'x': do_that;
end;

to C's:

switch (x) {
   case ch : /* How can I remove begin without erasing others?     */
            do_this();
            and_this();
            break; /* Another tricky replacement. */
  case 'x': do_that(); 
            break;
}
How can I remove only those begin statements that are within the
scope of the switch?  How can I replace only those end;
statements within the same scope by break; statements?  Thanks
for your help.

DEREK
da_maha@pavo.concordia.ca
Programmer's Quest, Mtl, PQ, CAN v.32bis (514)762-6541 (1:167/110)

Newsgroups: comp.unix.questions