HDTenEightyP/NetNews huggingface dataset:
From: zessin@hptest.rbi.informatik.uni-frankfurt.de (Ralf Zessin)
Newsgroups: comp.unix.wizards,comp.unix.bsd
Subject: Re: Have $8000, what to buy?
Date: 26 Aug 92 17:46:59 GMT
Distribution: comp

In <RG.92Aug10111713@nymph.msel.unh.edu> rg@msel.unh.edu (Roger Gonzalez) writes:


>I want a Unix machine.  Now.

>I want BSD features.  I want full networking.  I want X11R5.  I want color.  I
>want at least 1.2Gb of disk, and 16Mb of memory.  I have $8000, and won't be
>able to add much more for at least a year.

At our University we have had the problem to buy new equipment,
so we have had testet many ones, so here my opinions:
( I belive prices are in USA lower than in Germany, sorry if higher than limit )

Good Machine: HP705 Color, very fast machine for that price
	bad : SYSTEM V, new,so headache's by porting are programmed.
	If you want only BSD-look, you can get some GNU-Stuff to satisfy
	your needs
	
Good BSD: Dec's, their ULTRIX is BSD with sysv extensions, in X-performance
	a little bit slow.
	
Data General:	Not Well-Known, but also fast. Shipped cc is gnu-cc

AIX:	forget it, their licence-politic is f***ing
	The have nice features,but not so good implemented
	fast, but...

Sun:	only good (IMHO) with SunOs pre Solaris, much pd-Software,
	also replacements for buggy programms.


Hope this helps a little bit

	- Ralf

The opinions statated here are my own
Newsgroups: comp.unix.wizards
From: lezz@merlin.dev.cdx.mot.com (Lezz Giles)
Subject: Re: A few UNIX questions
Reply-To: lezz@merlin.dev.cdx.mot.com (Lezz Giles)
Organization: Motorola Codex, Canton, MA
Date: Fri, 28 Aug 1992 23:27:20 GMT

In article <1992Aug27.162220.16130@krfiny.uucp>, jeffj@krfiny.uucp (J. Jonas) writes:
|>>mike@BRL.MIL ( Mike Muuss) writes:
|>>:
|>>: From: Michael Panosh <mwp.michael@melpn1.prime.com> PrimeService, Australia
|>>:
|>>: > Can *anyone* tell me why the file size is a signed integer.  Surely there
|>>: > is no need for negative sized files!!
|>>:
|>>: Because lseek() needs to be able to return -1 on error, and not have it
|>>: look like a valid file offset.
|>
|>>Umm, and a *signed* file size helps, does it?
|>
|>The external type used for file size (as used for system calls)
|>and the internal one used in the on-disk inode don't have to be the same.
|>
|>I agree that the type used for the return value for lseek()
|>needs to be signed so that errors can be returned
|>(0 and >0 are valid values).

But what happens if the file is more than 0x0FFF FFFF bytes long?
Any unsigned 32-bit number larger than this cannot be represented
as a signed 32-bit number - therefore in order to be able to show
error conditions you either need to change the type returned by
lseek to something like a 64-bit value, or have an extra parameter
that says whether the offset is valid, or make sure that the
offset can always be represented in an signed 32-bit number.

Lezz
From: ram@eiffel.com (Raphael Manfredi)
Newsgroups: comp.unix.wizards
Subject: Organizing rendez-vous between processes
Keywords: networking, sockets, ipc
Date: 30 Aug 92 20:05:53 GMT
Organization: Interactive Software Engineering, Santa Barbara CA

Hello wizards,

I'd like to organize a rendez-vous between two processes located on
different machines connected on an IP network. I am aware that setting
up an entry in /etc/services would solve this rendez-vous, but that
is precisely what I cannot do.

How does X solve this problem? Any X client may specify a remote display,
and that client has to find the remote X socket without having anything
registered at a well known port. I understand that for local connections,
a named socket in the AF_UNIX domain can be a rendez-vous point, but with
the AF_INET domain, you have to specify a port.

Of course, what is relevant here is the way X organizes the communication
at the IP level, not the interface at the Xlib level. I am not trying to
build an X application but rather mimic the way X handles network requests
and connections. And I take X as an example because it seems to be the
way for me to go, but other approaches are welcome.

