HDTenEightyP/NetNews huggingface dataset:
From: mdelaney@informix.com (Mark Delaney)
Newsgroups: comp.windows.x.openlook,comp.unix.wizards
Subject: Re: ispell for mailtool/textedit
Keywords: ispell standard input
Date: 21 Jul 92 17:49:18 GMT
Organization: Informix Software, Inc.

In <1992Jul8.182057.14395@mlb.semi.harris.com> mwills@su102c (Scott Wills) writes:

>I've been using the following shell script, invoked from my
>~/.text_extras menu to interactively spell correct outgoing mailtool
>messages.  It seems to work pretty well.  Have other nifty solutions
>been devised?

I sort of made a little more generic solution... I just made a generic
filter support an let the argument be the interactive program to be
run.  For example, my ~/.text_extras_menu has the following line:

   "Ispell"           filter ispell

And the filter program looks like this:

   #!/bin/sh
   TEMP=/tmp/X_filter_file
   export TEMP
   cat > $TEMP
   shelltool $* $TEMP
   cat $TEMP

You may be wondering why I made TEMP a constant and did not remove
it (a good point).  Well, I had a problem that I am surprised that 
you haven't run into... the selected region will timeout after a few
seconds.  When this happens, the filtered region (in this case spell
corrected) is not replaced.  So I also added the following to my
.text_extras_menu:

   "Swap"        cat /tmp/X_filter_file

This does require that I reselect the region which is kind of a drag.
If you have avoided this problem, can you let me know what you did
differently than I.

BTW, having my filter program be generic seems to be a good idea, but
I have yet to find another good use for it besides ispell (and ispell
is pretty spiffy... thanks to whomever wrote it).
	
>Delete leading spaces from all of the above, and replace
>"/full/path/to/ispell-stdin" with where ever you put the script.

Oh, I didn't use the full path because my "filter" program is in
my path... perhaps the full path is a better idea.

						- Mark
-- 
Mark A. Delaney                  mdelaney@informix.com
                                 [pyramid|uucp]!infmx!mdelaney
#include <disclaimer>            (415) 926-6369
Newsgroups: comp.unix.wizards
From: terry@npd.Novell.COM (Terry Lambert)
Subject: Re: process-usage after ctrl-alt-del
Organization: Novell NPD -- Sandy, UT
Date: Wed, 22 Jul 1992 23:02:05 GMT

In article <31497@adm.brl.mil> bosscha@rc7.nhl.nl (Freerk J. Bosscha) writes:
>Hello,
>
>Is there anywhone who could send me a possible solution off the following
>problem.
>
>We use MS-DOS pc's with kermit as terminal-emulater to login on an SCO-UNIX
>box. 
>There is no problem if the user normaly terminate a session. But if he, as
>good old DOS user stops with <CTRL>-<ALT>-<DEL> the session still keep op
>running and sometimes use cpu-time. If a process keeps on consuming cpu-time
>it will NOT be killed after a certain idle time.
>Does anywhone know a way such a user can be allocated and then killed.

Set your SCO up correctly, so that HUPCL is set and CLOCAL isn't; user
processes will be sent a SIGHUP on the on-to-off carrier transition caused
by the reset of the PC.  When reset, it will drop carrier, at least for a
few seconds.  If it doesn't, buy a $15 com card that will.  This will
end up putting a getty on the port, whose open (and subsequent diplay of a
"login:" prompt) will be blocked until DCD goes high again.

Most PC com cards have terminal gender, and, as such, will provide DTR,
which you should wire to the UNIX DCD input.

The same trick will work for regular terminals that get switched off.

In SCO UNIX, there is a tendency to have multiple entry points for a device;
for instance, if you are using the built in serial port, make sure the getty
is running on tty1A rather than tty1a -- this will ensure that modem control
is observed.  If you are using a multiport board, look in the manual or
contact the manufacturer for info on how to get a modem control port.
Remember that there are some flavors of multiport board where support is
optional for modem control, and depends on which HW you buy.  For instance,
there are modem control and non-modem control versions of the DigiBoard
and Altos multi-drop boxes, as well as version of both for terminal servers
like the DecServer 100 (100 and 100-mc).


					Terry Lambert
					terry_lambert@gateway.novell.com
					terry@icarus.weber.edu
