From: NUNEZ@esevvx.cica.es (REGI's)
Newsgroups: comp.unix.questions
Subject: (none)
Date: 15 Oct 92 14:59:58 GMT

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

1
15-OCT-1992 00:29:33.03
   1 00:00:00.00
16-OCT-1992 00:29:33.03
info-unix-request@sem.brl.mil
rafapa@obelix.cica.es

Received: from SEM.BRL.MIL by ESEVVX.CICA.ES ; 12-OCT-1992 00:28:52.03
Received: from SEM.BRL.MIL by SEM.BRL.MIL id ab10361; 11 Oct 92 17:31 EDT
Received: from sem.brl.mil by SEM.BRL.MIL id aa10035; 11 Oct 92 15:15 EDT
Date:       Sun, 11 Oct 92 15:15:47 EST
From:       The Moderator (Mike Muuss) <Info-Unix-Request@BRL.MIL>
To:         INFO-UNIX@BRL.MIL
Reply-To:   INFO-UNIX@BRL.MIL
Subject:    INFO-UNIX Digest  V16#035

INFO-UNIX Digest          Sun, 11 Oct 1992              V16#035

Today's Topics:
                       File Distribution Package
                 Re: MIT X11R5 problem with SUID & SGID
          Re: Porting under UNIX (Was: Re: NT Under SCO Unix)
                             Re: A QUESTION
                              Zmodem  & cu
                  BUG IN BOURNE SHELL AND/OR CSHELL ??
                Re: BUG IN BOURNE SHELL AND/OR CSHELL ??
                         Porting the lpd suite
                           Re: Shell question
                           PC/NFS vs Netware
                   Re: Profiling on shared library..
                      Re: Anyone can remove files
         time output... how to capture when running batch jobs?
       Re: time output... how to capture when running batch jobs?
                            Re: Imakefile???
                  exec-ing script after kill -TERM 1?
                     Help with fork() and exec__()
                   Re: Help with fork() and exec__()
                    Q: 'Man'ning personal man pages
                  Re: Q: 'Man'ning personal man pages
                           Re: IS UNIX DEAD?
              Re: prtvtoc (SVR4) vs. dkinfo (SUN OS 4.1.1)
                             talk messages
            tset when term=vt300 (a.k.a. offering a choice)
          Re: tset when term=vt300 (a.k.a. offering a choice)
                      copying a file without login
                How to delete trailing blanks from data?
                            Re: 'w' command
                         savehist and .history
-----------------------------------------------------------------

From: "Robert K. Hendershot" <rhenders@areyes.com>
Subject: File Distribution Package
Date: 6 Oct 92 12:53:24 GMT
To:       info-unix@sem.brl.mil

I need help locating a productized package for
file distribution from a UNIX-SVR4 platform.

Similar products on UNIX are Tuxedo at
AT&T, and some others, but these are
much more than is needed to distribute
files and programs from UNIX. A similar
product in the PC-world is Xcellenet.
Does Xcellenet run on any UNIX systems
in the server mode?

Thanks in advance.

	[oO]
	/{}\
	 ^^   

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

From: kelly <kelly@nmt.edu>
Subject: Re: MIT X11R5 problem with SUID & SGID
Date: 6 Oct 92 20:08:39 GMT
To:       info-unix@sem.brl.mil

In article <35607@cbmvax.commodore.com> veiss@cbmvax.commodore.com
(Jeff Veiss - Staff) writes:

>Please reply via E-mail and I'll post the results.

I've decided to post since this seems to be a problem that many users
are experiencing---and it's something wrong in the install script.
I've also trimmed the crossposting.

> [Problems running xterm and other setuid/setgid X programs]

First, read the manpage for ld.so.  Hidden deep in ENVIRONMENT section
it says that `when running a set-user- or set-group-ID program, ld.so
will only search for libraries in directories it "trusts", which are
/usr/lib, /usr/5lib, /usr/local/lib, and any directories specified
within the executable as a result of -L options given when the
executable was constructed.'

So any permutation of your LD_LIBRARY_PATH won't help.  You've got to
make sure the X libraries are installed in the `trusted' directories
or make sure each X client is linked that the -L options that will
actually contain the libraries once you've done the make install.

My next beef has to do with the `install' target and SUN-DES-1
authorization.  The mit `install' target installs xterm as set-uid
root, so it can update the /etc/utmp file.

However, a program that runs set-uid root uses root's key on the local
machine rather your key, rendering SUN-DES-1 authorization only useful
for useless clients like xclock, xman, ... .  You can't run xterms.

The fix: install xterm as set-gid tty, not set-uid root, and make sure
/etc/utmp is group-writable by group tty.  Then, an xterm runs with
your user ID, so it uses your key for SUN-DES-1, and you've got the
protection you were after.

Apparently, the X Consortium didn't test this before X11R5 was
released.  It needs to be fixed.

--k

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

From: Anthony P Lawrence <apl@world.std.com>
Subject: Re: Porting under UNIX (Was: Re: NT Under SCO Unix)
Date: 7 Oct 92 00:27:18 GMT
To:       info-unix@sem.brl.mil

In article <KETIL.92Oct6220525@ugle.ii.uib.no> ketil@ii.uib.no writes:
>
>Well, maybe it's difficult to write portable code under Unix, I
>haven't really tried, but I have ported (compiled) quite a few
>applications to our systems.  And I find that there usually is very
>little difficulty involved.
>
>
>Sure, UNIX versions varies, but remember that if Unix had been
>produced by *one* vendor from the start, it wouldn't have become what
>it is today.

In this week's InfoWorld, Cringely reports Bill Gates as saying "NT
is essentially Unix".

Is that a mistake?  If a corporation knew they had to move from
Dos, considered Unix but decided to wait for NT thinks about it,
why wait?

On the one side you have One Vendor not quite yet producing something
that may be pretty unstable for a few years.

On the other side you have... well, we all know what we have.

Hearing Bill say that, might not the decision be "why not go with 
Unix now?"



		Tony

Lawrence & Clark, Inc		(617) 762-0707	(206) 323-2864
Xenix/Unix support,etc 	 	 Boston		 Seattle

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

From: Bob Stockler <root@trebor.uucp>
Subject: Re: A QUESTION
Date: 9 Oct 92 00:45:00 GMT
To:       info-unix@sem.brl.mil

csc5840@hertz.njit.edu (Sekhar Chitti) writes:

>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? 

<infile awk '{ print $1 }' >outfile

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

From: Hemant Shah <shah@fnsony.fnal.gov>
Subject: Re: A QUESTION
Date: 9 Oct 92 20:18:06 GMT
NNTP-Posting-Host: fnsony.fnal.gov
To:       info-unix@sem.brl.mil

In article <1992Oct7.212328.20963@njitgw.njit.edu>, csc5840@hertz.njit.edu (Sekhar Chitti) writes:
|> 
|> 
|> 
|> 
|> 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.
|> 
|> Sekhar 
|> csc5840@hertz.njit.edu
|> 
|> -- 
|> Sekhar P Chitti
|> 381 Broad Street, Apartment #2109-A,
|> Newark, NJ - 07104
|> Phone # 201-482-2801 (res)

Assumimg that each field is seperated by blank space(s) of tab(s), use following
shell script:

 ---------------- 8< ------ begin script -------------- 8< -----------------
:


cat oldfile | awk '{
                       printf("%s\n",$1)
                   }'  > newfile

 ---------------- 8< ------ end script -------------- 8< ------------------- 

