HDTenEightyP/NetNews huggingface dataset:
From: TGJ@ukhouo.prime.com (Terry Jeffery International Product Support Group)
Newsgroups: comp.unix.wizards
Subject: outputting to /dev/console
Date: 21 Aug 92 15:11:00 GMT

I tried unix-info last week with this question. I received one reply
that gave me a work-around of the 'logger' function. Can anyone actually
explain why this is happening?

I have a (Bourne) script that outputs a line of info to /dev/console. I
changed the program to rsh to my machine and put the message on my
console window. I got the message to come out OK but now the program just
craps out once the message is issued. Both machines are Sun3's running 4.0.3

The console message was issued using 'echo'. The only change to the
program was to declare $PROCNUM and wrap the echo line with a csh and a few
quote changes to that line ie from:-

      echo "^G$IAM:started $$" > /dev/console

      to:-

        PROCNUM=$$
        rsh mymachine "echo '^G$IAM:started $PROCNUM' > /dev/console"

Can anyone explain what is happening and point me to a better method of issuing
the console message on another machine?

TIA


============================================================================
Terry Jeffery International Product Support Group   Telephone +44 256 301230
Computervision (UK) Ltd Basingstoke                 Fax       +44 256 301215
Internet : tgj@ukhouo.prime.com
X.400    :  /C=GB/A=TMailUK/P=Prime/O=Prime Computer Ltd/S=Jeffery/G=Terry

  I play all the right notes - not necessarily in the right order
============================================================================
Newsgroups: comp.unix.wizards
From: jeffj@krfiny.uucp (J. Jonas)
Subject: Re: Queueing of signals
Keywords: SIGCHLD, signals, queueing, sigvec
Organization: Jeff's house of computer pieces
Date: Fri, 14 Aug 1992 17:31:44 GMT

In article <1992Aug13.160824.11077@bwdls61.bnr.ca> gwaters@bwdls139.bnr.ca
	(Glenn Waters) writes:
>I have a program that seems to lose SIGCHLD signals. There are two (or more)
>processes that die simultaneously -- thus generating two SIGCHLDs
>to the parent. I only seem to get the first SIGCHLD.
>
>Are the signals queued? I believe not.

The "traditional' Unix signal handler has a variable with
ONE BIT for each signal to indicate that the signal has occurred.
Using signal(2), there's a pointer to a function for each signal
with either ignores it, does a default action, or calls a function that
you specified in the signal(2) call.
Setting the bit causes the corresponding action to take place.
Upon entry to the signal handler, the input bit was reset and
the action could revert to the default.
(That's why signal handlers with signal(2) usually re-catch the
signal as the first action, and then handle re-entrancy).

Using sigset(2), there's a "MASK" between the variable of incoming
signals and the signal handler, thus you can hold and release
signal handling.

Still, there's only ONE BIT to show that the signal has occurred.
So, yes, you're correct.  Signals are not queued nor counted.
Semaphores or messages are for that.

>What is the correct method of catching the subsequent child deaths that are
>not queued?

I have a program that spawns 2 processes and then continues to perform
some background processing.
There are times that both children terminate and only one SIGCHILD is
received.  Since any termination causes all to exit, I don't care if
there's an unwaited for child when the process exits.

I'm composing this as I post, so play around with this idea:
assume the child signal catcher in being called for possibly
more than 1 child.  Since wait(2) has no NO_DELAY option,
put an alarm around it to time it out when there are no
other terminated children.
If you have a timer that allows sleeps of less than 1 second,
that's even better!


sigset (SIGCLD, catchSigChild);


void catchSigChild (int sig)
{
pid_t ret;
int status;

alarm (1);
while ((ret = wait (&status)) != (-1))
	{
	alarm (1);  /*  reset alarm  */
	printf("child pid %d terminated with status %d\n", ret, status);
	}
/*  return when wait() returns -1 with ECHILD or EINTR  */
}

- Jeffrey Jonas
jeffj@synsys.uucp
-- 
-- 
Jeffrey Jonas

jeffj@synsys.uucp
Xref: sparky comp.unix.wizards:3610 comp.unix.bsd:4143
From: tim@sinix.UUCP (Tim Bissell)
Newsgroups: comp.unix.wizards,comp.unix.bsd
Subject: Re: Have $8000, what to buy?
Date: 14 Aug 92 15:50:11 GMT
Distribution: comp
Organization: SNI AG Muenchen, STO XS

