HDTenEightyP/NetNews huggingface dataset:
Newsgroups: comp.unix.questions
Subject: Re: Utility for keeping two directories consistent (identical)?
From: suthers+@pitt.edu (Daniel D Suthers)
Date: 21 Nov 92 17:12:00 GMT
Followup-To: suthers+@pitt.edu
Organization: University of Pittsburgh
Keywords: directory consistency
Summary: find . -print |cpio -pmd other_directory

In article <9966@blue.cis.pitt.edu.UUCP> I wrote:
>Do you know of a utility for keeping the contents of two directories
>consistent (identical)? 

Thanks much to les@chinet.chi.il.us (Leslie Mikesell) for this, which
works nicely.

> How about going to one directory and doing a:
>   find . -print |cpio -pmd other_directory
> and then reversing the process.  If you don't include the -u flag
> cpio should not overwrite any files that are newer or the same age
> and the -m option will keep the timestamp correct on copied files.

I use -pmdv to see what's going on. Too bad -i isn't "interactive"
like in rm but I should know better than to expect consistency from Unix!

The man pages for cpio actually address this (almost) but all the apropos
I could think of couldn't find it. Should know better than to expect
usability from Unix!

>    This example shows how to copy the contents of the user's current direc-
>     tory into an archive.
>
>     ls | cpio -o  > /dev/rmt0l
>
>     This example shows how to duplicate a directory hierarchy.
>
>     mkdir ~phares/newdir
>     cd ~phares/olddir
>     find . -print | cpio -pdl ~phares/newdir

(Uh oh, I badmouthed someone's religion, now I'm really in trouble ...)

-- 
..........................................................................
 Dan Suthers            | LRDC, room 505A
 suthers+@pitt.edu      | 3939 O'Hara Street
 (412) 624-7036 office  | University of Pittsburgh
Newsgroups: comp.unix.questions
From: bill@bilver.uucp (Bill Vermillion)
Subject: Re: IS UNIX DEAD? (long)
Organization: W. J. Vermillion - Winter Park, FL
Date: Fri, 20 Nov 1992 18:27:55 GMT

In article <BxxH2D.AEv@ccu.umanitoba.ca> rahardj@ccu.umanitoba.ca (Budi Rahardjo) writes:
>peter@global.hacktic.nl (Peter Busser) writes:
>

>>>Another problem to overcome is that many terminal emulators don't work too 
>>>well : they treat certain keys locally. When you press F1 on some terminal 
>>>emulators it doesnt send F1 to the remote machine and calls the local help 
>>>menu.

>>That's not the case for the PC terminal emulators I know. Most use some kind 
>>of ALT combination.

>I thought F1 is supposed to be a standard HELP key for Dos/Windows programs :-)

But if you are on a Unix system, and have many terminals of varying
types, along with PC emulators, you have some cross-training problems
with users.    "Hey Joe - how do I do ???"   "Just press F1 for Help"

Next call is to the support person - "My terminal is locked up and
nothing I do works.  They keyboard is dead."

Support says "Press F1 that will unlock it" and he replies "But Joe
says that's the help key"   Answer is "That may be on the PC but on
your VTxxx that is a scroll stop".   "Well how do I change that?"
"You can't - it's in hardware".

In any given environment it's best if all users have the same keystroke
sequences so that any person in that area can help another and on some
terminals you have to take what you get.    

-- 
Bill Vermillion - bill@bilver.oau.org  bill.vermillion@oau.org
                - bill@bilver.uucp 
                - ..!{peora|tous|tarpit}!bilver!bill

Organization: Freshman, CIT general, Carnegie Mellon, Pittsburgh, PA
Newsgroups: comp.unix.questions,comp.unix.shell
Date: Mon, 23 Nov 1992 22:13:30 -0500 
From: Geoffrey Spear <gs32+@andrew.cmu.edu>
Subject: Re: How does one log finger info ?
	<MERLYN.92Nov23142034@romulus.reed.edu>
Distribution: comp

	Hmmm... maybe it should be added to the FAQ?  :)

-----------------------------------
Geoff Spear
Carnegie Mellon University
Electrical and Computer Engineering
Class of '96 (I hope...)
-----------------------------------
"You're redlining my bogometer!"
From: cema@cs.umd.edu (Simon Hawkin)
Newsgroups: cs.general,comp.unix.questions
Subject: Distribution of cs.general (WAS Re: diff in scripts again)
Keywords: distribution cs.general
Date: 16 Nov 92 02:02:05 GMT
Followup-To: cs.general
Organization: U of Maryland, Dept. of Computer Science, Coll. Pk., MD 20742

