HDTenEightyP/NetNews huggingface dataset:
From: barmar@think.com (Barry Margolin)
Newsgroups: comp.unix.questions
Subject: Re: Anyone can remove files
Date: 9 Oct 1992 16:56:00 GMT
Organization: Thinking Machines Corporation, Cambridge MA, USA
NNTP-Posting-Host: telecaster.think.com

In article <1992Oct9.031603.21228@uts.cc.wayne.edu> tom@uts.cc.wayne.edu (Thomas Richard Stevenson) writes:
>coleman@bldrdoc.gov (Sean Coleman 497-5672 ) writes:
>>If a directory has the permissions drwxrwxrwx and there
>>exists a file in the directory owned by user A with
>>permissions rw-------, why should anyone be allowed to
>>remove the file?

>There are two different permissions here. The file permissions
>control what a user can do with the data within the file. It
>does NOT control what a user can do with the file it's self.
>
>The dir permissions control what a user can do with the file. It
>does NOT control what a user can do with the data within the file.

Actually, that explanation isn't quite right.

A directory only contains file names and references to the actual files.
Directory permissions control what you can do with the names of files.
This includes removing the name of a file.

An analogy would be a library with a card catalog and a rare books
collection.  The rare books may be in a locked room, but the catalog would
be accessible to users.  Anyone can steal the a card out of the catalog,
but only the librarian can get a book from this room.  (The flaw in this
analogy is that stealing the card doesn't make the book disappear, but
removing the last link to a Unix file makes it go away.)

The difference between this and what Thomas said is that the file
permissions also govern the ability to change modes, set the mtime and
atime, and change ownership (on versions of Unix that permit ordinary users
to do this).  These are operations on the file, not its contents, but they
are still controlled by the file permissions.
-- 
Barry Margolin
System Manager, Thinking Machines Corp.

barmar@think.com          {uunet,harvard}!think!barmar
Lines: 6
Date: Sat, 10 Oct 92 09:36:37 MDT
Newsgroups: comp.unix.questions
Subject: Re: Help with fork() and exec__()
Distribution: na
Organization: Brigham Young University, Provo UT USA
From: haymoree@bones.et.byu.edu (Edward Haymore)


Robert Earl pointed out that I was calling fork() twice.  I removed the 
offending fork() and it works great.  Thanks, Robert.

Ed Haymore
ed_haymore@byu.edu
From: scst81@csc.liv.ac.uk (Mr. I. Rowland)
Newsgroups: comp.unix.questions
Subject: Sending email to the States
Date: 7 Oct 92 10:51:23 GMT
Organization: Computer Science, Liverpool University

Keywords: 