In article <1992Aug11.164928.2658@tfs.com> paigen@tfs.com (David Paigen) writes:
>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
>
>After having spent 5 years contracting on almost every workstation class
>unix platform, I'll add my $0.02 here.
>
>Stay away from A/UX.  It is slow (or used to be) and not really BSD.  Ditto
>for the NeXT, a flashy machine for users, an "insanity machine" for
>seasoned unix people.  Doesn't even pretend to be real unix.

As far as the NeXT is concerned, ignore this guy.  NeXT Unix *is* BSD 4.3.
Well, it is Mach 2.0 which still consists largely of BSD 4.3, but with
modified VM.  Only visible difference is the absence of sbrk(2) and brk(2).

It has TCP/IP, NFS, Yellow pages/NIS plus NeXT's own NetInfo stuff, but you
can ignore that.  The NeXT windowing system is based around Display Postscript,
and is much nicer than X to program, but you can find several implementations
of X11, free and commercial.  You can get colour.  It has excellent sound.
It has *lots* of goodies supplied for free with it.  A colour station
will cost $6000 or so, leaving you with $2000 or so for a 1gig Disk.  Make
sure you have at least 16 MB for a colour machine.

Anyway, try one - I'm sure you will like it.

Tim.
-- 
Tim Bissell		|      best...	tim@athen.uucp
Work:+49 89 636 49542	| 	hmm...	tim%sinix@germany.eu.net
Home:+49 89 692 5263	|   UK only...	uk.co.uel!sinix!athen!tim
Newsgroups: comp.unix.wizards
From: sriram@tcs.com (Sriram Srinivasah)
Subject: Re: How to gain access to Physical memory?
Organization: Teknekron Communications, Inc
Distribution: usa
Date: Fri, 14 Aug 1992 20:57:37 GMT

In article <1992Aug12.150811.21384@tamsun.tamu.edu>, kraghu@cs.tamu.edu (Kanakatte G Raghuram) writes:
|> 
|> I need to create my own buffer in the physical memory. I intend to implement a
|> buffer mamager for a DBMS and I don't want my buffer to be a part of the logical
|> address space. I want my own buffer area in physical memory so that I have my
|> own buffer into which I can swap in and out the relations I need. I don't want
|> the O.S to interfere with my buffer area. Can such a thing be done and if so,
|>  how?
|> 
|> 
|> 
|> 


Try mmap(3), if your version of Unix supports it. 
For a good intro on mmap and it's uses, read an article on memory mapped databases
available in pub/uDatabase/POS5.dvi, from watmsg.waterloo.edu

Sriram
(sriram@tcs.com)
Newsgroups: comp.unix.wizards
From: chris@tessi.com (Chris Lamb)
Subject: Re: CMU Coke Machine [Re: Torek a hack? [Re: What must I learn...]]
Organization: Test Systems Strategies, Inc., Beaverton, Oregon
Date: Tue, 18 Aug 1992 14:27:20 GMT


>> However, the machine was in the grad CS lab as I mentioned yesterday;
>> you needed a special key (or a friendship with someone with such a key
>> :) to get in.  For a while they also had an M&M machine in there which
>> distributed a huge handful of M&M's for $.10.

Hmmm...I know the Coke machine was $.35 when I used to hang out in the Spice
Rack, doing evil things on Perqs, and playing 'roids and pinball on the Altos.
I've still got an old "X1" key from way back when...But the M&M machine is
news to me.  I guess the ten cents for M&Ms allowed them to reduce the price
of Coke! :-)  And in a related bit of folklore, I found a copy of "coke" on
my Perq at home running Accent S5 - but alas, it can't locate the coke machine
on my local network, so it won't run.  Sigh.  :-)

CMU was a tremendously cool place to hang out as a 14-yr-old, fooling around
with all that incredible stuff.  I just hope that maybe someday I'll have the
where-with-all to actually go back and get a degree!


-- Chris Lamb, Perq Fanatic and TechnoHistorian               chris@tessi.com

P.S. Was Hemmorhoids (sic?) a CMU creation?  As I recall it was a very silly
     adaptation of the arcade game, in that the rocks would follow the ship
     around the screen!  But Alto Pinball was awfully cool to...
Newsgroups: comp.unix.wizards
From: terry@cs.weber.edu (A Wizard of Earth C)
Subject: Re: 4 questions [vt100, 2 modems, printer]
Organization: Weber State University  (Ogden, UT)
Date: Tue, 18 Aug 92 02:14:32 GMT

In article <3366@ra.nrl.navy.mil> deal@hightop.nrl.navy.mil (Richard Deal) writes:
>I have 4 questions thanks for ANY help with these.
>
>first ( and probably the easyest )
>Have an old Digital VT100, I know how to change the settings on it
>but can not figure out how to save them.  It is really frustrating to
>have to reset the baud, etc every time I turn it on.