In article <1992Nov15.225310.25079@sserve.cc.adfa.oz.au> Christopher.Vance@adfa.oz.au (Christopher JS Vance) writes:
>In article <9231818.21238@mulga.cs.mu.OZ.AU> asni@ecr.mu.oz.au (Astria_Nicole PRICE) writes:
>| In article <1992Nov9.102409.3369@gmuvax2.gmu.edu>, rwhelan@gmuvax2.gmu.edu (Ryan A. Whelan) writes:
>| > In article <ssuhook.720712389@reading> ssuhook@susssys1.reading.ac.uk (Roger Neil Hook) writes:
>| > >Why on earth have we got an article from this place in cs.general????

>| Well I always thought it was the newsgroup of the computer science
>| department at my university.

>| Obviously wrong.

>Partly right.  A newsgroup of computer science departments in many places.
>Unfortunately many of them leak into each other....

As was noted some time before, if you send an article to 
both cs.general, whose distribution area is local, 
AND something more global like comp.unix.questions, 
then it will appear in cs.general on all machines that
accept comp.unix.questions along with (their local) cs.general, 
as far as the title (demanding its appearance in cs.general) remains.

This is really unix.question :-)

Maybe, the simplest cure is not to couple the groups.

=====================================================
	...hacked up beyond all recognition
=====================================================
Newsgroups: comp.unix.questions
Subject: Capturing tty output?
From: t9014199@phillip.edu.au
Date: 18 Nov 92 17:32:49 EST
Organization: RMIT (Bundoora Campus)