I'll post a summary of answers if appropriate.  Thank you in advance.
-- 
Raphael Manfredi <ram@eiffel.com>
Interactive Software Engineering Inc.
270 Storke Road, Suite #7                      / Tel +1 (805) 685-1006 \
Goleta, California 93117, USA                  \ Fax +1 (805) 685-6869 /
From: regli@bedlam.cme.nist.gov (William Regli)
Newsgroups: comp.unix.wizards
Subject: stdin Error
Date: 27 Aug 92 18:33:01 GMT
Distribution: comp
Organization: National Institute for Standards and Technology


Hello all--

I'm attempting to run a csh shell program in the background and am
being faced with the following error when the program starts:


       Warning: Cannot freopen /dev/tty to stdin


This is a program that I have had working before and suddenly it
cannot find stdin.  Every time I redirect output with "cat xxx > yyy"
or "ls >> zzz" in the program it does not go to the files xxx and yyy.
They end up empty and the output goes elsewhere.  I've had ethe
program print out `tty` and it claims to not be running on a terminal.

Is ther any way I can fool it into think it is on a terminal?  I know
I had this working before---what could I have possibly changed?

Thanks in advance!

b
================ 
William C. Regli                              
United States Department of Commerce          	
National Institute for Standards and Technology 
Factory Automation Systems Division, Engineering Design Laboratory
Gaithersburgh, MD 20899
Electronic: regli@cme.nist.gov  Vocal: (301)-975-3978
From: henrik@mpci.llnl.gov (Henrik Klagges)
Newsgroups: comp.unix.wizards
Subject: How to kill a hung program out of a 'make'
Date: 25 Aug 92 22:02:04 GMT


Hi,
suppose 'make' executes a bunch of programs. Suppose some of them are junk
and get hung. How can make recover ? I'd like to use something like the 
csh 'limit' command, so that each executable has e.g. a max of 3 cpu mins
before it gets terminated.

Thanks for your help.

Cheers, Henrik
From: sweh@spuddy.uucp (Stephen Harris)
Newsgroups: comp.unix.wizards
Subject: Re: 'cat'ting 8 bit data to the terminal.....
Date: 28 Aug 92 20:30:05 GMT
Organization: Spuddy's Public Usenet Domain

In article <14333@auspex-gw.auspex.com> guy@Auspex.COM (Guy Harris) writes:
>Someone may be confused.
>
>There is absolutely no option to "stty" to cause *output* to be stripped
>to 7 bits on a SunOS 4.x pseudo-tty.  The "line discipline" STREAMS
>module "ldterm" doesn't have one, and the pseudo-tty driver doesn't
>either.

Your right - I'm now confused!

On a machine I admin in Greece, we use the ELOT928 character set to enable
Greek characters to appear on the screen.  But to allow this to work we
need to login with telnet -8 or rlogin -8, or (and?) stty pass8, otherwise
the high bit seems to be stripped....haven't quite checked what goes wrong,
but if I login from a terminal server (eg Annex IIe) using normal telnet, I
then need to stty pass8 before Elot928 workes properly.

Or is this a totally unrelated problem, and I'm talking out of my rear end
(again)?

-- 
                               Stephen Harris
               sweh@spuddy.uucp    ...!uknet!axion!spuddy!sweh

 * Meeeeow ! Call Spud the Cat on > +44 203 638780 < for free Usenet access *
Newsgroups: comp.unix.wizards
From: fgg@gemini.gsfc.nasa.gov (Frank G. Gomez)
Subject: SIGKILL'ed by exec()
Organization: NASA GSFC CDP VLBI
Date: Thu, 27 Aug 1992 14:51:17 GMT

Hello,

We are  experiencing a SIGKILL when  attempting an exec system call.  We
think it is  probably  due to some  system  parameter  that  needs to be
increased.  This hypothesis is based on the following two passages ...

------------------------------------------------------------------------
HP-UX Reference Manual Volume 3, page 669 (signal(5)):

   "SIGKILL  is  sent  by  the  system  if an  exec(2)  system  call  is
    unsuccessful  and the  original  program has already  been  deleted"