---
Disclaimer:  Any opinions in this posting are my own and not those of
my present or previous employers.
From: tcowin@trivia.coginst.uwf.edu
Newsgroups: comp.unix.wizards
Subject: getprotobyname()
Date: 21 Jul 92 14:22:43 GMT

I'm not sure if this is the correct forum for this, but I'm having problems
with delays in processing of network commands(route, ping, etc.) on A/UX
3.0.
I've got source to ping(from Berkeley) and have eliminated the delay in
that
command by bypassing the call to getprotobyname. Why this call would hang
is
a mystery to me. /etc/protocols exists and is fine. The command itself 
eventually completes correctly, it just takes 60-90+ seconds. This wouldn't
normally be of great concern, but this is on the POP server for Campus
Email, and this particular bug has shut down this service. Needless to say,
my office has become a popular place. (HELP!)
Anybody have a clue to why getprotobyname would do this?

Thanks for any help, Tom Cowin

--
Thomas B. Cowin        	       	        	     (904) 474-2507 (Office)
Institute for Human & Machine Cognition      (904) 474-3068 (Institute)
Division of Computer Science    	       	     tcowin@ai.uwf.edu (internet)
The University of West Florida               tcowin@uwf.bitnet (bitnet)
11000 University Parkway
Pensacola, FL  32514
From: wania@ime.usp.br (Wania Gomes Pedrosa)
Newsgroups: comp.unix.wizards
Subject: RE: UNIX-WIZARDS Digest  V15#103
Date: 27 Jul 92 12:46:39 GMT


Oi Vicente.

Puxa,
Fiquei feliz pelo que voce
contou e por voce ter contado com Deus.



Voce tem orado e confiado, que bom!

O que falta para que voce^ entregue
sua vida a Jesus como seu Salvador e Senhor?


Tem uma musica que gosto, e o trecho que fala
para mim diz o seguinte:

"A vida que Cristo oferece, o mundo nao pode lhe dar...
E' vida que nasce da morte , e' vida que tras o perdao.
E' muito mais que uma religiao , e' Cristo vivendo em voce."

Vicente, Jesus espera um convite seu para entrer e fazer
morada no seu coracao e assim ter dar uma nova vida.
Entregue-se a ele, sem reservas.


                  Um abraco,
                        Wania

Bom dia !!
Newsgroups: comp.unix.wizards
From: ffeng@cs.tamu.edu (Fang Feng)
Subject: Need help on PC-NFS installation
Organization: Computer Science Department, Texas A&M University
Date: Tue, 28 Jul 1992 01:51:02 GMT

Hi, netters:
    We installed PC-NFS on a PC running DOS 5.0. We are trying to 
connect the PC to a file server which is a SUN Sparc workstation.
The installation and configuration processes went through 
smoothly. However, we could not connect to the server from the PC. 
When I ran nisdomain, it was fine; but when I ran nisset as 
"nisset hostname", it told me that "hostname is not the nis server
for the domain hostname".

    I tried to use command "ping hostname". I was told "hostname is 
unreachable". I also tried telnet and unable to open connection.
We did edit /etc/hosts, /etc/ethers, etc. And we also ran 
the "rpc.pcnfsd" on the server. 

    The server is connected to several other sparcs through an 
Ethernet. They work well. 

    Can anyone tell me where the problem might be? 

    Thanks in advance.

-- Fang Feng
--
Texas A&M University             
Department of Computer Science  
(409)847-8609 (409)845-7147                  
internet: ffeng@cs.tamu.edu
From: evansmp@uhura.aston.ac.uk (Mark Evans)
Newsgroups: comp.unix.wizards
Subject: Re: Connecting machines from across the seas
Date: 24 Jul 92 18:32:12 GMT
Organization: Aston University

