HDTenEightyP/NetNews huggingface dataset:
From: jdell@nefertiti.mit.edu (John Ellithorpe)
Subject: Re: How to set display at login?
Organization: Massachusetts Institute of Technology
Distribution: comp
Date: Wed, 14 Oct 1992 20:44:27 GMT

On Wed, 14 Oct 1992 15:31:08 GMT, dwabra@watson.ibm.com (David Abraham) said:
> Disclaimer: This posting represents the poster's views, not necessarily those of IBM
> Nntp-Posting-Host: stmiris.watson.ibm.com

>  
> I checked the FAQ but didn't see this one.  How can I log in to a
> remote machine and automatically have the shell figure out what my
> local display is and set it properly?  I have just hard coded it
> assuming I always will log in from one remote machine, but that's not
> so great either...  In other words, I log in on machine 'remote' from
> machine 'local', and I don't want to have to type

> setenv DISPLAY local:0 

> each time, nor do I want to put this EXPLICITLY in the .login file.
> Many thanks!

This is what I did, and it seems to be getting more and more complicated,
but anyway.  I look at the output of "who am i" and parse the line for 
the remote computer I'm from.  Then I minimum match for computers which
have names and addresses which are longer than, I think, 14 characters.
Then finally to make sure that I'm not making a mistake I prompt with
what I've found as the default.  Here it is:

--->Cut Here<----
# Hostnames which have addresses longer than 14 characters
set hayhosttab=(wells dopey pohl clarke hoyle sleepy sneezy)

if ("$TERM" == "xterm") then
    set defhost=`who am i | sed -n -e 's/^.*(//;s/)$//;l'`
#
# Now search for some commonly used names
# 
    foreach hostcheck ( $hayhosttab )
      if ( `echo $defhost | egrep -c $hostcheck` != 0 ) then
	set defhost=$hostcheck.haystack.edu
	/usr/bin/X11/resize >& /dev/null
      endif
    end
    echo -n "What computer are you on? [$defhost] "
    set resp=($<)
    if ( "$resp" != "" ) then	
	set disphost=`basename $resp :0`
	set disphost=`basename $disphost :0.0`
	echo "Setting DISPLAY to "$disphost
	setenv NEWSSERVER `/usr/openwin/bin/newsserverstr $disphost`
	setenv DISPLAY $disphost":0.0"
    else
	setenv NEWSSERVER `/usr/openwin/bin/newsserverstr $defhost`
	setenv DISPLAY $defhost":0.0"
    endif
endif
--->Cut Here<---

I hope this works.  The NEWSSERVER stuff is for Sun's OpenWindows, if you
run purely X-windows stuff, then you can just skip those lines.

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
===============================================================================
Newsgroups: comp.unix.questions
From: mshulman@genghis.borland.com (Michael Shulman)
Subject: how busy is my machine?
Summary: what is unix command that says how busy the machine is?
Organization: Borland International
Date: Thu, 15 Oct 1992 22:06:13 GMT

Hello, all-

What is the unix command (HP-UX if that matters) that will tell me (at my 
tty) how busy the machine is? You know, something like:
   snake: 38% busy

I know that there's the xwindows utility on the workstation monitor, but the 
machine is being used as a server, so it's across on the other side of the 
building. 

I'm running from a VT220 emulator, so I can't use the 'perf' monitor, which 
uses Xwindows. 

thanks!

-ms
From: rodkey@westmont.EDU (John Rodkey)
Newsgroups: comp.unix.questions
Subject: forms editor? editing a set of free-form variables
Summary: need a forms editor, I think
Date: 14 Oct 92 01:05:39 GMT
Organization: Westmont College, Santa Barbara, CA

I have an set of ksh scripts that deal with a group of variables which
are set from input from the user (user is prompted for Title, Author,
ISBN, etc),   and then the information gleaned is sent to another
program for processing.  This program requires a very strict format,
so it is imperative that the user not mess up the data.  

Guess what?  the users want to be able to edit their data after they
once input it (silly them! ;) )  But I can't let them go mess up
my nicely verified data (isbn number has the correct check digit, etc)!

What to do?  On a less critical application, I would just put them into
their editor of choice with the variables as freeform text,  but I can't
afford that unless there were a tool to allow 'form editing' - but I don't
even know where to look for the tools.  

Anyone know any ftp-able or emailable application development tools to
do this kind of stuff?