------------------------------------------------------------------------
Bach's "The Design of the UNIX Operating System" page 220, 4th paragraph
(discussing exec's algorithm):

   "After copying the exec  parameters to a holding place in the kernel,
    the kernel  detaches the old regions of the process using  algorithm
    detachreg  [ ......  ] At this point the process  has no  user-level
    context,  so any  errors  that it incurs  from now on  result in its
    termination,  caused by a signal [the SIGKILL].  Such errors include
    running out of space in the kernel region table,  attempting to load
    a program whose size exceeds the system limit,  attempting to load a
    program  whose  region  addresses  overlap,  and  others."
------------------------------------------------------------------------

The important questions appear to be:

1) What are these  'other'  reasons ?
2) To   which   system   parameters do  the  first  two  above-mentioned
   reasons  correspond  ?
3) Under  what circumstances would the third reason occur ?

The  machine  is an HP 730 at 8.05 with 100 MB of swap.  The  error  has
occurred even when the process was the only user process running.

Any type of answers to these questions would be greatly appreciated.


Frank G. Gomez        fgg@gemini.gsfc.nasa.gov
From: ksingh@passion.fia.dmg.ml.com (Kunal Singh)
Newsgroups: comp.unix.wizards
Subject: ASYNCHRONOUS FILE PRESENCE NOTIFICATION
Keywords: UNIX FILE
Date: 1 Sep 92 14:26:47 GMT
Organization: Merrill Lynch Debt Markets

I'm trying to write a program which will check a certain directory for incoming files.  I want this program to be interrupt-driven such that as soon as a file is put into this directory, my program is signaled and can process the file.

I realize that my program can wake up at fixed intervals and check the directory itself for new files.  But I'm hoping for a more elegant solution.

Is there any way for my program to have the UNIX operating system notify me of the creation of a file in my subdirectory ?  

Any help would be greatly appreciated.  Thanks.

Kunal Singh
Newsgroups: comp.unix.wizards
From: dstewart+@cs.cmu.edu (David B Stewart)
Subject: Question on COFF file format
Cc: dstewart
Organization: The Robotics Institute, Carnegie Mellon University
Date: Fri, 4 Sep 1992 16:16:30 GMT


I am writing a program which must read in an i860 COFF file.

Is there any way of knowing the size of the string table before
the table is read in?

The header information gives the sizes of everything else, but not
for the string table.  However, to be able to allocate memory to
store the string table, I have to know its size, but that doesn't
seem to be available.

If the size isn't available, is there a customary way of reading
the string table, as used by loaders which must read the COFF file?

Please respond via email.

Thanks a whole bunch!

~dave

-------------------------------------------------------------------------------
David B. Stewart  - email: <dstewart@cmu.edu>            The Robotics Institute
snail mail:       - ECE Dept., Carnegie Mellon University, Pittsburgh, PA 15213
Current Projects: - Chimera 3.0 Real-Time Operating System
		  - Reconfigurable Sensor-Based Control Systems
Xref: sparky comp.unix.wizards:3788 comp.unix.misc:3495
From: royc@tcsrtp.uucp (Roy Andrew Crabtree)
Newsgroups: comp.xenix.sco,comp.unix.wizards,comp.unix.misc
Subject: SCO ODT 1.0 (1.0.0y):  UUCP hangup bugs; uugetty fix?
Keywords: uucp, uugetty, stty, hupcl, clocal
Date: 3 Sep 92 22:27:23 GMT
Reply-To: uunet!duke.cs.duke.edu!wolves!tcsrtp!royc
Organization: Triangle Computer Society


1)  If I use the modem control device (sat tty1A) so that DCD
  is listened to and causes hang up
	a)  stty clocal fails to alter behavior of uugetty
	b) uugetty fns inbound AOK but always talks even with '-r'
	c)  which in turn creates a lock file and stops outbound usage
	d)  I can't 'cu -l tty1A' until DCD is high ...
	   (using DSR for DCD fixes)