substitute the names of oldfile and new files.

 -------------------------------------------------------------------------------
Hemant Shah                            | All the opinions expressed are my own
Fermi National Accelerator Laboratory  | and does not necessarily reflect
Systems Integration Group              | those of Fermilab.
E-mail :shah@fnal.fnal.gov             |
 Voice : (708) 840-8071	               | I haven't lost my mind
   Fax : (708) 840-2783                | it's backed on tape somewhere.
 -------------------------------------------------------------------------------

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

From: Ian Moran <ianm@icsbelf.co.uk>
Subject: Zmodem  & cu
Keywords: zmodem, cu
Date: 9 Oct 92 09:18:32 GMT
X-Newsreader: TIN [version 1.1 PL6]
To:       info-unix@sem.brl.mil

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

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

From: "C. Gareth Gaston" <gast@quads.uchicago.edu>
Subject: BUG IN BOURNE SHELL AND/OR CSHELL ??
Date: 9 Oct 92 12:12:07 GMT
To:       info-unix@sem.brl.mil

I have a large Bourne Shell script that need to pick up the values
of some variables set in a C-Shell script. The values are set
with setenv and I'd like to "soucre" the file that sets all the
values right before running a binary.  In doing this I came upon
what looks like a bug in either sh or csh.  The following script
demonstrates the problem.  Is it a bug or am I mis-understanding
something?