shift-S while in setup mode (just like it says in the "old Digital VT100"
manual).

>second
>Have A/UX 3.0 on MacII with local imagewriterII.  The printer works fine 
>from sys7 programs.  I set up lpr and later lp to do UNIX printing, but
>the printer wraps long lines ( >96 chars ) back onto the begining of
>the line.  It appears to be getting a carage-return but no line feed.

Change your switch settings, or make sure ocrnl is stty'ed in your filter.

					Terry Lambert
					terry_lambert@gateway.novell.com
					terry@icarus.weber.edu
---
Any opinions in this posting are my own and not those of my present
or previous employers.
-- 
-------------------------------------------------------------------------------
                                                       terry@icarus.weber.edu
 "I have an 8 user poetic license" - me
-------------------------------------------------------------------------------
Newsgroups: comp.unix.wizards
From: stolk@fwi.uva.nl (Bram)
Subject: flock() network behaviour
Organization: FWI, University of Amsterdam
Date: Thu, 20 Aug 1992 11:41:12 GMT

Hi,


I am using flock() to prevent simultanous fileupdate by several
processes.

However, these processes run on different machines, which do
share a common filesystem though....

Will the fact that the processes run on different machines mess
up the behaviour of flock?

I am asking this, because my code seems to screw up every
now and then. Inconsistancies occur.
Is flock 100% safe, or is the test+lock non-atomic, so that
very high frequency locking will mess up if prolongued long
enough?

Any UNIX Guru on the net who can help me out here?

		Thanks in advance,


				Bram Stolk
				(stolk@fwi.uva.nl)
From: rauscher@romulus.rutgers.edu (Rich Rauscher)
Newsgroups: comp.unix.wizards
Subject: NIS question
Keywords: ypyuk
Date: 22 Aug 92 14:04:26 GMT
Organization: Center for Discrete Math. and Theor. Comp. Sci.


Recently, I was moving all the machines of one yp domain
to another new yp domain. 

1) First, I set up the new yp master (ypinit -m)
   Than I went into a couple of clients and said
   "domainname NEW_DOMAIN".  I changed /etc/defaultdomain
   (that's where rc.local looks when rebooting) to the new
   domain.
   I did a ypwhich -m and found that they were getting all their maps 
   from the new master.

2) I set up a few slave servers. Eventually I had moved the
   entire network over to the new domain with the exception
   of the former master and slave servers.

3) I moved over the old slave-servers to the new domain (and
   killed ypserv).

4) I killed ypserv and moved the old master server over.

Then every machine on the network started complaining that
they couldn't find the old NIS domain.  Huh?  Ok...I thought
there may have been some risidual data structure in ypbind.
So I killed and restarted and ypbinds that were running on
a suffering machine.  Nothing...it still cried about not
being able to find the old domain.  Eventually, every machine
had to be rebooted.  Blah.

If anybody in netland can tell me why this didn't work, I would
be most apreciative.

Thanks,
Rich
-- 
Rich Rauscher, Systems Analyst, Federal Reserve Board of Governors
              "In the long run, the computers will win."
rauscher@dimacs.rutgers.edu     uunet!fed!rauscher   rauscher@NJIN.bitnet
From: hurtta@cs.Helsinki.FI (Kari E. Hurtta)
Newsgroups: comp.unix.wizards
Subject: Re: flock() network behaviour
Date: 20 Aug 92 14:57:25 GMT
Organization: Department of Computer Science, University of Helsinki, Finland

In article <1992Aug20.114112.12756@fwi.uva.nl> stolk@fwi.uva.nl (Bram) wrote:
> I am using flock() to prevent simultanous fileupdate by several
> processes.
> 
> However, these processes run on different machines, which do
> share a common filesystem though....
> 
> Will the fact that the processes run on different machines mess
> up the behaviour of flock?

At least in SunOS flock don't work between in machines (as man page states):

BUGS
     Locks obtained through the flock() mechanism are known  only
     within the system on which they were placed.  Thus, multiple
     clients may successfully acquire exclusive locks on the same
     remote  file.   If  this behavior is not explicitly desired,
     the fcntl(2V)  or  lockf(3)  system  calls  should  be  used
     instead;  these make use of the services of the network lock
     manager (see lockd(8C)).

- K E H
( Kari.Hurtta@Helsinki.FI,
  hurtta@cc.Helsinki.FI,
  hurtta@cs.Helsinki.FI,
  HURTTA@FINUH.BITNET
)
From: DGM%tifrvax.BITNET@pucc.princeton.edu (DARSHAN G. MAHARANA)
Newsgroups: comp.unix.wizards
Subject: Re: Enquiry for GNU Emacs Editor
Date: 20 Aug 92 11:32:40 GMT