-- 
----------==========[[[[[[[[[[]]]]]]]]]]==========----------
          John Rodkey, Director of Academic Computing, 
            Westmont College, Santa Barbara, CA
          rodkey@westmont.EDU, uunet!westmx!rodkey
Newsgroups: comp.unix.questions,comp.ultrix.questions
From: wessir@stein.u.washington.edu (Bill the CAT)
Subject: Re: passing output of ftp site to shell
Keywords: shell, csh, scripts, ftp
Organization: University of Washington, Seattle
Date: Thu, 8 Oct 1992 03:21:26 GMT

How can you pass ftp remote output to a csh script?

Newsgroups: comp.unix.questions
From: ARTEMIS@gribb.hsr.no (Hetland, Thor Henning  7-93)
Subject: Device driver (I/O)
Organization: Rogaland University Centre
Date: Fri, 9 Oct 1992 08:46:21 GMT


Do anyone out there have an C-example of an I/O device driver?  We are doing 
one right now, and would like to check out some tricks..

Please e-mail any responce.

TSM.
From: rlyle@nl.oracle.com (Rob Lyle - Wizard of Ozje)
Newsgroups: comp.unix.questions
Subject: Re: A peeve (was Re: A QUESTION
Date: 15 Oct 92 16:52:15 GMT
Organization: Oracle Europe

In article <1992Oct13.201842.23272@ttinews.tti.com>, reid@metis.tti.com (Reid Kneeland) writes:
|> 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)?

Hmmm - yeah.  I suppose it's the ol' LEFT => RIGHT dataflow diagram.  People
visualise dataflows modelled on real life situations.  Objects generally
travel from left to right ...

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

It's human nature.  Why are "pipelines" called "pipelines" unless it was envisaged
that people would understand them more by imagining a real pipeline.  It's
therefore only natural to expect data/oil/water to flow in a conventional LEFT =>
RIGHT direction.


Another $0.02 from Holland.

--Rob.

|> 
|> =====================================================================
|> 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.

-- 
Robert P K Lyle		#include <std_disclaimer.h>	**********************
UNIX System Manager					 If I could play the
ORACLE Nederland					Blue Peter theme tune
Rijnzathe 6,	 					   here, I would.
3454 PV  						**********************
De Meern
E-mail:  rlyle@nl.oracle.com				FAX:     +31 3406 65603
Voice:   +31 3406 94211					Private: +31 10 4809140
Newsgroups: comp.unix.questions
From: rich@progress.COM (Rich Lenihan)
Subject: Re: Shell question
Keywords: ksh, csh et all.
Organization: Progress Software Corp.
Date: Fri, 9 Oct 1992 14:58:11 GMT

wayne@jahangir.UUCP (wayne) writes:


>     Is there a way to test a shell variable to tell if it's
>an integer or a string?

[ `expr $VAR + 0 2>/dev/null` ] && echo INTEGER || echo NOT!

-Rich



--
Rich Lenihan                 UUCP: mit-eddie!progress!rich
Progress Software Corp.      Internet: rich@progress.com
From: bultman@dgw.rws.nl (G.W.Bultman)
Newsgroups: comp.unix.questions
Subject: What are the times in time[x]?
Date: 12 Oct 92 15:20:50 GMT

Hi,

I've tried several sources & people, but cannot find the answer to 
the following queston: 

What exactly are the times given by the time, or timex commands: 

    real :    the time elapsed between start & finish of the job
    user :    ????
    system:   processor time(?)

Where does IO come into it?

Thanks for any pointers,
Gert.

--

    o                                                                o   
  / | \    Gert Bultman <bultman@dgw.rws.nl>   Koningskade 4       / | \  
 o--o--o   Tidal Waters Division               2596 AA The Hague  o--o--o 
  \ | /    Rijkswaterstaat                     The Netherlands     \ | /  
    o                                                                o
From: AMARAL@fncrd0.fnal.gov (Jorge Luis M. do Amaral)
Newsgroups: comp.unix.questions
Subject: What does cc -D option means ?
Date: 9 Oct 92 19:51:01 GMT

Hi ,
	Does anyone can explain me what the cc -D option means ?

	I'm trying to compile a program that has in his make something
like:
	cc -g -DWANT_X11 -DWANT_MFB ....

	The man does not help much . Is there anyone that can help me ?

