From: postmaster@gw1.hanscom.af.mil (SMTP MAILER)
Newsgroups: comp.unix.wizards
Subject: Mail not delivered yet, still trying
Date: 30 Aug 92 01:36:43 GMT


 ----Mail status follows----
Have been unable to send your mail to <woodfordm@vd1.hanscom.af.mil>,
will keep trying for a total of three days.
At that time your mail will be returned.

 ----Transcript of message follows----
Date: 29 Aug 92 16:11:00 EDT
From: unix-wizards@BRL.MIL
Subject: UNIX-WIZARDS Digest  V15#132
To: "woodfordm" <woodfordm@vd1.hanscom.af.mil>

Return-Path: <unix-wizards-request@sem.brl.mil>
Received: from SEM.BRL.MIL by gw1.hanscom.af.mil with SMTP ; 
          Sat, 29 Aug 92 16:10:56 EDT
Received: by SEM.BRL.MIL id aa20000; 29 Aug 92 15:51 EDT
Received: from SEM.BRL.MIL by SEM.BRL.MIL id aa19889; 29 Aug 92 15:28 EDT
Received: from sem.brl.mil by SEM.BRL.MIL id aa19840; 29 Aug 92 15:15 EDT
Date:       Sat, 29 Aug 92 15:15:19 EST
From:       The Moderator (Mike Muuss) <Unix-Wizards-Request@BRL.MIL>
To:         UNIX-WIZARDS@BRL.MIL
Reply-To:   UNIX-WIZARDS@BRL.MIL
Subject:    UNIX-WIZARDS Digest  V15#132

UNIX-WIZARDS Digest          Sat, 29 Aug 1992              V15#132

Today's Topics:
                      Re: Have $8000, what to buy?
                            Re: csh bashing
                         Segmentation problems
             Re: Restricted directory trees in Unix - how?
                         Changing "pg" options
                       Re: Changing "pg" options
               How to kill a hung program out of a 'make'
           Re: detecting process death from unrelated process
                             Re: Questions
             Re: 'cat'ting 8 bit data to the terminal.....
              How do I remove a directory with no parent?

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

From: Sylvain Meunier <meunier@quasar.enst.fr>
Subject: Re: Have $8000, what to buy?
Date: 12 Aug 92 16:42:08 GMT
Followup-To: comp.unix.wizards
To:       unix-wizards@sem.brl.mil

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
-> >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.
-> 
-> >What should I buy?  Sparc IPC?  Iris Indigo?  A HP?  A PC (shudder) with BSDI?
-> >A NeXT?  A Mac with A/UX?  I only know that I can pick up an IPC for about
-> >$5000 after discount, and then use $3000 for buying peripherals.  Who else has
-> >deals like that?
-> 
-> After having spent 5 years contracting on almost every workstation class
-> unix platform, I'll add my $0.02 here.
-> 
				.
				.
				.

-> 
-> As much maligned as the PC is (with good reason), it gives the best bang
-> for the buck.  $2K will buy you a 486/50 (at least here in silicon
-> valley).  Another $2K for a big monitor and a big disk leaves you $4K
-> to hang the kitchen sink off of it.  Add a SoundBlaster.  Add an X-10
-> interface.  Add analog<=>digital converters.  Add an NTSC board.  Plus,
-> you would get source to your OS.
-> 

Ok for computer but which Unix OS will you chose ? A good OS with full
compatilility with other OS ...

-> Sun is my second choice.  With a budget of $20K or more it would be my
-> first choice.  But not when spending less than $10K.  I wouldn't buy
-> any of the other machines you mentioned even with someone else's money.
-> 
-> But that is only an opinion.
-> 
-> ----------------------->"Lay on, McDuff,    14th c. ideals in a 21st c. world
-> David Paigen            and damn'd be he        N: PLO Bush IRA CIA KKK
-> TRW Financial Systems   who first cries,        S: terrorism pipe bomb kill
-> paigen@tfs.com          'hold, enough!'"        A: assasination maim