2) If I use a non-modem control tty (ty1a) so that DCD is NOT
    listened to
	a)  outbound traffic works AOK
	b)  but gettydefs cannot set '-clocal' during getty
	c)  so that if a pickup occurs during carrier or login prompt
	   a lock file gets created  which does NOT go away if a
	  line drop occurs
	d) so that if '-t 30' (etc) is omitted, outbound does NOT
	  get to the modem
	e) and even with '-t 60' it si still locked for (up to) 60
	   seconds uselessly
	f)  while if the user gets logged in entirely and drops the line
	   or hangs up rather than exiting
	g)  the shell does NOT get a hangup signal and sticks around
	h)  causing a security problem

... all on a 9pin connector.


Is there fix available out there for uugetty(1m)?  SCO support
seems a little unsure about this ...

	Basically, uugetty ought to keep its mouth shut
	until a character whatever happens to the cvontrol
	lines on a modem control port and 'clocal'/'-clocal'

	should WORK RIGHT on tty lines ...


royc
From: barnes@umrgec (James Barnes)
Newsgroups: comp.unix.wizards
Subject: Device Driver
Date: 1 Sep 92 18:14:15 GMT


           Hi,

           I have searched archie, gatekeeper and other large archive
           machines looking for example device driver code.  I have used
           driver as the key without any luck.  If someone could point
           be in the direction of some example Ultrix or BSD device
           driver code I would appreciate it.  Preferably the example
           would be a software device driver (Pseudo) and written for
           Ultrix.

           Thanks,

           Jym Barnes           barnes@umrgec.eec.umr.edu
Newsgroups: comp.unix.wizards
From: cavers@menudo.uh.edu (Chris M. Cavers)
Subject: Questions
Organization: University of Houston
Date: Wed, 26 Aug 1992 19:55:34 GMT

I am trying to adapt the example ram disk device driver source
given in the Sun manual on device drivers.

a) When the os requests something from the device driver, what is the
proper sequence of actions to take if I wish to suspend the calling
process and queue the request.  (A detailed step by step example would
be appreciated). 

b) What is in the ram.h file that is included in the example source code?

Thanks in advance
From: rchandra@toz.buffalo.ny.us (Dr. R. Chandra)
Newsgroups: comp.unix.wizards
Subject: Re: cd'ing to a dir from
Date: 3 Sep 92 16:41:52 GMT
X-Maildoor: WaflineMail 1.00r

> hurtta@cs.Helsinki.FI (Kari E. Hurtta) writes:
>
> >In article <BtA89y.MCt@encore.com> mpalmer@encore.com (Mike Palmer)
> wrote:
> >> Can anyone suggest a way for a process to cd to a dir & stay there
> >> when the process exits.
>
> >So program must modify its parent's environment ...
> >That's magic.
>
> Yesterday I tried out Norton's ncd for Unix (please no more flame wars
> on
> this topic), and it works. But how? I didn't look whether ncd was suid
> root, but how else can the program mess around in the environment? Or
> is
> this on of the kernel changes Norton Utilities for Unix requires?

Hmmmm....can't tell you for sure.  But if you think about it, the
inheritance rules for exec(2) should work.  The shell that invokes ncd
by exec(2) instead of fork(2)/exec(2), and then ncd can exec(2) either
another program, or its invoking shell program, which ONLY BY CONVENTION
is in the environment variable SHELL (the invoking shell may or may not
choose to pass the environment it got from its parent program (I realize
this term is usually used for only processes...), usually login(1)).
Ergo, let's for a moment assume csh.  You can do

        alias ncd exec ncd

or make it a Bourne function (if sh), or whatever.

 * Q-Blue v0.7 [NR] *
From: jaap@alice.att.com (jaap)
Newsgroups: comp.unix.wizards
Subject: Re: Changing "pg" options
Date: 26 Aug 92 23:12:14 GMT
Article-I.D.: alice.23562
Reply-To: jaap@alice.UUCP ()
Distribution: usa
Organization: AT&T, Bell Labs


 > In article <1992Aug25.190239.19142@cbfsb.cb.att.com> rajeev@cbnewsf.cb.att.com (rajeev.dolas) writes:

wants to kno how to prevent a shell being executed in a program.

Of course setting the SHELL variable night help, but not always. A safer
mechanism is to get the file in the debuuger and replace the ! with a '\0'
in the command parser.

	jaap