Thanks,
				Jorge (amaral@fnacp.fnal.gov)
From: ianm@icsbelf.co.uk (Ian Moran)
Newsgroups: comp.unix.questions
Subject: Zmodem  & cu
Summary: Using zmodem over a cu link
Keywords: zmodem, cu
Date: 9 Oct 92 09:18:32 GMT
Organization: ICS Computing Group Ltd., Belfast
X-Newsreader: TIN [version 1.1 PL6]

Hello

How can the file transfer protocol, zmodem, be used sucessfully over
a cu link to another host machine. I have tried cu'ing to the host
machine and starting a file tranfer from host to local. Starting a local
shell and then running the zmodem in receive mode doesn't work. Th transfer
eventually times out.

Regards

 Ian

--

Ian Moran                     Internet:  ianm@icsbelf.co.uk
ICS Computing Group Ltd.      UUCP:      ...{uknet,uunet,mcsun}!icsbelf!ianm
Belfast, N. Ireland.          Fidonet:   2:440/59.5, 2:257/10.1, 2:252/309.6
Newsgroups: comp.unix.questions,comp.unix.misc
From: pchan@mdd.comm.mot.com (Pat Chan)
Subject: Profiling on shared library..
Organization: Motorola - Mobile Data Division; Richmond, BC
Date: Thu, 8 Oct 1992 23:35:15 GMT

I'm trying to do profiling (Sun profile) on my program.
The ld chokes when it's a shared library.

Any help is welcome.

pat chan

-- 
Pat Chan                          Internet: pchan@mdd.comm.mot.com 
Motorola Mobile Data Division     Voice: (604) 241-6032
11411 Number Five Road            Fax: (604) 241-6042
Richmond, BC Canada V7A 4Z3
Newsgroups: comp.unix.questions
From: jdell@zenobia.mit.edu (John Ellithorpe)
Subject: Re: A QUESTION
Organization: Massachusetts Institute of Technology
Date: Thu, 8 Oct 1992 22:58:47 GMT

On 7 Oct 92 21:23:28 GMT, csc5840@hertz.njit.edu (Sekhar Chitti) said:
> Nntp-Posting-Host: hertz.njit.edu
> Hi netters,

> I have a question on using 'sed' and 'awk' to edit a text file.
> I have a text file of nearly 500 lines and having 6 fields.
> Now that I wanna delete the last 5 fields of each line and 
> keep only the first one. What is the easiest way I can do this? 
> I am a bit familiar with sed and awk. But don't know exactly
> how I can use them to do this? Could anybody help me in this
> regard? Thanks.

All you need is:

awk '{print $1}' < input-file > output-file

and there you have it.

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
===============================================================================
Newsgroups: comp.unix.questions
From: ykhsu@cbnewsf.cb.att.com (yung-kao.hsu)
Subject: changing control terminal
Organization: AT&T
Date: Thu, 8 Oct 1992 21:48:22 GMT


We encounter the following problem and appreciate any information
in solving it. Here is the problem:

	We have a group of processes who frequently open and close
	terminal devices for external communications. Since control
	terminal associated with each process is determined by the
	first device it opened after setpgrp() call or it first
	started (according to some UNIX documents), to make sure signal
	handling won't get messed up, these process will call setpgrp()
	each time they close and open a tty device (only one device is
	opened at any time).

	Despite that, we continue to see many of these processes
	shared the same control terminal when we do a "ps" command.
	The ingoblem seems to us is that using setpgrp() only allow
	us to set the control terminal for ONCE; any subsequent
	calls and device opening will not be able to affect this
	in the same process.

	I wonder if anyone encountered such a problem before and what
	was the solution besides forking. I appreciate any responses.

Yung-Kao Hsu
PS: I am not a regular subscriber to this group; forgive me if it has been
frequently asked or this is the wrong group to post.

Newsgroups: comp.unix.questions,comp.os.ms-windows.programmer.win32,comp.unix.dos-under-unix
From: nitin@Ingres.COM (Nitin Borwankar)
Subject: Re: NT Under SCO Unix
Reply-To: nitin@Ingres.COM (Nitin Borwankar)
Organization: Ask Computer Systems Inc., Ingres Division, Alameda CA 94501
Date: 9 Oct 92 21:55:13 GMT