-- 

	S. Meunier		E-Mail: meunier@inf.enst.fr

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

From: Ed Carp <erc@unislc.uucp>
Subject: Re: Have $8000, what to buy?
Date: 12 Aug 92 21:32:56 GMT
X-Newsreader: Tin 1.1 PL5
To:       unix-wizards@sem.brl.mil

David Paigen (paigen@tfs.com) wrote:

: Stay away from A/UX.  It is slow (or used to be) and not really BSD.  Ditto

Oh, A/UX isn't *that* bad ... It's even tolerable speed-wise with the
new releases.  As for being BSDish, it's designed to be more SYSVR3ish.

But I *still* wouldn't want to run it on anything less than a IIci. :)

Oh, BTW, it integrates the Mac user interface with unix quite nicely - you
can even run most of your Mac apps under A/UX!
-- 
Ed Carp, N7EKG     erc@apple.com                801/538-0177
"This is the final task I will ever give you, and it  goes  on  forever.   Act
happy, feel happy, be happy, without a reason in the world. Then you can love,
and do what you will."           -- Dan Millman, "Way Of The Peaceful Warrior"

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

From: John Brock <jbrock@csfb1.fir.fbc.com>
Subject: Re: csh bashing
Date: 13 Aug 92 01:36:43 GMT
To:       unix-wizards@sem.brl.mil

Well I'm certainly enjoying all this wizardly bickering over sh and csh!

Seriously.  It's nice to know which tools knowledgeable people respect
and which they don't.  But what about ksh?  It's hardly figured in
the proceedings and I'm feeling left out!  Is it worthy?  Considered
harmful?  Beneath consideration?

Incidentally, as far as I'm concerned IBM's REXX blows away any UNIX shell
I've every seen, at least as a programming language :-)

-- 
John Brock (212) 909-4662
The First Boston Corporation
12 East 49th Street
New York, NY 10017
uunet!csfb1!jbrock

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

From: Amiran Eliashvili <amir@cs.columbia.edu>
Subject: Segmentation problems
Date: 13 Aug 92 02:27:12 GMT
To:       unix-wizards@sem.brl.mil


Hi all:


	I am developing on a Real Time System that is fully compatible
with 4.3bsd. I am having some unexplained segmentation violation. I
suspect it has to do with the way the page faults are managed by the
OS. How can I detect whether the segmentation violation is due
mismanagement of page faults or just a pointer problem (which I
believe is not the case). Also, can anyone elaborate on the way page
faults are managed by the OS and how a program might be broken in
memory into segments that correspond to some paging scheme.

Please mail all responses to amir@cs.columbia.edu
Thanks
/amiran

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

From: "J. Jonas" <jeffj@krfiny.uucp>
Subject: Re: Restricted directory trees in Unix - how?
Date: 25 Aug 92 17:55:19 GMT
To:       unix-wizards@sem.brl.mil

In article <928@gofish.Stars.Reston.Unisys.COM> dymm@cards.com (David Dymm) writes:
>I would like to set up a restricted directory tree
>on my Sun 4 system.  That is, certain users, when logging on,
>would be placed into accounts that would be located in a
>directory tree that would not have access to the rest of
>the system directory structure. ...

The way my college did this was to create the restricted users
in the 'peon' group-id.
All restricted directories were owned by group peon but with NO permissions.
That way, owner and all other have access but NOT peon.
Although this is contradictory to the intent of permission GRANTING
vs. permission denial, it works.

Set root is tricky becuase you need hard links for all things in /dev,
/tmp and other things that are below the new root.

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

jeffj@synsys.uucp

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

From: "rajeev.dolas" <rajeev@cbnewsf.cb.att.com>
Subject: Changing "pg" options
Date: 25 Aug 92 19:02:39 GMT
To:       unix-wizards@sem.brl.mil