I need to get in touch with someone at UCSC to find out if I can mail messages to a friend who is studying there. Does anybody know who to send the query to or how I can find out.
From: NUNEZ@esevvx.cica.es (REGI's)
Newsgroups: comp.unix.questions
Subject: (none)
Date: 14 Oct 92 19:23:16 GMT

>X-Envelope-to: INFO-UNIX@BRL.mil
>X-VMS-To: IN::"INFO-UNIX@BRL.MIL"

1
12-OCT-1992 23:16:44.37
   1 00:00:00.00
13-OCT-1992 23:16:44.37
info-unix-request@sem.brl.mil
rafapa@obelix.cica.es

Received: from SEM.BRL.MIL by ESEVVX.CICA.ES ;  9-OCT-1992 23:16:43.52
Received: from SEM.BRL.MIL by SEM.BRL.MIL id ab29354; 9 Oct 92 16:50 EDT
Received: from wharf.brl.mil by SEM.BRL.MIL id ab25562; 9 Oct 92 14:29 EDT
Received: from cearn.cern.ch by WHARF.BRL.MIL id aa13274; 9 Oct 92 14:09 EDT
Received: from tifrvax.bitnet by CEARN.cern.ch (IBM VM SMTP V2R2)
   with BSMTP id 8257; Fri, 09 Oct 92 19:10:26 SET
Date: Fri, 9 Oct 92 23:06 IST +0530
From: "DARSHAN G. MAHARANA" <DGM%tifrvax.BITNET@cearn.cern.ch>
Subject: Re: INFO-UNIX Digest  V16#020
To: INFO-UNIX@BRL.MIL
Message-id: <E2501864A0FF00956E@tifrvax.bitnet>
X-Envelope-to: INFO-UNIX@BRL.MIL
X-VMS-To: IN%"INFO-UNIX@BRL.MIL"
X-VMS-Cc: DGM
From: bbs.barfeau@GOONSQUAD.SPIES.COM (David Fox)
Newsgroups: comp.unix.questions
Subject: PKZIP for unix? (pkzip version 1.10)
Date: 10 Oct 92 05:35:46 GMT
Organization: Spies in the wire, information co-op -- (408) 867-7400

Hi. I've acquired a version of zip/unzip for unix (BSD) that works
but it's compatible with version 1.93a (DOS), and not 1.10 (DOS),
which most/all DOS-oriented BBSes use.  Thus, I need to find where
I can get a version that's compatible.
 
Please email with ftp sites where I can get these.  I think it's
unzip 5.0?
Newsgroups: comp.unix.questions
From: spp@crane.cis.ufl.edu (Stephen P. Potter)
Subject: Re: copying a file without login 
Organization: Univ. of Florida CIS Dept.
Date: Sun, 11 Oct 92 21:46:17 GMT

In article <1992Oct11.055250.29460@cam.compserv.utas.edu.au> mkwan@esk.compserv.utas.edu.au (Michael C. KWAN) writes:
>	Can I copy a file from another account (under same host) without using
>ftp, rlogin (rhosts) ?  If I know the password of that account.
>
>	Thanks in advance.
>
>
>						Michael 
Well, if the file protections are set correctly, you can simply copy it.  Or, you
can use 'su' to become that user, copy it into another directory, 'chown' it to
you.  Or, just change the file permissions after you 'su' and then copy it.

Of course, the obvious question is why are you so worried about copying it
without logging into the account, especially if you know the password (I'm
assuming you legally obtained the password)

Steve
Unix Consultant


-- 
    cccc    i   ssss   University of Florida  Computer and Information Sciences
  c           s        Unix Consulting Staff   (904) 392-1183  E309A 
 c        i   ssss     Email: spp@ufl.edu, spp@cis.ufl.edu, 
c        i       s      u4930any@elm.circa.ufl.edu, PRISONER@MAPLE.circa.ufl.edu cccc   i    ssss       PRISONER@ufcc.ufl.edu, Bitnet: PRISONER@ufcc
Newsgroups: comp.unix.questions,comp.unix.programmer
From: clin@eng.umd.edu (Charles Lin)
Subject: Re: Any Good Book(s) about [Advance] "C" on Unix ?
Date: Tue, 13 Oct 92 07:16:08 GMT
Organization: College of Engineering, University of Maryland, College Park
Originator: clin@transform.eng.umd.edu


In article <kko.718875353@sfu.ca>, kko@fraser.sfu.ca (Samuel Ko) writes:
>umnoor@ccu.umanitoba.ca (Nasir Ahmed Noor) writes:
>
>>Could someone please list a [few] good book[s] which discuss C programming
>>IN DEPTH on Unix system. I have just recently started to experiment with
>>C, but I am otherwise quite comfortable with programming. All introductory
>>or 'make yourself master' books on C really start from telling me what a 
>>computer and a byte is. Result is that about half of the book is of no use
>>and in this process I just cant learn. Also none of the books tell me the
>>advanced level C stuff and interfacing with operating system [Unix]
>>etc etc. What is your pick for a book in this "range"?
>
>>thanks.
>
>Some suggestions from my list of recommended Unix books ...
>
>2. Title: Advanced Programming in The Unix Environment
>   Author: Richard Stevens
>   Publisher: Addison-Wesley
>   Edition: 1992
>   ISBN: 0-201-56317-7
>   Comment: **** Highly Recommended ****
>            A going-to-be classic on how programs work under Unix ...
>

     Stevens also wrote about Network Programming in UNIX, but this
book may supercede it.

     As for C++ books, I happen to like the Weiskamp and Flamig book.
It does require a C background, but I like it's organization better
than say Lippmann's book (sp?).

--
Charles Lin
clin@eng.umd.edu
Newsgroups: comp.unix.questions
Subject: savehist and .history
From: sl870@io.ee.usu.edu (ullas gargi)
Date: 11 Oct 92 03:05:33 MDT
Distribution: world
Organization: Utah State University

Hi,

    I am running X11 on a Sun 4. My .cshrc contains a line that says
            "set savehist=2000"
However, only commands that I execute on my console window are 
recorded in .history, not ones that I execute in various other
xterms. Why? 


Ullas Gargi
Utah State University
From: jimg@ocean.rutgers.edu (Jim Gasprich)
Newsgroups: comp.unix.questions
Subject: prtvtoc (SVR4) vs. dkinfo (SUN OS 4.1.1)
Keywords: prtvtoc
Date: 10 Oct 92 00:28:23 GMT
Organization: Rutgers Univ., New Brunswick, N.J.

I am stuck with a couple of OKIstations and their storage devices, I'd like
to move the 600 M drives onto a SUN SPARCstation IPC (SUN OS 4.1.1). What I
need is info (# cyls, etc.) on the OKI drives so that the info can be used
in the SUN's format program.

OKI has since gone belly-up (if you have any of their machines, you would
understand why), so I have no one to pesker on the phone. The OKIs use
SVR4, and we have some feeble manuals from Intel which have helped, but not
enough.

In SUN OS, there is a command called dkinfo, which gives info on a disk, i.e.:
	#dkinfo sd0

	sd0: Emulex MD21 controller at addr f8800000, unit # 24
	1254 cylinders 9 heads 36 sectors/track
	a: 16848 sectors (52 cyls)
	   starting cylinder 0
	b: 65448 sectors (202 cyls)
	   starting cylinder 52
	c: 406296 sectors (1254 cyls)
	   starting cylinder 0
	d: No such device or address
	e: No such device or address
	f: No such device or address
	g: 283176 sectors (874 cyls)
	   starting cylinder 254
	h: 40824 sectors (126 cyls)
	   starting cylinder 1128

In SVR4, there is a command called prtvtoc (print Volume Table of Contents),
which should give me what I want, but alas, does not seem to work. Here's the
lowdown:

	# df
	/         (/dev/root       ):  48872 blocks   46804 files
	/proc     (/proc           ):      0 blocks     143 files
	/dev/fd   (/dev/fd         ):      0 blocks       0 files
	/stand    (/dev/dsk/c0t0d0sa):   6425 blocks      92 files
	/grass    (/dev/dsk/c0t1d0s1): 665250 blocks   40822 files

(the last listing is the disk I want info on)

	# prtvtoc /dev/rdsk/c0t1d0s1
	prtvtoc: device /dev/rdsk/c0t1d0s1 is not a slice 0 device
	prtvtoc [-a] [-e] [-p] [-f filename] raw-device

I'm a little lost as to the error message, and the manual does not even give
a listing of the other options.

Any help or clues would be greatly appreciated. Thanks.
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Jim Gasprich                            e-mail: jimg@ocean.rutgers.edu
Research & Support Slave                tel:    (908) 932-9631
Cook College Remote Sensing Center      fax:    (908) 932-8644
Rutgers University
PO Box 231
New Brunswick, NJ, O8903        "Du bist mein Gweckman" - Anonymous Fascist
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Newsgroups: comp.unix.questions
From: martin@datacomm.ucc.okstate.edu (Martin McCormick)
Subject: Re: ls Command for MS-DOS
Organization: Oklahoma State University, Stillwater, OK
Date: Fri, 16 Oct 1992 13:22:00 GMT


I would like to thank all the respondants.  The suggestion was made to use
a product called MKS which has several Unix tools.  Again, many thanks.

Martin McCormick WB5AGZ   Stillwater, OK
O.S.U. Computer Center Data Communications Group
From: davis@passy.ilog.fr (Harley Davis)
Newsgroups: comp.unix.questions
Subject: When to use libcurses
Date: 9 Oct 92 16:53:53 GMT
Organization: ILOG S.A., Gentilly, France


Is there any reason not to use the curses library for controlling a
terminal within a portable program?  It seems to exist on all Unices
of interest as well as VMS, yet GNU Emacs does not seem to use it in
most cases.  This makes me wonder if there is some problem with it.

-- Harley Davis
--

------------------------------------------------------------------------------
nom: Harley Davis			ILOG S.A.
net: davis@ilog.fr			2 Avenue Gallie'ni, BP 85
tel: (33 1) 46 63 66 66			94253 Gentilly Cedex, France
From: tchrist@convex.COM (Tom Christiansen)
Newsgroups: comp.unix.questions
Subject: Re: Man page naming convention
Date: 8 Oct 92 18:31:08 GMT
Article-I.D.: news.1992Oct8.183108.21963
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 barmar@think.com (Barry Margolin):
:This is the kind of silly question I usually answer, but now I've come up
:with one of my own....
:
: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 possibility I considered is that it would allow you to link all the
:man<section> directories together if you wanted; however, I'm under the
:impression that the naming convention predates symbolic links (the only
:directory links that are normally permitted).

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.

--tom
-- 
    Tom Christiansen      tchrist@convex.com      convex!tchrist
    "What is the sound of Perl?  Is it not the sound of a wall that
     people have stopped banging their heads against?"
		--Larry Wall in <1992Aug26.184221.29627@netlabs.com>
From: klaus@helsinki.esf.de (Klaus Wicovsky)
Newsgroups: comp.unix.questions
Subject: awk output files
Date: 14 Oct 92 07:04:19 GMT
Reply-To: klaus@helsinki.esf.de (Klaus Wicovsky)
Organization: ESF Headquarters, Berlin, FRG


Hello,

I need to produce more than ten output files from an awk program. The trouble is that neither awk nor nawk are capable of doing that. 

Is there a way to overcome this restriction? Is it possible to "close" a file within awk? 

Any help is appreciated!!!


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

   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,comp.unix.wizards
From: Josef Moellers <mollers.pad@sni.de>
Subject: Re: Sockets and stuff
Date: Mon, 12 Oct 1992 07:42:00 GMT
Organization: Siemens Nixdorf Info.Sys. AG, Paderborn, Germany

In <Bvu2Cp.69J@cs.dal.ca> digdon@ug.cs.dal.ca (Mike Digdon) writes:


>I am working on a project that involves a daemon, and obviously, I will be
>using sockets for all of the communications. After looking thru various FAQ's
>and stuff, I just can't seem to find what I am looking for..

>I know how to set up a socket and talk with it.. however, my problem is
>waiting for a connection and multiple users..

>If a connection has not been made, I want my program (the daemon) to run
>some other stuff, since more than one user will be able to access it at
>a time. I am led to believe that accept sits and waits for a connection
>of some sort and doesn't do anything else until a connection is made.
>Am I incorrect in this assumption? If this is the case, how would I check
>to see if a connection is being made, and if not, continue running other
>parts of my program to take care of the users who are already connected.

>And where might I find some stuff on the net that talks about sockets and
>daemons and the like? I have a few books here, but they don't say much..
>at least not what I need..

Then You haven't read Stevens' book. It gives very fine examples for
concurrent servers that do just what You want.
You'll have a "daemon" that sits and waits for connections and, if one
arrives, forks off a child to do the dirty work while daddy sits ... and
waits for connections.
-- 
| Josef Moellers		| c/o Siemens Nixdorf Informationssysteme AG  |
|  USA: mollers.pad@sni-usa.com	| Abt. STO-XS 113	   | Riemekestrasse   |
| !USA: mollers.pad@sni.de	| Phone: (+49) 5251 835124 | D-4790 Paderborn |
From: mugsy@winton.uucp (Michael G. Bruce)
Newsgroups: comp.unix.questions
Subject: Re: IS UNIX DEAD?
Date: 8 Oct 1992 15:22:57 GMT
Organization: Worcester Polytechnic Institute, MA
NNTP-Posting-Host: winton.wpi.edu

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)


-- 
  Michael G. Bruce - mugsy@wpi.wpi.edu - Computer Science '94	      |
Sun System Adminstrator - Electrical/Computer Engineering Dept	   -- + --
          AK211 - Computational Fields Laboratory		      |
***---***---***---***---***---***---***---***---***---***--***	      |
From: jsb16@cunixa.cc.columbia.edu (Jennifer S Broekman)
Newsgroups: comp.unix.questions
Subject: Digestifying mail messages
Date: 14 Oct 92 23:30:21 GMT
Reply-To: jsb16@cunixa.cc.columbia.edu (Jennifer S Broekman)
Followup-To: email
Organization: Columbia University

Greetings,
I'm looking for a program/script/whatever that will make a digest of mail
messages from a single source, preferably something that will cooperate with
emacs RMAIL or vm. References to whom I really should be asking are also
welcome. Please reply to email (jsb16@cunixa.cc.columbia.edu).

-jenneke

My biggest budget problem is food:
My stomach wants four meals a day.
My budget wants two.
Newsgroups: comp.unix.questions
From: wessir@stein.u.washington.edu (Bill the CAT)
Subject: talk messages
Organization: University of Washington, Seattle
Date: Sat, 10 Oct 1992 17:15:29 GMT


The message "checking for invitation on callers machine"  appears when trying
to talk with another user on the same machine.  It seems to freeze the operation.  Does anyone know how to fix this problem?
reply email to wessir@u.washington.edu
thanks for any help here.
Newsgroups: comp.unix.questions
From: guest@monu1.cc.monash.edu.au (Lost in C! :-))
Subject: Can you write/talk to a terminal which set "mesg -n"?
Organization: Monash University, Australia.
Date: Wed, 7 Oct 1992 05:26:22 GMT