From: liang@mun04.gs.com (Luke Liang)
Newsgroups: comp.unix.wizards
Subject: Re:  subscribe
Date: 28 Aug 92 20:18:21 GMT

You should send a mail to one of the listserver instead of the list itself to
subscribe. The format of the command is:
  SUBscribe listname <full_name>
The command should be in the body of the mail. The user name is LISTSERVER.

Luke Liang      Goldman & Sachs     New York City
From: bill@toby.transportation.state.mn.us (Hari Seldon psycohistorian)
Newsgroups: comp.unix.wizards
Subject: PCNFS: what are the alternatives?
Date: 28 Aug 92 17:58:47 GMT


to: Luigi Martin <lm@marvin.jpl.oz>

>Can anyone recommend any other software packages (not necessarily NFS)
>which use ethernet cards and use very little memory (or can be loaded
>into ems/xms). Even something that can be loaded/removed as a TSR is
>acceptable.

we use ftp's idrive for nfs on the pc's here.
it can beloaded and unloaded, and loaded high (try quarterdeck's qemm
to manage the pc's high mem region. it works far better than the dos
stuff) anyway it uses, ummmmm lets see ... 55984 bytes (which i can
recover). try qemm. it takes a bit of work, but if you have to support
pc's well ... it's worth the trouble.
or
use ftp's ethernet driver and ftp any files you need. depends on if you
want file swapping or file system sharing.

to: Iris Butzbach <ib@iersv1.energietechnik.uni-stuttgart.de>
>My problem is the following:
>... The busy light flashes but there was no output

i know this is going to sound stupid but, is there a showpage in there
somewhere?

to: bill pociengel :-)
>Caution: post to wizards only if you are yourself a wizard.

accually i'm just a pisson tring to save some wizards time :-)

bill pociengel

ps. what has happened to the pc unix eval someone was doin?
Newsgroups: comp.unix.wizards
From: bas@phys.uva.nl (Bas de Bakker)
Subject: Re: Questions About Unix
Organization: Institute for Theoretical Physics, Amsterdam, the Netherlands
Date: Thu, 27 Aug 1992 13:33:52 GMT

>>>>> On 26 Aug 92 11:40:22 GMT, jhelberg@nl.oracle.com (Joost Helberg) said:

>> : 1. can a program crash the processor on which it is running ? if so how?.

jh> No, it shouldn't be capable to do so. You might try generating a lot of
jh> signals (preferably recursive) to let the kernel-stack of the process grow,
jh> this crashes some machines.

By a bit of playing around with multiprocess ptrace(), one could crash
an IBM RS6000 under AIX 3.1. I haven't tried this with 3.2 yet.

To be more precise, I used dbx with multiprocess turned on, on the
following program:

#include <sys/ptrace.h>
main()
{
if (fork()==0) ptrace(PT_TRACE_ME,0,0,0,0);
}

In dbx, continuing both processes after the fork() and then sending
one of them a signal (anyone I tried) the computer crashed. Must have
been some kernel bug.

Bas de Bakker.
From: am815@cleveland.Freenet.Edu (Joel Peter Anderson)
Newsgroups: comp.unix.wizards
Subject: Re: STREAMS M_ERROR Message problem
Date: 4 Sep 1992 17:38:28 GMT
Organization: Case Western Reserve University, Cleveland, OH (USA)
Reply-To: am815@cleveland.Freenet.Edu (Joel Peter Anderson)
NNTP-Posting-Host: slc5.ins.cwru.edu


In a previous article, gram@aim1.aztec.co.za (Graham Wheeler) says:

>am815@cleveland.Freenet.Edu (Joel Peter Anderson) writes:
>
>>succeed.  If a byte is set to 0, the error state is cleared for the
>>corresponding side of theStream.  The values NOERROR and 0 are not
>>valid for the one-byte form of the M_ERROR message."
>
>Have you tried using 0 instead on NOERROR? Maybe an error condition has
>occurred anyway, and using NOERROR does not change anything.
>

