HDTenEightyP/NetNews huggingface dataset:
From: mcook@fendahl.dev.cdx.mot.com (Michael Cook)
Subject: Re: rshing Ultrix xterms
Organization: Motorola Codex, Canton, Massachusetts
Date: Wed, 2 Sep 1992 00:37:12 GMT

rahner@iscnvx.lmsc.lockheed.com (Mark Rahner) writes:

>Hello World,

>I am having trouble rshing an xterm when the remote xterm is started
>under Ultrix V4.2 (Rev. 96) UWS V4.2 (Rev. 272).  Specifically, I can't
>prevent rsh from hanging around until the remote xterm has completed.
>I am using the Korn shell on all of the networked systems.  It is
>particularly important to me that the remote xterm be independent of
>the local xterm.  That is, I must be able to terminate the local xterm
>without affecting the remote xterm.

>And now, a preemptive quote from FAQ 3.2:

>> 2)  How do I use "rsh" without having the rsh hang around until the
>>     remote command has completed?
[...]
>>
>> 	    rsh machine -n 'command >/dev/null 2>&1 </dev/null &'
>>
>>     Why?  "-n" attaches rsh's stdin to /dev/null so you could run the
>>     complete rsh command in the background on the LOCAL machine.
>>     Thus "-n" is equivalent to another specific "< /dev/null".
>>     Furthermore, the input/output redirections on the REMOTE machine
>>     (inside the single quotes) ensure that rsh thinks the session can
>>     be terminated (there's no data flow any more.)

I came across the same problem.  It seems that there are some stray file
descriptors being left open somewhere along the line, and rshd is waiting on
them.  My tests show that file descriptors 4, 6, 8, 10, 11 and 12
(consistently) are left open (along with 0, 1 and 2, of course).

The workaround is to close these extra file descriptors.  You can try this:

  rsh machine -n 'foo >/dev/null 2>&1 </dev/null' \
	'4>&- 6>&- 8>&- 10>&- 11>&- 12>&-'

but I had trouble finding a shell that would grok two-digit file descriptors
(sh, sh5 and ksh didn't, but bash did).

Another workaround is to run your command like this:

  rsh machine closeall foo

where closeall is this:

#include <sys/param.h>
#include <fcntl.h>

int main(int argc, char **argv)
{
    int i;

    for (i = 0; i < NOFILE; i++)
        close(i);
    open("/dev/null", O_RDONLY);
    open("/dev/null", O_WRONLY);
    dup(1);
    execvp(argv[1], argv + 1);
}

Michael.
From: sandman@cray.csc.ncsu.edu (Mr Sandman)
Subject: Re: Help with directories!
X-Disclaimer: This message was written by a user at North Carolina
              State University. The opinions expressed are those of 
              the user and not necessarily those of NCSU.
Keywords: domain system
Reply-To: sandman@cray.csc.ncsu.edu (Mr Sandman)
Organization: North Carolina State University
Date: Mon, 31 Aug 1992 14:08:33 GMT


In article <1992Aug28.162012.1330@hemlock.cray.com>, ant@palm21 (Tony Jones) writes:
|> : > Oddly enough, the Domain Name System doesn't know "cray.csc.ncsu.edu".
|> : > Now why doesn't that surprise me?
|> : 
|> : Oddly enough, the Domain Name System doesn't know "john@physiol.su.OZ.AU".
|> : Is there some special meaning in this?  What the hell is your problem?
|> 
|> The domain system does know 'physiol.su.OZ.AU', not every host needs an
|> A(ddress) record (usually when there not directly connected to the Internet)
|> In this case it has a MX (mail exchange) record.
|> 
|> There is nothing in either address or MX info for 'cray.csc.ncsu.edu'

Specifically how does one obtain this information?


sandman@cray.csc.ncsu.edu	north carolina state university
From: chris@ctmnix.UUCP (Chris Matthews)
Newsgroups: comp.unix.shell
Subject: Re: cant delete file!
Keywords: funny filenames!
Date: 28 Aug 92 03:31:15 GMT
Reply-To: chris@ctmnix.UUCP (Chris Matthews)
Organization: Underground Nixbox Creations

In article <BtLrxr.77G@acsu.buffalo.edu> vidya-v@acsu.buffalo.edu (vidyaranya) writes:
>
>A file has been created in my directory accidentally,
>possibly while reading disk on a SparcStation IPC. I am unable
>to remove it. The file name appears as:
>
>-rw-r--r--  1 vidya-v         0 Aug 24 12:02 A??LN???N???-@??-
>
>How do I delet it? I tried escaping the '?' and '@' as follows:
>

First:
    can you pipe anything into it?  I'm thinking that it the system
  will see the file as not being empty, maybe, you'll have better
  luck at rm'n it.

Second:
    have you used any wild cards such as:  rm A*

chris
Genisys Corp.
Thu Aug 27 23:31:08 EDT 1992

Newsgroups: comp.unix.shell
From: Harald.Eikrem@delab.sintef.no
Subject: Re: Distinguish between numeric & nonnumeric char strings in shell ?
Organization: SINTEF DELAB, Trondheim, Norway.
	<1992Sep4.191337*Harald.Eikrem@delab.sintef.no>
Date: 4 Sep 92 20:52:16

I said:

! 
! 	_IFS=".$IFS"
! 	set -- $address
! 	IFS="$_IFS"

Think I left something out there, make that

 	_IFS="$IFS"
 	IFS=".$IFS"
 	set -- $address
 	IFS="$_IFS"

  ~~h
Newsgroups: comp.unix.shell,comp.unix.questions
From: bryan@uhura1.uucp (Bryan Curnutt)
Subject: Re: Shell Scripts vs. C programs
Keywords: shell script, C
Reply-To: bryan%uhura1@uunet.uu.net
Organization: Stoner Associates, Inc./DREM Incorporated, Houston Texas
Date: Wed, 2 Sep 1992 21:28:04 GMT

In article <1992Aug31.211738.1909@tjhsst.vak12ed.edu> nurban@tjhsst () writes:
>
>I've heard that if at all possible, code a program as a shell script
>rather than coding it in C.  Can someone explain the rationale behind
>this philosophy?

One rationale I haven't seen mentioned yet in this thread:  With a
shell script, the source code and the executable program are in the
same place.  It will be much easier for someone working on the system
several years down the road to find the source code, and to be sure
that the source code s/he has found is actually the code that is being
used in the executable program.
-- 
Any opinions above are mine, and do not necessarily reflect the views of SAI.
Bryan Curnutt
bryan%uhura1@uunet.uu.net
Newsgroups: comp.unix.shell,comp.unix.questions
From: alan@hal.larc.nasa.gov (alan dare)
Subject: Need help from a make guru
Originator: alan@hal.larc.nasa.gov
Organization: NASA Langley Research Center, Hampton, VA  USA
Date: Wed, 2 Sep 1992 19:19:56 GMT


In our application we wanted to keep the object and source separate from 
each other in a directory structure as shown below:

			<topdir>
			   |
			  / \
		   	obj  src

My current makefile does this quite well. It also doesn't require a separate
condition for each source. Problem: Several users add modules to a 
executive then compile it. It would would be nice if they didn't have to
modify the makefile. The makefile would just compile any source file in the
current directory. I have taken several stabs at it, but I am not having
any luck. All I need for it to work is a variable containing a list of
the source and a variable containing the objects with the directory path 
"../obj/" prefixed to it.  Below is a makefile that would compile all *.c and
create a a.out file. However, I can't get make to execute the shell command
correctly on the OBJECTS line correctly (the line is a valid shell command).

OBJDIR = ../obj

SOURCE=*.c
OBJECTS=`for i in \`ls *.c |sed 's/\.c/.o/g'\`; do echo "../obj/$i"; done`
$(OBJDIR)/a.out:  $(OBJECTS) 
	cc -o $@ $(OBJECTS) 

$(OBJECTS) : $SOURCE
	cc -c $(OPT)  $(@F:o=c) -o $@ 

Can anybody tell me how I can get the OBJECT variable set correctly?

Thanks to any and all.
-- 

*********************************************************************
Alan Dare                     |  Internet : alan@hal.larc.nasa.gov
NASA Langley Research Center  |
From: jdell@nefertiti.mit.edu (John Ellithorpe)
Newsgroups: comp.unix.shell
Subject: Re: cant delete file!
Date: 27 Aug 92 21:54:31 GMT
Organization: Massachusetts Institute of Technology

On 26 Aug 92 18:13:02 GMT, vidya-v@acsu.buffalo.edu (vidyaranya) said:
> A file has been created in my directory accidentally,
> possibly while reading disk on a SparcStation IPC. I am unable
> to remove it. The file name appears as:

> -rw-r--r--  1 vidya-v         0 Aug 24 12:02 A??LN???N???-@??-

> How do I delet it? I tried escaping the '?' and '@' as follows:

> [...] stuff deleted

How about :

% rm -i A*
rm: remove A??LN???N???-@??-? y

and it's gone for me.  How that helps you.

--John
--

===============================================================================
John Ellithorpe                           | Internet: jdell@maggie.mit.edu
Dept. of Physics, Rm 26-349               | Phone   : (617) 253-3074  Office
Massachusetts Institute of Technology     |           (617) 253-3072  Lab
Cambridge, MA  02139                      |           (617) 236-4910  Home
===============================================================================
Newsgroups: comp.unix.shell
From: hinz@picard.med.ge.com (David Hinz Mfg 4-6987)
Subject: Re: How can I rm a file with a '&' ????
Organization: GE Medical Systems, Magnetic Resonance
X-Newsreader: Tin 1.1 PL5
Date: Thu, 27 Aug 92 11:14:54 GMT

John Mackin (john@physiol.su.OZ.AU) wrote:
: 
: The reason it doesn't work is left as an exercise for the reader.
: 
: Come on, people.  Netnews is good.  It's nice to help others with
: their problems.  It isn't so nice when the purported `help' is
: actually a lot of crap.
: 
: How about, before you post, _testing_ what you are going to post?
: How about _knowing what you are talking about_ before talking?
: 
: These are not matters of opinion, like `which shell is best'.
: Those can be, and will be, disputed until the end of time.
: These are matters of simple _fact_.  Please, get the facts right.

Well, the following works on MY system (Sun 4.1.1):

rm 'big&cow'

as someone else had mentioned.  Perhaps NOGLOB has to be set, though.

--

Dave Hinz  -  Opinions expressed are mine, not my employer's.  Obviously.
hinzd@picard.med.ge.com
Xref: sparky comp.unix.shell:3725 comp.unix.questions:10594
Newsgroups: comp.unix.shell,comp.unix.questions
Subject: Re: Shell Scripts vs. C programs
From: ecmtwhk@ccu1.aukuni.ac.nz (Thomas Koenig)
Date: Tue, 1 Sep 1992 04:56:14 GMT
Organization: University of Auckland, New Zealand.
Keywords: shell script, C

nurban@tjhsst () writes:

>I've heard that if at all possible, code a program as a shell script
>rather than coding it in C.  Can someone explain the rationale behind
>this philosophy?

"If at all possible" seems a bit too strong to me, but I certainly
like shell scripts.

The "divide and conquer" way of doing things via pipes is something I
like quite a lot. You can subdivide many tasks into smaller parts, each
of which can be processed by a single sed, nawk, sort or whatever
command. The single tasks are usually simple enough so you can easily
test them, one at a time. Writing a monolithic C program would take much
longer in most cases.
-- 
Thomas Koenig, ecmtwhk@ccu1.aukuni.ac.nz, ib09@rz.uni-karlsruhe.de
The joy of engineering is to find a straight line on a double logarithmic
diagram.
From: becker@med-in.uni-sb.de.med-in.uni-sb.de
Newsgroups: comp.unix.shell
Subject: bash - Error editing the command line
Date: 28 Aug 92 07:35:14 GMT
Organization: Medizinische Universitaetsklinik, D-6650  Homburg / Saar
X-Newsreader: Tin 1.1 PL5

Sirs,

I installed bash on our SIEMENS MX500 (operating system: SINIX - X/OPEN and
 partially SYSV R3 compatible). bash works well, but there is an error in
readline. When I'm editing a line and go to left (with "cursor left") and
then delete a char (with "rubout") some characters at the end of the line
will dissapear and a string like "^`^`^`^`^`^`" appears. Then undo doesn't
work. Do You have any idea?

Thanks

Dieter

--
 Dr. med. dipl.-math Dieter Becker           Tel.: (0 / +49) 6841 - 16 3046
 Medizinische Universitaets- und Poliklinik  Fax.: (0 / +49) 6841 - 16 3369
 Innere Medizin III                         
 D - 6650 Homburg / Saar                     Email: becker@med-in.uni-sb.de
Newsgroups: comp.unix.shell
From: livings@unislc.uucp (Ross Livingston)
Subject: Re: How to empty a file
X-Newsreader: Tin 1.1 PL5
Organization: Unisys Corporation SLC
Date: Wed, 26 Aug 1992 16:39:07 GMT

Ken Brown (ccksb@blaze.trentu.ca) wrote:
: I'd like to empty a log file after extracting what I need from it so that
: the next day's data can fill it up a-fresh.  The file must exist after
: emptying it.
: 
: Any suggestions?

How about just

$ > file

This will 0 it for you.
-- 
Ross Livingston, Unisys Corp.  |  Phone   (801) 594-6217
322 North  2200 West,   D1V03  |  Fax     801-594-4861 / 801-594-6708
Salt Lake City, UT   84116     |  E-Mail  livings@unislc.slc.unisys.com
Newsgroups: comp.unix.misc
From: nikki@trmphrst.demon.co.uk (Nikki Locke)
Distribution: world
Subject: Performance monitoring front ends
X-Mailer: cppnews $Revision: 1.14 $
Organization: Trumphurst Ltd.
Date: Thu, 3 Sep 1992 17:32:07 +0000

I am currently researching the market for performance tuning software for 
UNIX. I know about sar and suchlike, but is there any software for sale 
out there which does performance monitoring (possibly in a more user-
friendly way then sar :-) ?

Please reply by mail, as I don't read this newsgroup regularly.

I will summarise the results back here, in case anyone else is interested.
---
Nikki Locke              |                        | nikki@trmphrst.demon.co.uk
Trumphurst Ltd.          | Tel: +44 (0)691-670318 | nikki@cix.compulink.co.uk
PC and Unix consultancy  | Fax: +44 (0)691-670316 | nikki@kewill.co.uk
trmphrst.demon.co.uk is NOT affiliated with ANY other sites at demon.co.uk.
Demon.co.uk is a dial-up subscription access point to the Internet.
From: ivan@cwi.nl (Ivan Herman)
Newsgroups: comp.unix.misc
Subject: Looking for a general threads package on UNIX
Date: 2 Sep 92 07:56:22 GMT
Organization: CWI, Amsterdam

Sorry if this question has been asked before.


In view of a large scale European research programme, we are looking for
a (possibly PD) lightweight process (thread) package on UNIX. The idea
is to have a package which would allow us to run within a "traditional"
UNIX process a large number of lightweight processes. We are especially
looking for packages which are as environment-independent as possible,
and which would be reasonably easy to install on a new hardware/software
environment.

More specific requirements are:

   - The package should be usable from C (or should be a language
     extension of C);
   - the scheduler for lightweight processes should be preemptive;
   - it should be possible to start several hundreds
     of lightweight processes
   - there should be facilities to ensure that system calls,
     especially I/O, would not block the whole UNIX process; only
     the caller lightweight process should be internally suspended.


It is a real plus for us if:

   - The package should be usable from C++ as well (if not, we can
     always try to adapt it).
   - There is a mechanism which ensures that, from a programmer's point
     on view, there would be no difference between sending a message from
     one lightweight process to another within the same UNIX address space and
     between making a (hidden) RPC call to another object on another
     UNIX process.

We know that the terminology in this respect is not fully established and,
for some, lightweight packages and threads are different sort of animals.
No flames please.

We do have information and/or experience with AT&T's Concurrent C/C++,
Brown University's Thread Package and of Waterloo University uSystem and
uC++. We are looking however for more complete information.

We would prefer to receive answers by email, because I do not read all
the newsgroups addressed by this message. I am happy to post a overview
if anything of interest pops up. Thank you in advance.

Ivan Herman
             Centre for Mathematics & Computer Sciences (CWI),
             Kruislaan 413, 1098 SJ Amsterdam, The Netherlands.
             Email:ivan@cwi.nl, Tel: +31-20-592.4163
Newsgroups: comp.unix.misc
From: steve@nuchat.sccsi.com (Steve Nuchia)
Subject: Re: restarting hung daemons
Organization: South Coast Computing Services, Inc.  Houston
Date: Fri, 4 Sep 1992 01:46:16 GMT

In article <1838beINNfes@maverick.ksu.ksu.edu> brtmac@maverick.ksu.ksu.edu (Brett McCoy) writes:
>that they would never have to do any work and they couldn't be
>killed without rebooting the country.

Didn't Thomas Jefferson say that the country ought to be
rebooted every twenty years or so?
-- 
Steve Nuchia      South Coast Computing Services, Inc.      (713) 661-3301
From: pollansw@cse.fau.edu (Warren Pollans)
Newsgroups: comp.unix.misc
Subject: purdue compiler const. tools
Date: 28 Aug 92 01:12:41 GMT
Organization: Florida Atlantic University, Boca Raton, FL, USA


Does anyone know if the Purdue Compiler Construction Tools  
will compile with the thinkC compiler on a mac SE and run
correctly, producing the same results as on a unix system?
I would like to be able to use the Antlr tool at home?

Thanks,

Warren

(pollansw@cse.fau.edu)
Newsgroups: comp.unix.misc
From: giachino@ghost.dsi.unimi.it (luca giachino)
Subject: Unix Windows UW: porting on Sys/V
Keywords: UW
Organization: Computer Science Dep. - Milan University
Date: Wed, 26 Aug 1992 09:50:00 GMT
Summary: Porting UW on Sys/V Unix


Hi,
did anybody try to port Unix Windows UW on UNIX System V?
The server source part is for BSD Unix. I need to port the server
source on HP-UX.

Please, e-mail any hint to giachino@ghost.dsi.unimi.it

Please, HELP ME!
Thank you

Luca Giachino

Newsgroups: comp.unix.misc
From: hoang1@litwin.com (Dave Jackson)
Subject: ioctl request SIOCGARP fail in SCO (ARP protocol)
Organization: Litwin Process Automation
Date: Fri, 28 Aug 1992 14:54:27 GMT

Hi,
I'm writing a program to read the ARP cache.
But I have the problem when using SIOCGARP in SCO/ODT ver 2.0:
  
  .
  .
  .
  int soc;
  struct arpreq ar;
  .
  .
  .
  /*
  **  Execute the IOCTL to read the ARP cache, if the host is not
  **  currently in the cache, this ioctl will fail.
  */
  if ((i = ioctl( soc, SIOCGARP, &ar )) != 0)

  It's always failed and return:
    errno == ENXIO
    ioctl: No such device or address

But if I test in DEC5000/200 Ultrix 4.2 or SUN/sparc OS 4.1.1 is ok.

Do I miss anything in SCO env.

I will post or mail my source code if you request.

Thanks in advance,

Ted Hoang
Litwin Process Automation
Email:hoang1@dynsim1.litwin.com

Newsgroups: comp.unix.misc
From: dchin@tamar.msc.cornell.edu (David W. Chin)
Subject: How to add a suffix to a bunch of files?
Keywords: shell, script, files, names
Organization: Cornell-Materials-Science-Center
Date: Thu, 3 Sep 1992 21:36:46 GMT

I have occasion to add suffices on a whole bunch of files, like a .1 suffix on
all files in cat1 (just an example).  What's an elegant way to do it?
The one I thought of was:

#!/bin/sh
cd cat1
for X in `ls -1`
	do
	eval "mv $X $X.1"
	done

Thanks a lot in advance.  (I hope this is not in an FAQ somewhere -- seems like
something which is commonly done.)


David Chin				 Cornell University '92

________________________________________________________________________
Internet:                       |        
  dchin@helios.tn.cornell.edu   |        
Bitnet:                         |        Phone:  (607) 257-6576
  iojj@crnlassp                 |        Add:  401 Thurston Ave., Ithaca
  iojj@crnlvax5                 |              NY 14850-2431
  iojj@crnla                    |        Shoe size:  8 1/2
________________________________|_______________________________________
From: mcramm@dct.ac.uk
Newsgroups: comp.unix.misc
Subject: Reading Sun 8mm on IBM RS/6000
Date: 27 Aug 92 11:08:37 GMT
Organization: Dundee Institute of Technology

I'm trying to read an 8mm (Exabyte) tape written using tar on a Sun4
with (I think) the tape drive set to variable byte per block in hardware.
It was written to /dev/nsrmt0 using SunOs4.1.x tar.

The problem is that I'm trying to read it on our RS/6000 (Mdl 530) and can't
get anything to read bytes from the tape. I've tried using smit, chdev and tctl
to set the bytes per block to variable, but nothing produces anything from the
tape on read. Can anyone suggest any further action I could take. PLEASE!
(P.S. we 're running AIX 3.1)

Thanks in advance,

Angus

 Angus M. Marshall, 
 e-mail: MCRAMM@UK.AC.DCT.CC.VAXB           
         MCRAMM@UK.AC.DCT.CLUS                                 // 
         amarshal@uk.ac.dund.mcs                              //
 Phone: (+44 382) 308000 ext. 2265 or (+44 382) 308600    \\ //
                                                           \X/
".. and in the grove, by gate and hill, midst  merry  throng  and  market
clatter -  stood  the  Hall  of  the Mountain Grill, where table strain'd
'neath loaded platter "                             
(from the legend of Beenzon Toste - Hawkwind)      
Xref: sparky comp.unix.misc:3408 alt.religion.computers:589
From: sflinter@cs.tcd.ie (Stephen Flinter)
Newsgroups: comp.unix.misc,alt.religion.computers
Subject: Re: The need for an assembler (was: Favorite CPU)
Date: 28 Aug 92 13:39:53 GMT
Organization: Trinity College, Dublin (Computer Science)

In article <1992Aug28.035239.21736@wariat.org> sjsobol@wariat.org (Steven J. Sobol) writes:
>
>Real programmers would realize that 'copy con program.exe' is impossible
>because DOS wouldn't let you enter all values 0-255 from the keyboard 
>(at least not using ASCII...)
>

Sorry, not true!  By typing ALT-xxx, where xxx is the ASCII
code of the character required, on a PC's number keypad you
can access all 256 characters.  Admittedly not the most
intuitive interface ever conceived, but it is possible.
-- 
//
//      Stephen Flinter                          sflinter@cs.tcd.ie
//      AI Lab, Computer Science
//      Trinity College Dublin
From: rlyle@nl.oracle.com (The Wizard of Ozje - Garf)
Newsgroups: comp.unix.misc
Subject: Re: Reading Sun 8mm on IBM RS/6000
Date: 27 Aug 92 17:56:47 GMT
Organization: Oracle Europe

In article <1992Aug27.120837.236@dct.ac.uk>, mcramm@dct.ac.uk writes:
... stuff deleted ...
|> get anything to read bytes from the tape. I've tried using smit, chdev and tctl
|> to set the bytes per block to variable, but nothing produces anything from the
|> tape on read. Can anyone suggest any further action I could take. PLEASE!
|> (P.S. we 're running AIX 3.1)

The correct settings for the AIX video 8 are:

mode       yes Use DEVICE BUFFERS during writes
block_size 0   BLOCK size (0=variable length)
extfm      no  Use EXTENDED file marks

This output is give by lsattr -E -lrmt0
I *KNOW* this works for a standard Exabyte on a Sun (90m tape - no compression).

--Rob.

-- 
Robert P K Lyle						**********************
UNIX System Manager					 If I could play the
ORACLE Nederland					Blue Peter theme tune
Rijnzathe 6,	 					   here, I would.
3454 PV  						**********************
De Meern
E-mail:  rlyle@nl.oracle.com				FAX:     +31 3406 65603
Voice:   +31 3406 94211					Private: +31 10 4809140
Newsgroups: comp.unix.misc
From: haseka@aix.rpi.edu (Atilla A Hasekioglu)
Subject: multimedia
Organization: Rensselaer Polytechnic Institute, Troy NY
Date: Tue, 1 Sep 1992 17:57:48 GMT

Newsgroups: comp.windows.x.apps
Subject: multimedia
Summary: 
Followup-To: 
Distribution: world
Organization: Rensselaer Polytechnic Institute, Troy NY
Keywords: 

I am looking for a multimedia software that compresses images and has mailing 
options. This should be in Xwindows. I have images in many formats.
I would like to be able to change their formats and have printouts. I also
would like to be able to view them. The software I am looking for should
have all these options. I also would like to have the option to decompress and
view the image from where it is sent by mail, so this will be a two sided
software that can be used both by the sender and receiver  side.
  If anybody can help me,I will very much appreciate it.
Newsgroups: comp.unix.misc