<<<<<<<<<<< CUT HERE CUT HERE CUT HERE >>>>>>>>>>>>>>>>>>>>>
#!/bin/sh

export VAR
VAR=BOURNESHELL

echo Running Bourne Shell: VAR is $VAR

csh -f << exit
        setenv VAR CSHELL
        printenv VAR                      # This will print "CSHELL"
        echo Running C-Shell: VAR is $VAR # But this prints "BOURNESHELL" ?!
exit
<<<<<<<<<<< CUT HERE CUT HERE CUT HERE >>>>>>>>>>>>>>>>>>>>>


Any help would be much appreciated.

Thanks,

Gareth Gaston
-- 
C. Gareth Gaston
University of Chicago
gast@midway.uchicago.edu

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

From: Chet Ramey <chet@odin.ins.cwru.edu>
Subject: Re: BUG IN BOURNE SHELL AND/OR CSHELL ??
Date: 9 Oct 92 14:15:13 GMT
NNTP-Posting-Host: odin.ins.cwru.edu
To:       info-unix@sem.brl.mil

In article <1992Oct9.121207.9844@midway.uchicago.edu> gast@midway.uchicago.edu writes:

>export VAR
>VAR=BOURNESHELL
>
>echo Running Bourne Shell: VAR is $VAR
>
>csh -f << exit
>        setenv VAR CSHELL
>        printenv VAR                      # This will print "CSHELL"
>        echo Running C-Shell: VAR is $VAR # But this prints "BOURNESHELL" ?!
>exit