Good idea, but, sorry, no dice.  After we experienced this problem I wrote
a dumb little device driver that allows you to send any two bytes up the
stream as an M_ERROR message.  I have tried all permutations and 1)can get
errors registered on either or both sides 2) get errors on the read side
only.  As soon as I send any M_ERROR skyward all reads fail.  If NOERROR or
zero is sent, errno reads as EAGAIN.(?) Otherwise, if I send an error
value, that value is put in errno. 

Any other thoughts?


-- 
-------------------------------------------------------------------------
  joela@apertus.mn.org           |Freenet: am815@cleveland.freenet.edu
    Joel Peter Anderson          |PNET: jpa@pnet51.orbit.mn.org
    Apertus Technologies         |GEnie:J.ANDERSON71
From: tmilner@hprpcd.rose.hp.com (Tom Milner)
Newsgroups: comp.unix.wizards
Subject: Re: 'cat'ting 8 bit data to the terminal.....
Date: 26 Aug 92 20:52:59 GMT
Organization: Performance Technology Center, Roseville

In comp.unix.wizards, barnett@grymoire.crd.ge.com (Bruce Barnett) writes:

|    I have a question about using cat to output 8 bit data to the
|    terminal. Actually, I want to ignore the 8th bit. I thought
|    	stty -istrip
|    	cat file
|    would remove the parity bit, but apparently not on SunOS 4.1.1. I am
|    trying to determine if
|    	a) this is a bug
|    	b) there is another stty option I have to use ( I tried
|    	   several combinations)
|    	c) I have to write a program to remove parity from a pty
|    	   connection.
|
	.
	.
|    --
|    Bruce Barnett <barnett@crd.ge.com> uunet!crdgw1!barnett

How 'bout
	cat file | tr '[\200-\377]' '[\000-\177]'
From: tuttle@deshaw.com (MacKenzie Tuttle)
Newsgroups: comp.unix.wizards
Subject: Unique Job Opportunity
Date: 3 Sep 92 19:17:23 GMT
Distribution: na
Organization: D. E. Shaw & Co.
Originator: tuttle@sun21

WANTED:

UNIX WIZARD TO HEAD OUR SUPERSTAR SYSTEMS TEAM
                  

D. E. Shaw & Co. is a small, young, highly capitalized, extremely
successful Wall Street firm specializing in quantitative finance and
computational trading.  We are looking to hire Systems Programmers to
join a select team of software engineers involved in building
state-of-the-art computer systems that trade billions of dollars worth
of securities.

NOTE: We are _not_ a typical financial firm.  We are a group of
financial hackers out to beat the market.  We do not wear suits and
ties.

Potential six-figure salary for Head of Systems.  Extremely well
compensated junior positions are available as well.

The successful candidate will have strong knowledge of UNIX, C, and
various distributed and networked environments.  Four or more years
experience in systems programming or administration, and an
undergraduate or graduate degree in Computer Science or a related
field, is required.

Responsibilities, depending on the position, include building
distributed real-time applications and designing, supporting, and
enhancing our networked computing environment.  It is our practice to
compensate unusually gifted individuals at a level exceeding that of
the market. Applicants are encouraged to forward their resumes in
confidence to:

				  MacKenzie Tuttle
				  D. E. Shaw & Co.
				  Tower 45, 39th Floor
				  120 West 45th Street
				  New York, NY  10036

				  email: recruiting@deshaw.com
				  Fax: (212) 478-0101

-- 
Mackenzie Tuttle		D. E. Shaw & Co., New York, NY
tuttle@deshaw.com		(212)478-0000
Newsgroups: comp.unix.wizards,comp.unix.programmer,comp.unix.internals
From: rstevens@noao.edu (W. Richard Stevens)
Subject: Re: Implementation of Sys V. based message queues
Organization: National Optical Astronomy Observatories, Tucson, AZ, USA
Date: Thu, 3 Sep 1992 23:28:07 GMT

>> I would like to be able to use select(2) to multiplex descriptor based
>> objects (sockets) as well as the message queue.
>
> I could be mistaken, but my experience with using Sys V IPC with select()
> is:  'aint no way...

Believe it or not, I just found out that AIX on the RS/6000 actually
provides a function named select() with a different interface that
actually lets you multiplex both descriptors and message queues.
When I saw their interface I almost barfed.

	Rich Stevens  (rstevens@noao.edu)