Hi Treanor,

Thanks  a lot for reply.
I am interested in getting GNU Emacs editor . Please discribe
completely how to uncompress and generate executable code.

with best regards.

                        Your friend
                        Darshan Maharana
                        E-mail : dgm$tifrvax.bitnet
Bye
From: deal@hightop.nrl.navy.mil (Richard Deal)
Newsgroups: comp.unix.wizards
Subject: 4 questions [vt100, 2 modems, printer]
Date: 17 Aug 92 13:37:39 GMT
Organization: Naval Research Labs (Washington DC)
Originator: deal@hightop

I have 4 questions thanks for ANY help with these.

first ( and probably the easyest )
Have an old Digital VT100, I know how to change the settings on it
but can not figure out how to save them.  It is really frustrating to
have to reset the baud, etc every time I turn it on.

second
Have A/UX 3.0 on MacII with local imagewriterII.  The printer works fine 
from sys7 programs.  I set up lpr and later lp to do UNIX printing, but
the printer wraps long lines ( >96 chars ) back onto the begining of
the line.  It appears to be getting a carage-return but no line feed.
I have tried to set lw=96 ( printer width ) in the printcap; didn't help.
Also there is no deffinition for the imagewriter in the termcap, but there
are other printers in the termcap.  The printer does this with both lp
and lpr.  I used the /usr/spool/lp/ADD_IW script to set up lp.

third
Have a Best Data products Smart One modem, model 9632XL V.32, that I am 
haveing problems with at 1200 and 2400 baud.  The modem works fine at
9600.  I am using the cable that came with the modem.  I have tried 
setting it to V.22 ( i think thats right ) mode but didn't help any.
It will connect get strange chars and then disconnect.  I am mostly using
Zterm 0.9 with the same settings as my internal 2400 modem ( that works ).
I need to call work often and only have a 1200 number, my internal is 
not recognised under A/UX (4 year old modem), I would like to get this 
9600 modem working so I could keep my machine up with A/UX and not have 
to reboot to call work number.  I have also tried haveing the modem force
most signals to high, with same effect.

Fourth and final
Have a Zenith model ZM-2401 2400baud modem.  Got it used with no manual.
It did not come with a power cord.  It has a connector like this on back

            _____ 
            | .  \
            |. . |
            +----+
           8.5 VAC 
If someone has one of these beasties could you send me some info on the power 
supply and mostly the plug that goes in this jack.  I am sure that if I 
just knew what the pin-out for these three pins I could make a power 
supply.  

again any help with this will get many thanks.

-- 
#include <std/*>
The Butcher                  
Butch Deal                   deal@hightop.nrl.navy.mil
--------------------------------------------------------------------------------
From: philip@haas.berkeley.edu (Philip Enteles)
Newsgroups: comp.unix.wizards
Subject: Redirecting input and output
Date: 20 Aug 1992 17:19:40 GMT
Organization: Haas School of Business, Berkeley
NNTP-Posting-Host: haas.berkeley.edu

I am trying to start a telnet session from a program module. I want to
be able to start the session, give a login name and a password then turn
the session over to a user. For example

%>(echo username; sleep 1; echo password; sleep 1;) | telnet somewhere

This works for opening and passing things but then the session is closed
by the remote host. If I add a 'cat -' before the closing ')' the
opening and passing happens but then it closes with the error

cat: read error: Operation would block

I am running Ultrix 4.2A and the tcsh. I have tried a number of
different cat commands and they seem to do what the manual says so I am
baffled by the read block. Any help would be greatly appreciated. Please
mail and I will sumerise.

Philip Enteles				Network Administrator
philip@haas.berkeley.edu	University of California, Berkeley
510-642-4436				"Shake your hand,,,,Shake your hand"
Xref: sparky comp.unix.wizards:3629 comp.unix.bsd:4216
From: allyn@sleepy.UUCP (Mark Allyn)
Newsgroups: comp.unix.wizards,comp.unix.bsd
Subject: $500 to spend on service tools - Was Re: Have $8000, what to buy?
Summary: $500 to spend for service tools
Date: 15 Aug 92 05:46:09 GMT
Distribution: comp
Organization: Boeing Computer Services, Seattle

While we are discussing what to get for $8000, I would like to get opinions
about what are the better service tool kits around for about $500 to $600.