Unless the word delimiting the here document is quoted, the Bourne
shell performs variable expansion and command substitution on each
line before sending it to the program (csh in this case).  sh is
expanding $VAR to `BOURNESHELL' before csh even sees the line.  The
output of printenv shows that csh has its own value for the variable.

Chet
-- 
``The use of history as therapy means the corruption of history as history.''
	-- Arthur Schlesinger

Chet Ramey, Case Western Reserve University	Internet: chet@po.CWRU.Edu

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

From: Peter Steele <peter@merlin.acadiau.ca>
Subject: Porting the lpd suite
Date: 9 Oct 92 14:30:50 GMT
To:       info-unix@sem.brl.mil

I need to make local modifications to the lpd suite to support
forms codes. This should be realtively straightforward, assuming
I can find some portable source code for the lpd suite of programs.
I tried fetching the BSD lpd sources but there seems to be a lot
of stuff associated with the programs. For example, I managed to
get one of the programs to compile but it doesn't link, complaining
about various undefined library routines, and I cannot find these
routines in header files or libraries. Has any tried porting lpd
to another system?
--
Peter Steele        Unix Services Manager            peter.steele@acadiau.ca 
Acadia Univ., Wolfville, NS, Canada B0P 1X0  902-542-2201  Fax: 902-542-4364

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

From: Rich Lenihan <rich@progress.com>
Subject: Re: Shell question
Keywords: ksh, csh et all.
Date: 9 Oct 92 14:58:11 GMT
To:       info-unix@sem.brl.mil

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: ANDY KUMEDA <kumeda@beach.csulb.edu>
Subject: PC/NFS vs Netware
Date: 9 Oct 92 15:22:26 GMT
To:       info-unix@sem.brl.mil

Sorry if this topic has been brought up before...

The question:  Should we use Sun's PC/NFS or Novell's Netware?!?
I mainly would like a summary of Pros and Cons between the two.

Things that should be considered:
	1) Hardware requirements. (Note: we already have an Ethernet network
      established.)
      a.  Server cost/type 
   2) Software requirments.
      a.  Server software cost 
      b.  Client software cost
   3) Advantages vs Disadvantages between the two
      a.  Will the end-user notice any difference?!?
      b.  Which is easier to administer?!?
      c.  Print capabilities?!?
      d.  Misc. (ie other important issues)

If it's of any significance, our site consists of several hundred 
PC's (286's, 386/25, 386/33) all connected by UTP Ethernet.

Please e-mail responses as I do not read all the newsgroups that I
posted to -- I will summarize later. 

Thank you.

Andy Kumeda
US Naval Weapons Station, Seal Beach
(310) 594-7114
kumeda@hawk.nwac.sea06.navy.mil
kumeda@csulb.edu

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

From: Barry Margolin <barmar@think.com>
Subject: Re: Profiling on shared library..
Date: 9 Oct 92 16:41:52 GMT
NNTP-Posting-Host: telecaster.think.com
To:       info-unix@sem.brl.mil

In article <1992Oct8.233515.11488@mdd.comm.mot.com> pchan@mdd.comm.mot.com (Pat Chan) writes:
>I'm trying to do profiling (Sun profile) on my program.
>The ld chokes when it's a shared library.

Sun doesn't ship shared versions of the profiling libraries; i.e. there are
no /usr/lib/lib*_p.so.* files, only lib*_p.a.  Use -Bstatic when linking
for profiling.
-- 
Barry Margolin
System Manager, Thinking Machines Corp.

barmar@think.com          {uunet,harvard}!think!barmar

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

From: Tim Thompson <tjt@blink.att.com>
Subject: Re: Profiling on shared library..
Date: 9 Oct 92 18:34:22 GMT
To:       info-unix@sem.brl.mil

barmar@think.com (Barry Margolin) writes:

>In article <1992Oct8.233515.11488@mdd.comm.mot.com> pchan@mdd.comm.mot.com (Pat Chan) writes:
>>I'm trying to do profiling (Sun profile) on my program.
>>The ld chokes when it's a shared library.

>Sun doesn't ship shared versions of the profiling libraries; i.e. there are
>no /usr/lib/lib*_p.so.* files, only lib*_p.a.  Use -Bstatic when linking
>for profiling.

Can you use -Bstatic when compiling a program that uses -ldl ?  I wanted to
do that just last week, and couldn't figure out how to (because
there's only /usr/lib/libdl.so, with no .a equivalent).  I had to hack
together a version of my program that didn't use dlopen(), etc., but that
seems unfortunate.  Is there a libdl.a somewhere?  Or are dynamic loading
and profiling fundamentally incompatible in some way?   

     ...Tim Thompson...AT&T Bell Labs/Holmdel/NJ...tjt@blink.att.com...

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

From: Barry Margolin <barmar@think.com>
Subject: Re: Profiling on shared library..
Date: 9 Oct 92 21:00:58 GMT
NNTP-Posting-Host: telecaster.think.com
To:       info-unix@sem.brl.mil

In article <tjt.718655662@sparc-10> tjt@blink.att.com (Tim Thompson) writes:
>Can you use -Bstatic when compiling a program that uses -ldl ?

No.  libdl.so.* is actually a dummy routine, and the dlopen(), et al,
routines are actually in ld.so, which is only linked into
dynamically-linked executables.

However, it's possible to have a mixture of dynamic and static linking in a
program, so you may be able to do this by only linking libdl dynamically.
-- 
Barry Margolin
System Manager, Thinking Machines Corp.

barmar@think.com          {uunet,harvard}!think!barmar

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

From: Barry Margolin <barmar@think.com>
Subject: Re: Anyone can remove files
Date: 9 Oct 92 16:56:00 GMT
NNTP-Posting-Host: telecaster.think.com
To:       info-unix@sem.brl.mil

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

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

From: "Eric C. Garrison" <ericg@sopwith.ucs.indiana.edu>
Subject: time output... how to capture when running batch jobs?
Date: 9 Oct 92 19:12:54 GMT
MMDF-Warning:  Parse error in original version of preceding line at BRL.MIL
Content-Type: text
Content-Length: 529
To:       info-unix@sem.brl.mil

I had a question posed to me that I couldn't answer regarding
the time program.  The guy wants to run a very long job on
a Sun workstation and also wants to see how much CPU time
it takes at the end of the job.  He's running a program
written in FORTRAN, if it matters.

The thing is, I am not sure how to redirect the output of
time to another file.  Even redirecting the stderr to
a file produces no output.

Any ideas?

Eric

-- 
Eric Chris Garrison			      UCS Support Center
ericg@ucs.indiana.edu			      Indiana University

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

From: "Christian P. Roberts" <cpr4k@holmes.acc.virginia.edu>
Subject: Re: time output... how to capture when running batch jobs?
Date: 9 Oct 92 20:25:55 GMT
To:       info-unix@sem.brl.mil

Use etime (elapsed time) or dtime (elapsed time since last call
to dtime) within the Fortran code and just write it to a file
or stdout, as in:

      program time
      real t(2)
      real t1,t2

      t1=dtime(t)
        ... do some work
      t2=dtime(t)
      write(*,1000)t1
      write(*,2000)t2
      write(*,3000)t2
      write(*,4000)t(1)
      write(*,5000)t(2)
 1000 format(' Start timer, t1= ',G14.6)
 2000 format(' Second call to timer, t2= ',G14.6)
 3000 format('  Elapsed time between calls is t2: ',G14.6)
 4000 format('     User time is t(1): ',G14.6)
 5000 format('     System time is t(2): ',G14.6)
      end

-- 

Chris Roberts                     Academic Computing Center
cpr4k@virginia.edu                University of Virginia           
(804) 982-4693                    Charlottesville, Virginia 22903

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

From: Eduardo Rodriguez <erodrigu@dcc.uchile.cl>
Subject: Re: Imakefile???
Date: 9 Oct 92 20:38:23 GMT
Originator: erodrigu@tortel
To:       info-unix@sem.brl.mil


In article <HEMSTREE.92Oct7223152@handel.cs.colostate.edu>, hemstree@cs.colostate.edu (unknown) writes:
> 
> What is Imake and where can I get the source to use some Imakefiles
> that I have (came with some programs that I ftp'd).
> 

Try: man xmkmf (create a Makefile from an Imakefile)

edo...

Eduardo Rodriguez S        - --- - --- - --- -    erodrigu@dcc.uchile.cl
Dpto de Ciencias de la Computacion  - --- -    ...!uunet!uchdcc!erodrigu
Universidad de Chile   --- - --- - ---   erodrigu%uchdcc@uchcecvm.BITNET
- --- - --- - --- - --- - --- - --- - --- - --- - --- - --- - --- - --- 

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

From: Joseph Nathan Hall <joseph@joebloe.maple-shade.nj.us>
Subject: exec-ing script after kill -TERM 1?
Date: 10 Oct 92 05:46:14 GMT
X-Mailer: uAccess - Macintosh Release: 1.5v5
To:       info-unix@sem.brl.mil


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

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

From: Edward Haymore <haymoree@bones.et.byu.edu>
Subject: Help with fork() and exec__()
Date: 10 Oct 92 06:04:16 GMT
To:       info-unix@sem.brl.mil

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

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

From: Edward Haymore <haymoree@bones.et.byu.edu>
Subject: Re: Help with fork() and exec__()
Date: 10 Oct 92 15:36:37 GMT
To:       info-unix@sem.brl.mil


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: Heng Kek <ccechk@nuscc.nus.sg>
Subject: Q: 'Man'ning personal man pages
Date: 10 Oct 92 06:47:35 GMT
X-Newsreader: Tin 1.1 PL4
To:       info-unix@sem.brl.mil

Hello all
   I've been wondering how to 'man' a man page in my own
subdirectory.  I've read the man pages for 'man' and it
indicates that I should be able to do it via:

man -M <path> <name>

But the system I'm on tells me 'Can't find manual entry for <name>'.
For e.g. if I have a man page called 'help.1l' in my subdir
'~/myman/', what can I specify to 'man' so that that man page is
displayed in the usual 'man'nish way?

Thanks.
Heng Kek
Ultrix 4.2

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

From: Mike Krus <krus@cs.concordia.ca>
Subject: Re: Q: 'Man'ning personal man pages
Date: 10 Oct 92 16:35:59 GMT
To:       info-unix@sem.brl.mil

In article <1992Oct10.064735.15270@nuscc.nus.sg> ccechk@nuscc.nus.sg (Heng Kek) writes:
>Hello all
>   I've been wondering how to 'man' a man page in my own
>subdirectory.  I've read the man pages for 'man' and it
>indicates that I should be able to do it via:
>
>man -M <path> <name>
>
>But the system I'm on tells me 'Can't find manual entry for <name>'.
>For e.g. if I have a man page called 'help.1l' in my subdir
>'~/myman/', what can I specify to 'man' so that that man page is
>displayed in the usual 'man'nish way?

Your directory should have the same structure as /usr/man i.e.
	~/myman/man1   ... plus others you should need
Put the man files in the appropriate subfolder (corresponding to the
extension).

Then put in your .cshrc file the following line
	setenv MANPATH /usr/man:~/myman
so that you don't have to use the -M option all the time.

>
>Thanks.

no probs

>Heng Kek
>Ultrix 4.2


-- 
Michael Krus.					 Email : krus@cs.concordia.ca
Concordia University				Universite d'Orsay - Paris XI
Montreal, Canada					        Paris, France
What's on television?  Looks like a penguin!!!

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

From: "David L. Parker" <dlparker@dlpinc00.rn.com>
Subject: Re: IS UNIX DEAD?
Date: 10 Oct 92 12:00:07 GMT
To:       info-unix@sem.brl.mil

In article <1992Oct8.151617.21158@compu.com> 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. 
>
>fred
>
>-- 
>W. Fred Rump 	office:	   fred@COMPU.COM     'mans feet have grown/so big 
>26 Warren St.   home: fred@icdi10.compu.com  that he/forgets his littleness'
>Beverly, NJ. 08010                          		Don Marquis 
>609-386-6846    bang:uunet!cdin-1!icdi10!fr   

But how many of those are people who actually buy a computer themselves for
home use?  Some of those people undoubtedly have a dumb terminal hung off an
SCO box at work, and have MS-Windows at home.  Or a System 36 or even a 32
at work and DOS or Win. at home.  

I think the point (and I'm sure I'm probably missing one or more) is not
so much which will rule (was that even the original point?), but what will
happen when (not if, when) significant numbers of people get to make their
own comparisons between NT and the various new flavors of UNIX (whether it's
4.2 or a polished, commercially competitive linux, or whatever).  If NT lives
up to it's potential (not hype, but potential - it is based on the Mach 3.0
kernel, right?, and Billy'$ billion$ have apparently hired some pretty fine
programmer$) then NT will be a factor in the UNIX world and not just something
for the UNIX cognoscenti to look down their noses at - as in lot's of NT
"power users" running NT workstations hooked up to UNIX servers.  The SUNs
and dumb terminals won't disappear, but the ancient minis will.  

Just the incoherent ravings of a caffeine-stoked news addict.
-- 
Dave Parker
Automated Data Management Services, Pleasant Hill, MO 64080-1331
(816) 987-5167/5218 voice/fax

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

From: Dave Schaumann <dave@cs.arizona.edu>
Subject: Re: IS UNIX DEAD?
Date: 11 Oct 92 06:17:03 GMT
To:       info-unix@sem.brl.mil

In article <1b1johINNpmn@bigboote.WPI.EDU>, mugsy@winton (Michael G. Bruce) writes:
>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)

Yeah... y'see, they decided that there might be some life in DOS after
all, so they came up with "Disk Operating System -- New Technology".
With the appropriate acronym, of course... ;-)

-- 
The security of the Enterprise is of Paramount importance.
                        -Jean Luc Picard, stardate 45965.3

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

From: Malcolm Mladenovic <mbm@dsbc.icl.co.uk>
Subject: Re: prtvtoc (SVR4) vs. dkinfo (SUN OS 4.1.1)
Keywords: prtvtoc
Date: 10 Oct 92 13:34:26 GMT
To:       info-unix@sem.brl.mil

In article <Oct.9.20.28.22.1992.20429@ocean.rutgers.edu> jimg@ocean.rutgers.edu (Jim Gasprich) writes:
>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
>	/grass    (/dev/dsk/c0t1d0s1): 665250 blocks   40822 files
>
>	# prtvtoc /dev/rdsk/c0t1d0s1
>	prtvtoc: device /dev/rdsk/c0t1d0s1 is not a slice 0 device
>	prtvtoc [-a] [-e] [-p] [-f filename] raw-device

You need to use the slice 0 device (as indicated by the message).

prtvtoc /dev/rdsk/c0t1d0s0

should print all the section information.

The options mentioned are
	-a	prints alternate track info on non-SCSI drives
	-e	updates /etc/partitions
	-p	prints pdinfo structure (disk geometry)
	-f	condensed version of default output for use with edvtoc

-Malcolm

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

From: Bill the CAT <wessir@stein.u.washington.edu>
Subject: talk messages
Date: 10 Oct 92 17:15:29 GMT
To:       info-unix@sem.brl.mil


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.

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

From: Russell Mosemann <mosemann@unlinfo.unl.edu>
Subject: tset when term=vt300 (a.k.a. offering a choice)
Keywords: tset term unknown
Date: 11 Oct 92 04:59:31 GMT
To:       info-unix@sem.brl.mil


   I would like to put a line in my .login so that when I login from a
terminal with an unknown type, tset will offer to use the type of vt100.
Otherwise, I want it to go ahead with the original terminal type.
   For example, if I login from a terminal that advertises itself as a
vt300, term and TERM are set accordingly.  tset says it is unknown and
wants to use unknown as the type.

eval `tset -sQ`
Type vt300 unknown
TERM = (unknown)

   How can I get it to say TERM = (vt100) for this unknown vt300 (and
any other unknown terminals, I don't want to type all of the unknown
terminal types in)?  Any nifty ideas?  These terminals would be marked
as network in ttytab.  As a side question, is there any place where I can
get definitions for a vt300 and a vt400?  Thanks.
--
Russell
mosemann@unl.edu

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

From: Ian Peattie <ipeattie@nyx.cs.du.edu>
Subject: Re: tset when term=vt300 (a.k.a. offering a choice)
Keywords: tset term unknown
Date: 11 Oct 92 12:06:12 GMT
X-Disclaimer: Nyx is a public access Unix system run by the University
	of Denver for the Denver community.  The University has neither
	control over nor responsibility for the opinions of users.
To:       info-unix@sem.brl.mil

In article <1992Oct11.045931.27602@unlinfo.unl.edu> mosemann@unl.edu writes:
>   I would like to put a line in my .login so that when I login from a
>terminal with an unknown type, tset will offer to use the type of vt100.
>Otherwise, I want it to go ahead with the original terminal type.
>   For example, if I login from a terminal that advertises itself as a
>vt300, term and TERM are set accordingly.  tset says it is unknown and
>wants to use unknown as the type.
>
>eval `tset -sQ`
>Type vt300 unknown
>TERM = (unknown)
>
>   How can I get it to say TERM = (vt100) for this unknown vt300 (and
>any other unknown terminals, I don't want to type all of the unknown
>terminal types in)?  Any nifty ideas?  These terminals would be marked
>as network in ttytab.  As a side question, is there any place where I can
>get definitions for a vt300 and a vt400?  Thanks.
>--
>Russell
>mosemann@unl.edu

Try using the mapping flag -m

tset -m network:vt100 -m :\?vt100

This will set your terminal as a vt100 if there is an entry for 'network' for
that line, else it will prompt with TERM=(vt100).

Ian
----*

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

From: "Michael C. KWAN" <mkwan@esk.compserv.utas.edu.au>
Subject: copying a file without login
Date: 11 Oct 92 05:52:50 GMT
To:       info-unix@sem.brl.mil


	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 

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

From: Bob Barker <barker@wd0gol.wd0gol.mn.org>
Subject: How to delete trailing blanks from data?
Keywords: regular expressions, ed
Date: 11 Oct 92 06:30:51 GMT
Followup-To: poster
To:       info-unix@sem.brl.mil

This ought to be an easy thing to do, and I'm sure it is, but I can't
come up with a regular expression that will remove trailing blanks from
a string.

Can anybody help me out?

Thanks,

-Bob
 ------------------------------------------------------------------------------
Bob Barker                                ...!uunet!umn-cs!tcnet!wd0gol!barker
Robert Barker & Associates                                barker@wd0gol.MN.ORG
(612) 949-0140

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

From: MONK <asriniva@vela.acs.oakland.edu>
Subject: 'w' command
Date: 11 Oct 92 07:35:55 GMT
To:       info-unix@sem.brl.mil


Hi folks

The 'w' or the what command seem to intrude the privacy, IS there any way
to mask what the user is doing, to a foreign user executing the w command.
The only way i thought so was by Starting a script, which creates a virtual
shell.

Thanks
_________________________________________________________________________
athi
_________________________________________________________________________

Internet:				: Yellnet:
asriniva@vela.acs.oakland.edu		: 313-370-4357(work)
_________________________________________________________________________



-- 
_________________________________________________________________________
athi
_________________________________________________________________________

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

From: Smiley <jal41820@uxa.cso.uiuc.edu>
Subject: Re: 'w' command
Date: 11 Oct 92 18:18:20 GMT
To:       info-unix@sem.brl.mil

asriniva@vela.acs.oakland.edu (MONK) writes:
:)The 'w' or the what command seem to intrude the privacy, IS there any way
:)to mask what the user is doing, to a foreign user executing the w command.
:)The only way i thought so was by Starting a script, which creates a virtual
:)shell.

I usually run a few programs in the background, all of which spend about
a minute sleeping each loop. A "w" on myself shows only that I'm sleeping.

The problem is, "ps aux | grep <user>" will reveal all processes anyway.
-- 
        Josh Laff              #     #      
email to: smiley@uiuc.edu     _       _     Hello! I am a signature virus!  
      (217) 384-6249         |#\_____/#|    Join the fun and copy mo*#(*&^!>.
                              \#######/     

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

From: ullas gargi <sl870@io.ee.usu.edu>
Subject: savehist and .history
Date: 11 Oct 92 09:05:33 GMT
To:       info-unix@sem.brl.mil

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

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


End of INFO-UNIX Digest
***********************