mckeehan@math.utk.edu writes:
: I have a fairly good question, that I believe will sparc some
: conversation...
: 
: I have two Sun IPC's.  One in Kuwait and the other in Tennessee. (Please
: note, this is not some make believe setup, it actually exists).  I need
: to transfer some data files between the two machines...and I'd like to
: do it once a week.
: 
: Due to security reasons, we prefer to not have these machines on any
: major network (i.e., internet).
How about simply configuring the machines so that they drop any packet
from a machine they don't recognise.
: 
: What is going to be the best (putting into consideration cost, time, and
: dependability) way to connect these two machines?
: 
: I am presently looking at a UUCP connection simply because I don't know
: of any other feasible method.
You could run a point-point link over a phone connection.
What protocol you use is up to you, UUCP, SLIP, whatever.
Though it would be a good idea to compress the files before you send
them.
That way you would save on the cost of the connection.

-- 
-------------------------------------------------------------------------
Mark Evans                                   |evansmp@uhura.aston.ac.uk
+(44) 21 565 1979 (Home)                     |evansmp@cs.aston.ac.uk
+(44) 21 359 6531 x4039 (Office)             |
Newsgroups: comp.unix.wizards
From: fitzgb@mml0.meche.rpi.edu (Brian Fitzgerald)
Subject: Intro to comp.unix.wizards - read before posting! (weekly announcement, last change: Jun 6 12:35)
Followup-To: poster
Organization: Rensselaer Polytechnic Institute, Troy NY
Date: Sun, 26 Jul 1992 10:00:48 GMT
Expires: Tue, 25 Aug 1992 10:00:26 GMT

Please take a moment to read this before posting to comp.unix.wizards
for the first time.

comp.unix.wizards is for in-depth discussion of advanced unix topics.

Elementary questions do not belong in comp.unix.wizards.  Although some
socket questions (for example) are appropriate, "How do I program with
sockets?" is not.

Crossposting to comp.unix.wizards and comp.unix.questions is
inappropriate.  Plenty of wizards read comp.unix.questions and answer
questions there.

A wizard is someone who can rewrite the entire system from scratch.  If
you are not a wizard, you are welcome to follow along the discussions
anyway.  You'll learn quite a bit about how UNIX works.  Caution: post
to wizards only if you are yourself a wizard.

For a list of answers to frequently asked questions (FAQ), please refer
to comp.unix.questions (or comp.lang.c, news.answers, etc...).  "How do
I delete a file whose name starts with a '-' ?" is an example of such a
question.  Please do not ask or answer FAQ's on the net.

Write to Unix-Wizards-Request@BRL.MIL (Subject: subscribe.  Any
message.) if you want a daily digest of this newsgroup mailed to you.

To unsubscribe from the unix-wizards mailing list, send mail to
Unix-Wizards-Request@BRL.MIL Subject: unsubscribe.  It is incorrect to
post such requests to the list, though others may mistakenly do so.

E-mail comments about this posting are welcome.  From time to time I'll
summarize them.

Brian
--
These opinions are mine, and do not necessarily reflect those of any
academic department or computing service at Rensselaer.
From: cracraft@wheat-chex.ai.mit.edu (Stuart Cracraft)
Newsgroups: comp.unix.wizards
Subject: Intel 80386 vs. Sparc endianness/bits/bytes
Date: 25 Jul 92 14:30:53 GMT
Organization: MIT Artificial Intelligence Lab


Could someone summarize whether the i386 or the Sparc is big-endian
and what the byte/bit ordering is? Please send me a small note with
this information rather than the comp.unix.wizards list.

Stuart
Newsgroups: comp.unix.wizards
From: Dr. Peter Markiewicz <peterm@inherit.mbi.ucla.edu>
Subject: problem in /debug directory
Organization: Dept. Microbiology, UCLA
X-Useragent: Nuntius v1.1
Date: Wed, 29 Jul 1992 05:37:53 GMT


Newsgroups: comp.unix.wizards
From: boyd@prl.dec.com (Boyd Roberts)
Subject: Re: ptys and other pipe-like devices
Organization: Digital Equipment Corporation - Paris Research Laboratory
Date: Wed, 29 Jul 1992 19:20:00 GMT

In article <1992Jul24.014111.3578@manitou.cse.dnd.ca>, pburry@manitou.cse.dnd.ca (Paul Burry) writes:
> I have an application that would like to make 16k non-interruptable writes
> to a pty device.

16k write down a pty.  Yeah, right, what _are_ you trying to do?

What about signal(2)?


    oldsig = signal(SIG-to-be-avoided, SIG_IGN);

    write(...);

    signal(SIG-to-be-avoided, oldsig);