Hi y'all

Could anyone tell me that if we can write/talk to a terminal which
set "mesg -n"?  I heard someone said that it is possible if we know
which port to write to.  I'm very new to Unix and very confused.
Thanks for your reply.

Duc

Newsgroups: comp.unix.questions
From: sp_pm@space.alcbel.be (Paul Moore)
Subject: Is archie available
Date: Thu, 15 Oct 92 18:16:01 +0100
X-Received: by usenet.pa.dec.com; id AA28721; Thu, 15 Oct 92 13:30:23 -0700
X-Received: by inet-gw-1.pa.dec.com; id AA25523; Thu, 15 Oct 92 13:28:21 -0700
X-Received: from ub4b.buug.be by mcsun.EU.net with SMTPid AA27232 (5.65b/CWI-2.180); Thu, 15 Oct 1992 21:28:05 +0100
X-Received: from alcbel.UUCP by ub4b.buug.be (5.65c/ub4b_02)id AA10281; Thu, 15 Oct 1992 21:28:11 +0100
X-Received: from se.alcbel.be by alcbel.be (4.1/SMI-4.1)id AA09084; Thu, 15 Oct 92 18:11:51 +0100
X-Received: by se.alcbel.be (5.57/SE_04)id AA22549; Thu, 15 Oct 92 18:16:53 +0100
X-Received: from btmpjw.space by space.alcbel.be (4.1/SMI-4.0)id AA04389; Thu, 15 Oct 92 18:16:01 +0100
X-To: comp.unix.questions.usenet