Howdy all,

	I am trying to find out if there is a way of turning the "!"
	option off from pg.  Here is something similar to what I am 
	trying to do:

	main()
	{
		char t[25];

		strcpy(t, "pg $HOME/.profile\n");
		system(t);
	}

	While running this program I don't want the !<command> option
	to be available to the user.

	Is there a simple way of doing this?  I don't want to reinvent the
	wheel and write my own pg (if possible).

	Thanks in advance.

	Raj Dolas.

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

From: jaap <jaap@alice.att.com>
Subject: Re: Changing "pg" options
Date: 26 Aug 92 23:12:14 GMT
To:       unix-wizards@sem.brl.mil


 > 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: Henrik Klagges <henrik@mpci.llnl.gov>
Subject: How to kill a hung program out of a 'make'
Date: 25 Aug 92 22:02:04 GMT
To:       unix-wizards@sem.brl.mil


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: Ravi K Mandava <ravikm@austin.ibm.com>
Subject: Re: detecting process death from unrelated process
Date: 26 Aug 92 19:46:12 GMT
Originator: ravikm@piobe.austin.ibm.com
To:       unix-wizards@sem.brl.mil


In article <1992Aug25.225021.22386@atlastele.com>, gerald@atlastele.com (Gerald Aden) writes:
> Is there a way for process A to detect that process B has exited where
> process A has the pid of process B but is not the parent of process B?

	To find out if a process is alive or not, use kill(pid_t procid, int
	signal) call with 0 signal.  If the call returns -1 and errno is set
	to ESRCH, then the process is not alive.  Else, it is alive.

Hope this helps,
-- 
*******************************************************************************
Ravi K Mandava		email:	piobe!ravikm@ibmpa.awdpa.ibm.com
*******************************************************************************

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

From: Jim Davis <jdavis@bordeaux.kpno.noao.edu>
Subject: Re: Questions
Date: 26 Aug 92 21:32:34 GMT
Followup-To: comp.sys.sun.misc
To:       unix-wizards@sem.brl.mil

In article <1992Aug26.195534.24066@menudo.uh.edu> cavers@menudo.uh.edu (Chris M. Cavers) writes:
>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
>

Well, I'm not sure about a), but b) is simple enough.  When you run your
kernel config file through /etc/config, /etc/config will see the line that
says

pseudo-device 	ram

and fill in ram.h with

#define NRAM 1

Note how the body of the ram driver is surrounded by the

#if NRAM > 0
 ...
#endif 

block?

Followups to comp.sys.sun.misc...
-- 
Jim Davis            | "Knock it off, Uncle Owen.  Get an afterlife!"
jdavis@noao.edu      |   -- Clarissa Darling

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

From: Stephen Harris <sweh@spuddy.uucp>
Subject: Re: 'cat'ting 8 bit data to the terminal.....
Date: 28 Aug 92 20:30:05 GMT
To:       unix-wizards@sem.brl.mil

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 *

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

From: William A Jones <bjones@magnus.acs.ohio-state.edu>
Subject: How do I remove a directory with no parent?
Date: 29 Aug 92 15:11:28 GMT
To:       unix-wizards@sem.brl.mil

I just recently installed smail v3.1.25 on my system (i486 running linux 0.97)
and during the installation process, the directory /usr/local/lib/smail/methods
was created.  However, there is absolutely nothing in the directory -- no
 ., no .., no nothing.  fsck kindly points this out but hasn't done anything
to fix it.  rmdir, rm -rf, rm -d all don't work.  I tried removing the entire
directory tree doing an "rm -rf /usr/local/lib/smail" but that doesn't work.

Other than backing up everything else but this file and running mkfs to make
a clean disk is there any other way to fix this?

Thanks,

Bill

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


End of UNIX-WIZARDS Digest
**************************
Newsgroups: comp.xenix.sco,comp.unix.wizards,comp.unix.misc