Boyd Roberts			boyd@prl.dec.com

``When the going gets wierd, the weird turn pro...''
From: PAULZHU%UNCVX1.BITNET@vtvm2.cc.vt.edu
Newsgroups: comp.unix.wizards
Subject: RE: UNIX-WIZARDS Digest  V15#103
Date: 27 Jul 92 18:51:41 GMT

What is this gibblish in spanish? Hey, this is unix-wizards list.
Newsgroups: comp.unix.wizards
From: kibirev@csa.bu.edu (oleg kibirev)
Subject: Re: Making ``.plan'' EXECUTE a Program ???
Organization: Computer Science Department, Boston University, Boston, MA, USA
Date: Fri, 24 Jul 1992 16:47:04 GMT
X-Posted-From: csa.bu.edu
X-Posted-Through: sol.ctr.columbia.edu

In article <1992Jul22.062254.21368@Princeton.EDU> spencer@phoenix.princeton.edu (S. Spencer Sun) writes:
>In article <bharat.711752774@Xenon.Stanford.EDU> bharat@Xenon.Stanford.EDU (Bharat Shyam) writes:
>>umnoor@ccu.umanitoba.ca (Nasir Ahmed Noor) writes:

>I'm curious to see exactly what this display was that "only a
>program/script could do".
>>
May be, something like:

[some.host.EDU]
Hi, S. Spencer Sun,

I have recieved your mail about "Subject" at 4.00am 07/20/92 and
will read it as soon as I log in.

I have seen such finger on one host. It fingures you back, tries to
figure out your name and executes a program.

>>Make your .plan a named pipe. (See "man mknod"). then have a program
>>that writes to it. It will sleep until the finger daemon reads from it,
>>whence your prog  will be awakened and the finger daemon will read 
>>what your program is writing.

Unf, this can cause mystereous crashes with NFS that doesn't get named pipes
right. So, if you are fingured on a host that imports your home dir, Mr. Nobody
gets hang fingerd. 

Probably the better solution is to set setgid bit on .plan and have your daemon
flock() it. The program can than monitor last read time of .project and, when it 
changes, modify and release .plan. Locks don't work accross NFS either, but 
at least nothing gets hang.

>
>Until, of course, the system reboots, in which case your writer process
>will die (unless you can persuade your sysadmin to stick it in the
>

Would be nice if user could have .startup file in $HOME that gets executed
after each reboot...

>The reason why people are so gung-ho about named pipes for their .plan
>files continues to elude me...
>
My favourite advice is making your .rhosts a named pipe :)

Oleg Kibirev


Newsgroups: comp.unix.wizards
From: rohit@NeoSoft.com (Rohit Mehrotra)
Subject: Drag 'n Drop
Organization: NeoSoft Communications Services -- (713) 684-5900
Date: Thu, 30 Jul 1992 13:13:31 GMT

XView

Can someone please tell me how to use the DND facility with XView 3
so that I can give textedit the name of the file to be read rather
than sending it a string ?

Ive implemented Drag n drop for my application and I can quite happily
accept data from textedit (either by pasting it in or by reading
the file when I drop onto my drop-site target).

However doing the reverse seems to rely on undocumented Sun facilities.
Specifically I am trying to understand the use of the TARGET atoms.
Normally data comes in as a XA_STRING, however textedit uses the
_SUN_HOST_NAME (is that spelled right?) and _SUN_FILE_NAME atoms
amongst others. If you do a strings of textedit or do an xlsatoms
you will see lots of _SUN* atoms which are not documented.

How can I copy a file to textedit without sending it the contents of
the file via the X-server.

The problem is that if I send anything to textedit it inserts it into
the current file rather than editing the new file I want it to.

If anyone knows of any example programs which use DND and can happily
talk to textedit this way then please point them out to me. 

Anyone know of any archives with good examples of the XView tricks of
the trade ?

I find the O'reilly book really a pretty poor document (Vol 7 rev 3). 
The sources from X11R5/contrib are NOT the same as suns so
they arent too helpful either.

Thanks in advance


Rohit Mehrotra