Sorry if this is in the wrong newsgroup, but I don't have any proper access to the net, and this seems the best place to ask.

Is the program archie, usually running on cs.mcgill.ca, available? I've been trying, unsuccessfully, to contact it.

Please email, as I don't have access to the net.

- Paul

---
email: sp_pm@space.alcbel.be
Newsgroups: comp.unix.questions
From: andyrose@netcom.com (San Francisco Fractal Factory)
Subject: Complete process command info?
Organization: Netcom - Online Communication Services  (408 241-9760 guest) 
Date: Mon, 12 Oct 1992 18:40:53 GMT

I get a partial command line with ps -ef
(SGI IRIX), and I'd like the whole command
line.

I want to poll all the machines on our net
to find out where the rendering processes are putting
the rendered frames.  This info is in the command
line but the whole command line does not appear with ps.

Is there a system call which accesses this info?

I can get the PID, can I get the command which goes
with it?  

-thanks
respond to andyrose@netcom.com

-- 
Andrew Rose andyrose@netcom.com FAX 4155537756 When peace rules the planet
From: jfw@ksr.com (John F. Woods)
Newsgroups: comp.unix.questions
Subject: Re: Man page naming convention
Date: 12 Oct 92 17:28:25 EDT

barmar@think.com (Barry Margolin) 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?