In article <1992Oct07.214406.28902@microsoft.com> alistair@microsoft.com (Alistair Banks) writes:
>May I request that this thread is taken over to .advocacy groups. It
>has degenerated irretrievably from an questions about plans into a
>debate about the realtive merits of UI techniques - this is way off
>the subject matter of Win32 API programming.
>
>-- Alistair

Thank you!! YES !!

Nitin Borwankar,
nitin@ingres.com 	**** visualize whirled peas ****
From: winney@DAL.MOBIL.COM (Randy Winney)
Newsgroups: comp.unix.questions
Subject: Re: Automating a Telnet Session
Date: 8 Oct 92 15:16:58 GMT

In article <5943@ucsbcsl.ucsb.edu>, harley@engrhub.ucsb.edu (Harley Hahn) writes:
|> Does anyone have a script that will automate a telnet session?
|> I am think, in particular, of something to automate
|> using the U of Mich. Weather Underground service.
|> 
|> Thanks,
|> 
|> Harley Hahn
|> harley@engrhub.ucsb.edu
|>  

You need "expect"!
Read
  "expect:Scripts for Controlling Interactive Processes"
  Computing Systems, Spring 1991  (published by the ACM)
  
Get it from
   durer.cme.nist.gov in pub/expect/expect.shar.Z

-- 
Randy Winney       winney@dal.mobil.com
Mobil Exploration & Producing Technology Center
Dallas, Texas
From: joseph@joebloe.maple-shade.nj.us (Joseph Nathan Hall)
Newsgroups: comp.unix.questions
Subject: exec-ing script after kill -TERM 1?
Date: Sat, 10 Oct 92 01:46:14 EDT
Organization: 5 Sigma Software
Reply-To: joseph@joebloe.maple-shade.nj.us
X-Mailer: uAccess - Macintosh Release: 1.5v5


Please reply via email: I don't read or receive this group.

I'm wondering if there is a way to set things up so that I can have
a script exec'ed automatically immediately after a kill -TERM 1.  The 
idea is to automate the process of doing level 0 dumps on a SPARCstation 
running SunOS 4.1.2.  Currently I just don't know of a way to do an
unattended dump in single-user mode, that is, how to get one started
in single-user mode without having to type exec something-or-other
in the process.

I am not so sure how critical it really is to have the system in
single-user mode during level 0 dumps, anyway.  Could a suitable level
of quiescence be achieved by disabling new process creation through
init during the backup?  Would killing and restarting some processes
or daemons be necessary?  I mean, I could kill whatever I needed to,
then just reboot after the dump ....  Hmm.  Maybe that's an idea.
I am sufficiently ignorant, however, that I wouldn't know which processes
to kill without some study, or advice.  (Latter preferred!)

Just curious, wishing I were surrounded by gurus at work so I wouldn't
have to post embarrassing stuff like this.

uunet!joebloe!joseph   (609) 273-8200 day   joseph%joebloe@uunet.uu.net
2102 Ryan's Run East        Rt 38 & 41             Maple Shade NJ 08052
-----My employer isn't paying for this, and my opinions are my own-----
Newsgroups: comp.unix.questions
From: jmolinari@hamp.hampshire.edu
Subject: foregrounding an old process
Organization: Hampshire College
Date: Wed, 14 Oct 1992 02:33:29 GMT

	I remember seeing this question a couple of weeks ago, and I probably
missed the answer(s) to it:

	How can I foreground a process that I started in a previous session?
That is, I run a program, push into the background, log out, log back in,
and ...?

			Thank you!

Xref: sparky comp.unix.questions:11910 comp.unix.sys5.r3:28
From: hausler@aldetec.oz.au (Graham Hausler)
Newsgroups: comp.unix.questions,comp.unix.sys5.r3
Subject: UNIX physical memory control
Date: 8 Oct 92 08:45:53 GMT
Organization: Aldetec Pty Ltd, Perth West Australia

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
memory from the UNIX free memory lists ? Alternatively, I have seen 
reference to the device /dev/kmem (and /dev/mem ??) at various times, does
this device allow me to modify the physical memory available to UNIX ? If so,
where do I obtain information on controlling/accessing this device ? Are
there any other alternatives ?

Please email any responses directly, I will post a summary if requested.

Thanks 
Graham Hausler.



-- 
Internet:   hausler@aldetec.oz.au      --> GEMCO, Perth, Australia.