Please EMAIL me your answer and I would post a summary.
-- 
Rohit Mehrotra
------------------------------------------------------------------------------
VITAL				| 	10755 Meadowglen Lane, #238
Ph: 713-781-7406		| 	Houston, TX 77042.
Newsgroups: comp.unix.wizards
From: todds@Newbridge.COM (Todd Sandor)
Subject: Re: Out-of-band data on sockets
Organization: Newbridge Networks Corporation
Date: Tue, 21 Jul 1992 14:16:19 GMT

In article <1992Jul17.090725.246@gamelan> thf@zelator.in-berlin.de (Thomas Funke) writes:
)A process is expecting (waiting for) OOB-Data (out-of-band, urgent) on
)a stream-socket. I'm doing a 'select' with the exception-fd's enabled,
)and that works. The problem is, that sometimes the select returns too
)early, so a following 'recv' with MSG_OOB does fail. Currently I'm
)polling the 'recv', thus looping until it returns OK, but I believe
)that is not a good solution.

Similiar problems exist with SunOS 4.1.1.  With SunOS, the select returnsindicating OOB data, then read the OOB data (all is OK), then go into
the select again and select returns with OOB data pending (nothing
has been sent).  If try to read the OOB data you get a an error with
errno indicating an Invalid argument.
In talks with Sun, this is a problem in the original BSD code, they
we NOT planning on fixing it the last time I looked into it. (I believe
there fix was to change the documentation to indicate how the functionality
worked, rather then fixing the bug so it worked as documented).

(Problem is the select with exception-fd enabled will ALWAYS return with
something to read after the first OOB data is received - reading the
OOB data makes no difference).