Hi there all,

	I have question about snooping other users. :)

	Is it possible to capture the output of someones tty screen?
	
	ie... a sample list of users from 'w' commmand..

	brian    ttyp9     4:38pm    50                -csh 
	brian    ttypa     4:38pm     3                more -s /tmp/man17683 
	
	Is it possible to capture to a file the output of the ttypa scrren.
	Without brian knowing. :)

	I have Unix on my amiga at home (don't laugh) and wonder if it is
	possible.

	Please reply via email...

	Thanks Darren

PS Please don't flame me.

-- 
--
Darren Spencer    	  Comp Sci Student	     RMIT Bundoora (RIP PIT)
============================================================================
Email:        dazza@arcadia.mc.phillip.edu.au        t9014199@phillip.edu.au
Newsgroups: comp.unix.questions
From: nmiller@starbase.trincoll.edu (norman miller)
Subject: Printing with a (dial-up) p.c.'s printer
Organization: Trinity College, Hartford, CT.
Date: Sun, 22 Nov 1992 18:00:00 GMT

On the VAX I've been using for a long time there's a program
(vax2pc) that instantly connects the Vax to my printer.  Is
there anything like that in the Unix world?

Norman Miller
From: barmar@think.com (Barry Margolin)
Newsgroups: comp.unix.questions
Subject: Re: Interprocess Communication Source Wanted
Date: 23 Nov 1992 16:54:29 GMT
Organization: Thinking Machines Corporation, Cambridge MA, USA
NNTP-Posting-Host: telecaster.think.com

In article <3234@nlsun1.oracle.nl> rgasch@nl.oracle.com (Robert Gasch) writes:
>If anybody out there has any simple programs which 
>demonstrate interprocess communication I'd appreciate it
>if I could take a look at them. 

"Unix Network Programming" and "Advanced Programming in the UNIX
Environment", both by W. Richard Stevens.
-- 
Barry Margolin
System Manager, Thinking Machines Corp.

barmar@think.com          {uunet,harvard}!think!barmar
From: bobby@dc.dk (Bobby Billingsley)
Newsgroups: comp.unix.questions
Subject: Re: sudo with hidden password?
Date: 20 Nov 92 09:53:27 GMT
Organization: Datacentralen A/S

rolf@geoserv (Rolf Wilson) writes:

>I have been using the "sudo" command from the Unix System
>Administration Handbook by Nemeth/Snyder/Seebass and like it
>very much. However, I would like to find if someone has a
>modified version of it that would hide your password instead
>of displaying it for all to see.
>                                     Thank you.

We have an extended version of the "priv" program from UnixWorld.

Basically you maintain a list of users allowed to use the program, and
these users are prompted for their own passwd when executing "priv". "priv"
will then execute any command as root.

If there is enough interest I can post the sources.

-- 
:   Bobby Billingsley                   : Remember to love while you dare to   :
:   Datacentralen, Denmark              : remember to live while you do so     :
:   Phone: +45 4371-8122 Ext. 3337      :........................-.Piet.Hein...:
:   E-mail: bobby@dc.dk                 : DoD# 80884 : Ride=Yamaha XJ600, 1986 :
Newsgroups: comp.unix.questions
From: lux@sol.UVic.CA (Michael O'Henly)
Subject: It ain't a 24x80 world anymore. Or is it?
Organization: University of Victoria
Date: 18 Nov 92 23:29:17 GMT

    A few days ago I posted a query about how to increase the number
of rows displayed in a terminal window so that 'full-screen' commands
like emacs could make use 35 lines instead of the usual 24.

    I got some responses that suggested "stty rows 35" or "setenv
LINES 35". I've tried both and, while they do alter the terminal's
behaviour, they don't give me a 35-line screen. What I'm getting looks
like this: lines 1-24 after a screen-clear display correctly, but
lines 25-35 pile up on top of each other on the 24th line.

    So maybe I didn't ask the right question. What I'm trying to do is
make the best use of my laptop screen when I dial into my machine
using a modem and terminal emulator. Does the fact that I'm dialing in
make a difference? I'm sure there _must_ be a way of working with more
than a 24x80 display under these circumstances.

    Any and all suggestions would be appreciated!

    Michael


-- 
           Michael O'Henly |     o   | 604-721-7623 (604-721-8215 fax)
    Library Systems Office |  --/--  | LUX@UVVM.BITNET
    University of Victoria |  __\    | lux@sol.UVic.CA
    Victoria, B.C., Canada |     \   | mohenly@malahat.Library.UVic.CA
From: peter@global.hacktic.nl (Peter Busser)
Newsgroups: comp.unix.questions
Subject: Re: IS UNIX DEAD? (very long)
Date: 14 Nov 92 14:20:16 GMT
Organization: Global Village 1

rhodesia@wixer.cactus.org (Felix S. Gallo) writes:

>Definitely not.  My keyboard doesn't have an F1 key.  If it did, there
>would be no guarantee that it would produce what your F1 key does.

That's what we have curses and termcap for...

>Why don't you take some courses on human-computer interaction and
>ergonomics and try to get back to Unix later?

Have you?
From: daw@vivanet.com (David A. Wolf)
Newsgroups: comp.unix.questions
Subject: Re: UNIX --> DOS remote printing
Keywords: dos unix esker printing
Date: 12 Nov 92 23:33:29 GMT
Followup-To: daw@vivanet
Organization: VIVATRON Corporation

In article <31455@hydra.Helsinki.FI> karell@cs.Helsinki.FI (Esa Karell) writes:
>Hi,
>
>Is anyone aware of packages (PD or commercial) that
>allow UNIX boxes to send print requests to a DOS box
>on a lan?
>
You don't mention which LAN but here some solutions...

ESKER puts out a product called "TUN UNIX,TUN PLUS, TUN/X"
The TUN UNIX product has "VPRINT" which provides access to
the local MS-DOS printer from all workstations on the network.
"RPRINT" provides access to UNIX printers from the MS-DOS PC.
VDKNET provides access to UNIX file systems and backup perpherals
from the MS-DOS PC.  I have sold and installed ESKER products
and they work very well after initial set-up.  They also have an
excellent terminal emulation package. ESKER is a French company
that has recently open a USA office.  For resellers, MERISEL
distributes the full ESKER Line.

Contact: William Desmole                 IN FRANCE: ESKER
         1181 Chess Drive #C             20, rue Gabriel Peri
         Foster City, CA 94404, USA      69100 VILLEURBANNE
         415-341-9065                    FRANCE
                                         Tel.:(33)78 93 55 36

-good luck...


David A.Wolf
VIVATRON Corporation                       Voice: 800-836-UNIX
Rochester, New York, USA                     Fax: 716-272-7627
SCO Advanced Product Center                email: daw@vivanet
*******************************************************************
Newsgroups: comp.unix.questions,comp.unix.shell
From: munish@eustis.cs.ucf.edu (Munish Jain)
Subject: How does one log finger info ?
Keywords: finger/shell script
Organization: University of Central Florida
Distribution: comp
Date: Mon, 23 Nov 1992 20:55:44 GMT

hi

How does one log information about who is "finger"ing me\
and when ? and how to use a .plan which will keep tell
the person fingering me that he is the nth person who
has fingered blah blah. 

Could somebody give me any info ?

thanks,

munish
--
I must have slipped a disk -- my pack hurts
From: lpeters@postmaster@hq.af.mil (Leslie D Peters)
Newsgroups: comp.unix.questions
Subject: Re: grep
Date: 20 Nov 92 15:37:51 GMT
Reply-To: lpeters@marge.hq.af.mil
Organization: 7th Communications Group


|> >Actually it's Global Regular Expression Parser.
|> I thought it meant Gorns Rarely Eat People...
Grazing Rabbits Excrete Pellets
-- 
/============================================================================\
|                    ___                     |                               |
|       ___....-----'---`-----....___        | I haven't lost my mind --     |
| =========================================  |                               |
|        ___`---..._______...---'___         |  it's backed up on            |
|       (___)      _|_|_|_      (___)        |   tape somewhere.             |
|         \\____.-'_.---._`-.____//          |                               |
|           ~~~~`.__`---'__.'~~~~            | lpeters@marge.hq.af.mil       |
|                   `~~~'                    |                               |
\============================================================================/
Newsgroups: comp.unix.questions
From: phardie@nastar.uucp (Pete Hardie)
Subject: Re: IS UNIX DEAD
Organization: Digital Transmission Systems, Duluth, GA.
Date: Fri, 20 Nov 1992 21:59:55 GMT

In article <98246@netnews.upenn.edu> ioi@pixmap.seas.upenn.edu (Ioi Kim Lam) writes:
>	I see your point. I agree that currently many powerful
>applications are hard to use, but that is due to their poor design. I hope
>you would understand that a lot of "powerful applications" you have
>mentioned (in your previous postings) were made more than a decade ago.

This is a blanket statement, and therefore somewhat suspect.  There are some
things that are inherently complex, and no amount of GUIfying can change
this.  When we have AI, we might be able to hand off some of this complexity,
but until then we are stuck with it.

One cannot blame the complexity whooly on a poor user interface.

>	I believe what the programmer should do is to deliver the power of
>the computer to every user, regardless to their knowledge in computing.

As a programmer, I am tasked with delivering a system to the client's order.
Some of this will involve making the system easy to use for a set of the
end-users, yet harder for another set.  For example, removing arbitrary files is
easy for someone with root privelege, and should be.  Such ease is NOT the
desired case for J. Random User, thus the file permissions.

>	If a user finds an application too difficult to use, that is not
>his fault. That is the designer's fault. And believe me, we can correct
>it.

Again, not in all cases.  I have seen a tendency to expect the machine to do
everything for the user, regardless of this being a bad thing in some cases.
People still need to think about what they are doing, at least at first.


-- 
Pete Hardie:  phardie@nastar  (voice) (404) 497-0101
Digital Transmission Systems, Inc., Duluth GA
Member, DTS Dart Team           |  cat * | egrep -v "signature virus|infection" 
Position:  Goalie               |
Newsgroups: comp.unix.questions
From: papresco@napier.uwaterloo.ca (Paul Prescod)
Subject: Re: IS UNIX DEAD
Organization: University of Waterloo
Date: Mon, 23 Nov 1992 22:53:08 GMT

>>Word for windows can do anything that WordPerfect, VI or Emacs can do,
>>and yet the interface is crystal clear and easy.
>
>Can Word for Windows read/edit binary file,

Ascii yes.  It's fairly seldom you edit a binary in a wordprocessor.

> read/send mails, ftp, etc. just 

PC software is starting to move towards networking.  Next year's
version of Word will have a little mailbox icon that will send mail
easily.  

> elike emacs ?

Now, can emacs do fonts?  Output postscript?  Draw pictures?  Generate
graphs?  Spell check?  Grammar check?  give you synonymys?  Does it
have an equation editor?

You are right, Word can not do EVERYTHING Emacs can do, becuase Emacs
is an operating system.  OTOH, as far as text entry, or word processing
goes, Word blows emacs away.

BTW, probably 60% of computers are used PRIMARILY for wordprocessing.

WordPerfect is the number one best selling program of all time,
probably even better then DOS.


Newsgroups: comp.unix.questions
From: dkeisen@leland.Stanford.EDU (Dave Eisen)
Subject: Re: how to search/replace over an entire directory
Organization: Sequoia Peripherals, Inc.
Distribution: comp.unix.questions
Date: Mon, 16 Nov 92 02:20:48 GMT

Email bounced. Pardon me for posting something that is not really
clean enough for general consumption.

gdfwc3!kuwait!scotth@uunet.uu.net writes:
>Is there an easy way to do a search and replace of a string over an 
>entire directory or a list of files.  It would be nice it was something
>like like
>
>$ search_replace -search string1 -replace string2 -directory this_directory

This should work. I changed the usage to 

   search_replace string1 string2 this_directory

because as far as I could see, the -search, -replace, -directory
weren't buying you anything. It would be easy enough to adjust.

And I also am assuming that none of the arguments has any
spaces in it or any characters (such as .) that have special
meaning as regular expressions. All of this could be dealt
with by quoting things appropriately, but this is just a
quick off-the-top-of-my-head solution.

I also assume your system supports the #! syntax for launching
scripts. If not, figure out some other way to get /bin/sh
to interpret this.

Put this into a file and execute it as

   filename string1 string2 this_directory

#! /bin/sh

[ $# -eq 3 ] || {
     echo "Usage: $0 srchstring replstring dirname" >&2
     exit 1
}

srch=$1
repl=$2
dname=$3

find $dname -type f -print |
     while read fname
     do
	   ed - $fname <<-EOF
	   1,\$s/$srch/$repl/g
	   w
	   q
     done
    	
exit 0


I tested it out and it worked, but I do tend to make mistakes when
using ed, especially when I don't have my docs at hand. I'd test it
before unleashing it on real data.

If you have any questions about how either of this script works or 
about how to improve it to add better error checking or more flexibility, 
feel free to drop me a note. Shell programming can be tricky.



-- 
Dave Eisen                               Sequoia Peripherals: (415) 967-5644
dkeisen@leland.Stanford.EDU              Home:                (415) 321-5154
       There's something in my library to offend everybody. 
          --- Washington Coalition Against Censorship
Newsgroups: comp.unix.questions
From: martin@datacomm.ucc.okstate.edu (Martin McCormick)
Subject: Configuring ispell
Organization: Oklahoma State University, Stillwater, OK
Date: Fri, 20 Nov 1992 20:57:59 GMT


I am configuring  "ispell" to run on a Sun Sparc.  I wanted the "english.sml+"
dictionary so I edited Makefile to reflect this.  I am using  "web2"  as the
spelling list and modified Makefile and local.h to reflect the path.  When
I type "make makedictsml+" everything looks good until it crashes with 

"make: Fatal error: Don't know how to make target `english.0'"

	A look at the Makefile seems to say that english.0 may be an
intermediate file while the dictionaries are being made, but what else is
missing?
	The only dictionary-oriented data file I have added to the ispell
system is "web2," and that exists as /usr/local/dict/web2.
	It appears that the rest of the install will work when I find out
the solution to this problem.
	Thank you.

Martin McCormick WB5AGZ   Stillwater, OK
O.S.U. Computer Center Data Communications Group
Newsgroups: comp.unix.questions
Subject: how do I know on which console I work ?
From: errera@shum.cc.huji.ac.il (errera alfred)
Date: 18 Nov 92 15:53:03 GMT
Distribution: comp.unix.questions,world
Organization: The Hebrew University of Jerusalem, Israel
Summary: setting of DISPLAY variable

Hello.
We have a system of some SPARC 1 & 2 and some sun386i used as X terminal.
We do a lot of rlogin from one machine to another .
My question is : how do I know what is the console I work on?
namely how do I know the right setting for the DISPLAY variable so that
X programs will run on my display even when I do rlogin ?
please email or post the answer.
thanks a lot.
Eliel
errera@shum.cc.huji.ac.il
From: eluyten@rc1.vub.ac.be (Eric Luyten)
Newsgroups: comp.unix.questions
Subject: Re: Suppressing the 'w' command
Date: 18 Nov 92 17:26:34 GMT
Distribution: world
Organization: Brussels Free Universities (VUB/ULB), Belgium

In article <17488@pitt.UUCP>, fahad@cs.pitt.edu (Fahad A Hoymany) writes:
|> Could someone tell me how to stop other people from checking up on me
|> with the 'w' command?

rm /usr/ucb/w

(And the villains will start using 'ps'...)

To cut it short : there's no hiding.


Eric Luyten, BFUCC.
From: peter@global.hacktic.nl (Peter Busser)
Newsgroups: comp.unix.questions
Subject: Re: IS UNIX DEAD (long)
Date: Wed, 18 Nov 1992 11:49:21 GMT
Organization: Global Village 1

andy@research.canon.oz.au (Andy Newman) writes:

>papresco@napier.uwaterloo.ca (Paul Prescod) writes:

>>True, the problem is there are people, in this very newsgroup, who see
>>no reason to try to make user friendly applications for unix.  To them,
>>if you can't use VI right off the bat, or enjoy learning obscure, 
>>nonsensical, illogical keystrokes, you should go back to the mac.
>>THIS will kill Unix.

>Define "user friendly". Aren't the people who like vi users too?

Of course they are. But there are also easy to use editors availlable for X
such as textedit (from the XView3 library) and aXe. The problem is that such
an editor are not always delivered with a system and people are stuck to vi
or emacs.

Greetings,
Peter Busser
Xref: sparky comp.unix.questions:13622 comp.unix.sysv386:16617