Newsgroups: comp.unix.questions
From: khm@cs.brown.edu (Katie Mohrfeld)
Subject: RPC memory management
Organization: Brown University Department of Computer Science
Date: Tue, 13 Oct 1992 14:46:32 GMT




I apologize if the this not the appropriate newsgroup
for this question.

I'd like to use RPC (remote procedure calls) with one constraint.  
On the client side, I need for the RPC routines to use my own 
malloc/free routines.  Any suggestions?  Is there a more appropriate
newgroup for this question?

Thanks,
Katie
-------------------------------------------------------------------------------
Katie H. Mohrfeld   			Brown University Computer Science
Box 1910				khm@cs.brown.edu
Brown University			khm@browncs.bitnet
Newsgroups: comp.unix.questions
From: rscott@spock.NMSU.Edu (Joseph Good)
Subject: Which shell is more popular
Organization: New Mexico State University
Date: Thu, 15 Oct 1992 23:43:39 GMT


Just one question here.

I am currently writing a configuration program that will write
a shell script, and I was just wondering which is the most popular.

It is pretty simple, and only executes command lines.
Do all shell's execute command lines the same?

-jdg

--

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)
From: bbs.barfeau@GOONSQUAD.SPIES.COM (David Fox)
Newsgroups: comp.unix.questions
Subject: Troff to Epson 24 pin printer
Date: 15 Oct 92 18:20:58 GMT
Organization: Spies in the wire, information co-op -- (408) 867-7400

Hi *,
I am running 386bsd 0.1, and I have groff, gnu troff.  The only
formatting devices I have are -Tascii and -Tps.  I can use -Tascii,
but it treats my printer as a dumb device.
 
What I'd like to know is where can I get a -Tepson setup for my
Epson Action Printer L-1000, with the font cartridge.  It would be
better to "rasterize" the input, so I can get output similar to
ATM/Truetype in MS/Windows.  Alternatively, it could just have the
ESC sequences for the various commands like bold, underline, italics,
font selection, etc.
Newsgroups: comp.unix.questions
From: gene@aee.aee.com (Gene Kochanowsky)
Subject: Re: IS UNIX DEAD?
Organization: Associated Electronic Engineers
Date: Fri, 9 Oct 1992 17:49:53 GMT

fr@compu.com (Fred Rump from home) writes:

>dansmith@Autodesk.COM (Daniel Smith) writes:

>>	C'mon guys, the Unix pie isn't that big to support so much
>>in-fighting.  At the moment, it looks like a slice of lemon, cherry,
>>blueberry...  Think of this:  if just 10% of approximately 100 million
>>DOS users switch to NT in the next three years, that's what, a bigger
>>slice than any of the existing Unix vendors? any two or three of them
>>put together?

>Somehow that thought process is pervasive thruout computerland. But why?

>Is it because most people think you must sit in front of a computer in order
>to use it?  How many users are there on the typical SCO system for example?

>One OS, one box - maybe 10 users?

>Take the 600 or 700 hundred thousand SCO licenses out there and multiply. And 
>that's only SCO. Add all the minis from everybody who run UNIX and then add 
>the workstations somewhere at the end. The workstations like SUNs are the 
>smallest quantity of the bunch - but they represent big bucks to SUN as they 
>are expensive.

>So SUN has what, 2 billion in sales? And SCO has 160 million. But they are 
>nowhere equal in actual number of users.  SCO is much bigger in that regard.

>If I can recall correctly bith have roughly the same number of UNIX licenses 
>out there except that SCO hangs lots of terminals on theirs and SUN stands 
>alone.

>So 10 million NT users are nothing to brag about just yet. By then the number 
>of UNIX users will certainly also have grown. 

	Camon guys! This sort of discussion is nonsense. The more people that 
	use computers, the more ways computers will be used. One size does not 
	fit all, and never will. Unix, in some form or another, will be around 
	for some time to come, so will WindowsNT, DOS, MacOS, and so on. From 
	what I understand there are still die hard CPM users out there. I
	strongly suspect that the operating system of the future will be none
	of these, but something completely different.

Gene Kochanowsky
gene@aee.com
-- 
Gene Kochanowsky                           | "And remember ....
Associated Electronic Engineers, Inc.      |       The better you look ... 
(904)893-6741 Voice, (904)893-2758 Fax     |       the more you will see."
gene@aee.com                               |               Miss Lidia