I am looking for quality as well as quanity. I hear of names such as Jenson
and Stanley but I don't know much more than that. I do know that I am looking
for something a bit superior than what is avialable at the local hardware
store. 

Any of you U**X hackers heavy into hardware and network installation and
servicing? What do you use? What do you like? Is $500 even enough for a decent
tool kit that will last for more than a year of constant use?

Thanks!

Mark
Newsgroups: comp.unix.wizards
From: tcl@oracle.com ()
Subject: need internal reference for BSD subroutines
Reply-To: tcl@oracle.com ()
Organization: Oracle Corporation, Belmont, CA
Distribution: usa
Date: Thu, 20 Aug 1992 17:13:29 GMT
X-Disclaimer: This message was written by an unauthenticated user
              at Oracle Corporation.  The opinions expressed are those
              of the user and not necessarily those of Oracle.

Folks, I'm looking for a good reference for BSD kernel subroutines,
ideally for SunOS 4.1(.x) if such a beast exists, although any flavor
of BSD would be an excellent start. 

What I had in mind was something along the lines of the Xlib
Reference Manual with a brief explanation of expected parameters,
return values, what each subroutine does, etc... as well as sections
describing internal data structures used.

I have searched many a bookstore but never found anything this
in depth on UNIX. Is this just wishful thinking on my part?

thanks.

 Tom Lawrence
 tcl@oracle.com
Newsgroups: comp.unix.wizards
From: pds@lemming.webo.dg.com (Paul D. Smith)
Subject: How to turn off termcap scrolling regions ("cs")
Date: 14 Aug 92 18:35:06 GMT
Organization: NSDD/ONSD, Data General Corp., Westboro, MA

I doubt this is a real wizardly question but I asked on
comp.unix.programmer and got no response, so...

I have a piece of code which uses termcap to set a scrolling region
(if available, such as in vt100).  My problem is I can't find a
portable way to *turn off* the region again.

Given tgetstr("cs", buf), on my OS tgoto(buf, -1, -1); seems to do the
trick.  However, on another OS I know of -1,-1 doesn't work, but
tgoto(buf, 0, 0) does: however 0,0 doesn't work on my system :(.

My question is: is there a "standard" way to turn off scrolling
regions (termcap capability "cs")?  Is there even a "more popular"
way?  I *don't* want to use terminfo or curses; just termcap.

Thanks,
--

                                                                paul
-----
 ------------------------------------------------------------------
| Paul D. Smith                          |    paul_smith@dg.com    |
| Data General Corp.                     | pds@lemming.webo.dg.com |
| Network Systems Development Division   |                         |
| Open Network Systems Development       |   "Pretty Damn S..."    |
 ------------------------------------------------------------------
Xref: sparky comp.unix.wizards:3588 comp.unix.bsd:4061
From: cooper@plains.NoDak.edu (Jeff Cooper)
Newsgroups: comp.unix.wizards,comp.unix.bsd
Subject: Re: Have $8000, what to buy?
Date: 13 Aug 92 00:41:49 GMT
Article-I.D.: plains.19694
Distribution: comp
Organization: North Dakota Higher Education Computing Network

In article <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.
>

Well if you can get a student discount (take Badminton 101 at your local
college :-) a basic NeXTstation Turbo Color will run about $5900, if you
get the best discount you can (your mileage may vary).  It comes with a
17" color monitor (16 bit) and 16Mb of memory and a 250Mb drive.  You can 
put an external Acropolis 1.2G drive on it for $1995.  So your total would 
be just about $8000.  Speedwise, they're supposed to be just behind a
Sun SPARC II, about 25 MIP's (or so I'm told...)

As for software, there's a PD version of X11R5 out on the archives somewhere
and there are 2 or 3 companies that sell X-windows for the NeXT (300 to 500
dollars I think).  I've had a mono NeXTstation for almost two years now and
I've never had any trouble compiling anything off the net (other than playing
with makefiles and the occasional header or two).  The NeXT is pretty much
straight BSD (expect named pipes aren't supported)  If you could scrape up
an extra 500, you could get the CD-ROM bundle deal that is currently
being offered...you get an upgrade to NeXTStep 3.0 plus the CD-ROM (on
which future upgrades will come, I understand).  The upgrade isn't that 
important to you, as you'd get 3.0 with your machine, but it is a SCSI 
CD-ROM drive.

Hope this helps...
-- 
"Life is pain Highness, anyone	|  Jeff Cooper
who tells you different is	|  cooper@plains.nodak.edu
selling something."		|  NeXTMail: cooper%midkemia@plains.nodak.edu
    - The Dread Pirate Roberts	|  (701) 298-0893