The answer is probably lost in history, but some possibilities:

1) Originally they were in one directory, and quadratic search of a big
directory on a PDP-11 slowed down the manual formatting time more than was
needed, hence they were busted out into separate directories.

2) That way you can create the link() system call manual page and the
link program manual page in the same directory, right alongside the sources.
Lines: 24
Date: Sat, 10 Oct 92 00:04:16 MDT
Newsgroups: comp.unix.questions
Subject: Help with fork() and exec__()
Summary: How do I use these?
Distribution: na
Organization: Brigham Young University, Provo UT USA
From: haymoree@bones.et.byu.edu (Edward Haymore)

I'm working on a C program that is supposed to execute a unix command using
fork() and execvp().  The sample code the TA gave is as follows:

		int pid;
		char *file, *array[N];
		... 
		pid = fork();
		if ((pid=fork())==0)
			{
			execvp(file,array);
			exit(1);
			}
		else wait((union wait *)0);

Unfortunately, it doesn't seem to work.  The appropriate program executes,
but its output is repeated once...  and multiple instances of my C program
seem to be created.

The man pages don't tell me how these function calls are supposed to work
together, and K&R doesn't say anything about it.  Can anyone suggest some
improvements to this routine?

Ed Haymore
ed_haymore@byu.edu
Newsgroups: comp.unix.questions
From: aa@rexago8.uucp (Adam Andrews)
Subject: Re: Hidden (invisible) files
Organization: Summit Information Systems
Date: Wed, 7 Oct 1992 12:55:58 GMT