Anyone have any luck in getting Sun to fix this problem?

)The SIGURG-signal does not work either, it's also sent too early. I'm
)running a AIX/RS6000 and a NeXT, both with the same behaviour. And from

)the docs, I think this is a feature not a bug :-(

The SIGURG stuff has problems under the SunOS as well.  It doesn't work
correctly when have lost of data in the send and receive buffers of
the sockets.  I tried testing by increasing the
send and receive buffers on both ends of the socket connection, and
then had the sender send data until it would have blocked (using non-blocking
sockets) and then the sender sent the OOB data.  The OOB data was delivered
to the remote OS (netstat -a shows the send and receive buffer sizes, thereceive buffer on the remote end increased by 1), but
the SIGURG was not delivered immediately.  The receiver had to read data
from the socket before it received the signal. THEN, in the signal
handler the OOB data could NOT be read.  The signal handler had to
read some data from the socket before it could read the OOB data.
Note: If there is not lots of data in the send and receive socket buffersthings seem to be OK, but the functionality is not consistant (changes
depending upon the amount of data in the socket buffers, which in my
opion is a bug)....
 
Anyone have better experiences with OOB data under SunOS?
-- 
OSI buys you the promise of richer applications than the IP suite
at the cost of immaturity, complexity, inefficiency and incompleteness. 
Todd Sandor						Newbridge Networks:  Kanata, Ontario Canada
todds@newbridge.com
From: bzs@world.std.com (Barry Shein)
Newsgroups: comp.unix.wizards
Subject: UNIX-WIZARDS Digest  V15#103
Date: 28 Jul 92 17:09:26 GMT


>What is this gibblish in spanish? Hey, this is unix-wizards list.

It was Portuguese and looked fine to me. It might shock you to learn
that people do use other languages outside of foreign language course
curricula.

        -Barry Shein

Software Tool & Die    | bzs@world.std.com          | uunet!world!bzs
Purveyors to the Trade | Voice: 617-739-0202        | Login: 617-739-WRLD
Xref: sparky comp.unix.wizards:3369 comp.dcom.sys.cisco:1000
From: yedidya@bimacs.BITNET (Yedidya Israel)
Newsgroups: comp.unix.wizards,comp.dcom.sys.cisco
Subject: heading garbage from a socket
Date: 30 Jul 92 15:05:49 GMT
Organization: Math department, Bar-Ilan University, Ramat-Gan, ISRAEL


Hello net I hope I'll get help this time too.

I wrote a simple code to open a socket connection to a terminal server
using a specified port number in order to bidirectional "talk" with a
PostScript printer hooked up on it.

The connection goes well except for first read() on the socket that
gets a trailing garbage (always the same garbage) e.g.

\377\373\001\377\373\003%%[ Error: invalidfont; OffendingCommand: ...
^^^^^^^^^^^^^^^^^^^^^^^^

Any idea?
--
Israel Yedidya,         Phone:  972-3-5318682 or 972-3-5318407/8
System Administrator,   Fax:    972-3-5353325
Math & CS Department,   Email:  yedidya@bimacs.cs.biu.ac.il
Bar-Ilan University,    Bitnet: yedidya@bimacs
Ramat-Gan, ISRAEL.      Uucp:   ...!uunet!pucc.princeton.edu!bimacs!yedidya
If someone proves there is no God, I'll stop being religious!
Newsgroups: comp.unix.wizards,comp.lang.perl,comp.unix.admin
From: U433214%twncu865.BITNET@pucc.princeton.edu (Andrew Wang)
Newsgroups: comp.unix.wizards
Subject: Re: /sub
Date: 30 Jul 92 22:49:22 GMT

signoff
From: pburry@manitou.cse.dnd.ca (Paul Burry)
Newsgroups: comp.unix.wizards
Subject: ptys and other pipe-like devices
Date: 24 Jul 92 01:41:11 GMT
Organization: Canadian System Security Centre

I have an application that would like to make 16k non-interruptable writes
to a pty device.  (The application is Sybase 4.8).  Currently, when it does
a 16K write, it occasionally is interrupted a signal caused by its internal
scheduler.

Is there ANY way I can configure the kernel so I can get this behaviour.
I am running SunOS 4.1.[12].

I see in specfs/fifo.h the define FIFOBUF defines the amount of data 
buffered by a pipe.  Would changing this from 4K to 16K cause the 
desired behaviour?

Alternatively, could anyone provide be with the source for a pipe-like 
device providing non-interuptable writes that has both master and 
slave /dev/ entries?

Any help or suggestions would be much appreciated.
-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Paul Burry			
Voice: (613)-991-7325		Internet: pburry@cse.dnd.ca
Fax:   (613)-991-7323		UUCP:	  ..!{uunet,cunews}!cse.dnd.ca!pburry
Xref: sparky comp.unix.msdos:889 comp.unix.sysv386:12264 comp.unix.questions:9299
From: maw@netcom.com (Martin Walker)
Newsgroups: comp.unix.msdos,comp.unix.sysv386,comp.unix.questions
Subject: Re: SCO ODt 2.0.0 DOS-Merge & ethernet
Keywords: sco odt dos merge ether
Date: 22 Jul 92 19:31:34 GMT
Organization: Netcom - Online Communication Services  (408 241-9760 guest)

In <orman.711815318@pv0226.vincent.iastate.edu> orman@iastate.edu (David L Orman) writes:

>>I have just installed SCO OpenDesktop 2.0.0, and have been battling
>>to get my ethernet card visible to DOS-Merge. I have two ethernet cards
>>in my machine: one for SCO and one for DOS. The card I want to
>>use for DOS is on IRQ3, Base address 0x260, and RAM address 0xd4000.
>>The other card (for Unix) is on IRQ11, Addr  0x240, RAM 0xd0000.


>Why do you need seperate cards?  We just have one and it works fine for everything.

I want to development under DOS using PC/TCP. I can't very well have
DOS generating stuff on one end of the socket and excpet SCO to
receive it properly on the other, or can I ?

Kean
Newsgroups: comp.unix.msdos
From: swispl@solomon.technet.sg (SW International)
Subject: PC Interface
Organization: National University of Singapore
Date: Sat, 25 Jul 1992 08:36:22 GMT

Can someone experienced in the usage of PCI please help me answer some
questions.

What is PCI's full capabilities, as compared to NFS?

How is PCI different from NFS (other than for the obvious)?

Where is PCI's strengths as compared to NFS?

Your help is very much appreciated.

Regards,

Alvino...

--
SW International Systems Pte Ltd     |  "I've got a plan so cunning 
    14, Science Park Drive           | you could put a tail on it and
    Singapore Science Park           | call it a weasel".. Black Adder
    Singapore 0511                   | 
    Tel: (65) 778-0066               |
    Fax: (65) 777-9401               | swispl@solomon.technet.sg
Newsgroups: comp.unix.msdos,comp.unix.sysv386