streb@ee.rochester.edu (Chuck S.) writes:

>do what has to do here
>files can be name " " or "  " or "    " or "  .." ect

The disadvantage here is that the filenames will still be detectable, though
not visible.  'ls' will show a blank line; 'ls -x' will contain a blank
field, 'ls -l' will contain a line showing permissions, ownership, size, etc
but with no filename.

Preceding your file or dirname with '.' will at least ensure that the file
will only be detectable using 'ls -a'.

-- 
Adam Andrews                "When the going gets weird, we get even weirder."
uunet!rexago8!aa or aa@rexago8.UUCP       e-mail only to aa@summitis.com
From: ce095@cleveland.Freenet.Edu (Jeffrey Scott Traigle)
Newsgroups: comp.unix.questions
Subject: lost file question
Date: 13 Oct 1992 02:21:32 GMT
Organization: Case Western Reserve University, Cleveland, OH (USA)
Reply-To: ce095@cleveland.Freenet.Edu (Jeffrey Scott Traigle)
NNTP-Posting-Host: hela.ins.cwru.edu


I had a user today who lost one of her files and I'm not sure why
so I figured I'd ask. Here's what she did:

She was compressing some files (with compress). While it was running,
she decided that she didn't want to do that so she hit ^C. When she
checked for her file, it was gone from her directory and it wasn't
in the lost+found or tmp directories.

Jeff Traigle
From: Patrick Goebel <patrick@casbs.Stanford.EDU>
Subject: Re: Need # of screen rows for shell variable
Organization: Center for Advanced Study in the Behavioral Sciences
Date: Thu, 8 Oct 1992 02:21:46 GMT


Earlier I asked the net:

> I need to determine the number of rows on a user's terminal screen for
> a shell script I am writing.  

Many thanks for all the ingenious answers.  Here a few in case you
need one yourself some day.

(1) rows=`echo $TERMCAP | sed 's/.*:li#\([0-9][0-9]*\):.*/\1/'`

(2) hmm...our HPs have environment variables that are called LINES and
    COLUMNS that do what you want...

(3) tput cols
    tput lines

    Reads terminfo. Works in SysVr3 from SCO.

And my favorite (i.e. the one I will use):

(4) stty size | awk '{ print $1 }'

    works for me on SUNOS4.1.2, CONVEX(argh), and UNICOS (Cray YMP)
    systems.


Cheers,
patrick
--
Patrick Goebel                    E-MAIL: patrick@casbs.Stanford.EDU
Network Administrator             VOICE:  (415) 321-2052
CASBS, 202 Junipero Serra Blvd.   FAX:    (415) 321-1192
Stanford, CA 94305                BEEPER: Temporarily Out of Order...
Newsgroups: comp.unix.questions