HDTenEightyP/NetNews huggingface dataset:
From: dsiebert@icaen.uiowa.edu (Doug Siebert)
Newsgroups: comp.unix.questions
Subject: Why can't I bind to 127.0.0.1 (loopback?)
Date: 12 Apr 92 21:09:59 GMT
Organization: ISCA

I've got a pair of programs I want to communicate using sockets (I'd really
prefer network sockets, but I'll be forced to use Unix domain sockets if I
can't solve this problem)  I don't want others on different machines to be able
to connect to the server's socket, so I want to bind to an address on the
loopback interface (127.0.0.1) and listen there, but bind(2) fails with can't
assign requested address on an HP 9000/750 running HP/UX 8.07 (A 9000/710 also
running HP/UX will be the target of this app, but I'd like it to be fairly
general if possible)  It also fails on a Sparc II but *works* properly on an
HP/Apollo 425e running Domain/OS 10.3.5 (and it works on 10.4, too)

Is there a solution I'm overlooking here?  Or should I toss up my hands and
use Unix domain sockets instead (how would this affect efficiency, etc, if at
all?)  Thanks for any replies concerning either a general solution or at least
an HP/UX hack :-)
-- 
/-----------------------------------------------------------------------------\
| Doug Siebert                | "I don't have to take this abuse from you --  |
|                             |  I've got hundreds of people waiting in line  |
| dsiebert@icaen.uiowa.edu    |  to abuse me."  -  Bill Murray, Ghostbusters  |
\-----------------------------------------------------------------------------/
SIGNATURE VIRUS 3.0b, NEW AND IMPROVED -- NOW EVEN LOUDER AND MORE ANNOYING!!!!
From: fischema@Informatik.TU-Muenchen.DE (Max Fischer)
Newsgroups: comp.unix.questions
Subject: Multiple Signals
Date: 14 Apr 92 16:54:16 GMT
Article-I.D.: Informat.1992Apr14.165416.26544
Organization: Technische Universitaet Muenchen, Germany
Originator: fischerm@hpsiegert3.informatik.tu-muenchen.de


Hello,
I've got a question concerning SIGNALS: I wanted to write a signal-handler
that reacts to SIGUSR1, but I found no way to prevent signals to get lost,
if there are more in a short period of time. As I am a beginner in UNIX
system-programming, I asked some people and I've been told, that there
is no way to prevent signals from getting lost.
Is this (almost impossible fact) true???
Does anybody have a solution to my problem???
How could I (at least) minimize the probability of lost signals???

Thanks 
	Max
From: lwall@netlabs.com (Larry Wall)
Newsgroups: comp.unix.questions
Subject: Re: Much Ado about Nothing: white space and sh and csh
Keywords: csh sh test expr
Date: 8 Apr 92 18:22:33 GMT
Organization: NetLabs, Inc.

In article <ku51nmINNimj@early-bird.think.com> barmar@think.com (Barry Margolin) writes:
: This is what happens when you try to make a language do double duty.
: Shells are both simple command interpreters and programming languages, but
: the requirements of the two are quite different.  This is why some people
: got fed up and implemented alternate scripting languages such as perl.

Yep.  You hit the hammer right on the head.

Larry Wall
lwall@netlabs.com
Newsgroups: comp.unix.questions
From: fitzgb@mml0.meche.rpi.edu (Brian Fitzgerald)
Subject: Re: HOw to trim off spaces from the file name
Organization: Rensselaer Polytechnic Institute, Troy NY
Date: Wed, 8 Apr 1992 18:51:30 GMT

N o s t a l g i a writes:
>I erronously made hundreds of files with white spaces after each of the file
>name.  And this led me to a question:  Is there any sh command to trim off
>white spaces from a string?  

Provided there are no embedded or leading spaces, do

for i in *" " ; do mv "$i" $i ; done

Also, if some files begin with a dot, do

for i in .*" " ; do mv "$i" $i ; done

Brian
From: limes@straylight.Eng.Sun.COM (Greg Limes)
Newsgroups: comp.unix.questions
Subject: Re: Help with 'find' and escape sequences
Date: 13 Apr 92 20:40:03 GMT
Organization: Sun Microsystems, Inc.
NNTP-Posting-Host: straylight

In article <1992Apr13.145440.22422@panix.com> fnord@panix.com (Cliff Heller) writes:
>find . -type d -exec "echo *~" \; | xargs rm -i

Could still cause problems with directories that had no "*~" files, or
directories that have huge numbers of them. How about:

	find . -name '*~' -print | xargs rm -i
From: jba@ruc.dk (Jan Bruun Andersen)
Newsgroups: isu.cc.vincent,comp.unix.questions
Subject: Re: ? redirect a file opened in a fortran program
Date: 6 Apr 92 21:43:45 GMT
Organization: Roskilde Universitetscenter, Danmark

xmeng@iastate.edu (Xiong Meng) writes:

>A fortran program opens a file with open(iunit,file='aaa').
>How do I redirect file aaa to some other file, in particular
>/dev/null, in run time ?

>Thanks for your help.

Argh! Another FORTRAN programmer! (And ex VMS user??)

Sorry, I don't think you can do it. You might be able to create
an symbolic for 'aaa' pointing to /dev/null, but I wouldn't depend
on it.

>-- 
>Xiong Meng                         
>----------
>Department of Mathematics, Iowa State University, Ames, IA 50011
>phone: 	(O) 515-294-3562	(H) 515-292-3752              
-- 
Jan B. Andersen <jba@dat.ruc.dk>                 ("SIMULA does it with class")
Newsgroups: comp.unix.questions
From: rns@munta.cs.mu.OZ.AU (Robert Noel STURROCK)
Subject: Strange Unresolved Externals (-ldl)
Organization: Computer Science, University of Melbourne, Australia
Date: Sat, 11 Apr 1992 14:23:11 GMT

We are having a problem with our compiler(s) since having our system
re-installed on a new disk.  The following program produces odd
results:

world.c-----------------------------------------------

        #include <stdio.h>

        main()
        {
                printf ("hello world\n");
        }

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

When I try to compile this, the results are as follows:

        terra% cc world.c
        ld: Undefined symbol
           _dlopen
           _dlclose
           _dlsym

And likewise, with gcc:

        terra% gcc world.c
        ld: Undefined symbol
           _dlopen
           _dlclose
           _dlsym

Using "cc world.c -ldl" produces the correct compilation.

The library "/usr/lib/libdl.so.1.0*" exists on our system.

We don't get any errors when using "ldconfig"


Any clues?
From: bwebb@gelac.lockheed.com (Mr. Barry W. Webb)
Newsgroups: comp.unix.questions
Subject: Seeking Inode Table Info
Date: 14 Apr 92 21:05:40 GMT
Distribution: usa
Organization: Lockheed Aeronautical Systems Co, Marietta, GA

Looking to correspond with others concerning kernel inode table usage
on Sun-3s with SunOS 4.0.3 acting as NFS file servers.  Please email to
the address below.

Thanx in advance
-- 

Barry W. Webb                          UUCP: ...!gatech!warlord!gelac!bwebb
Lockheed Aeronautical Systems Company  Internet: bwebb@gelac.lockheed.com
Marietta, Georgia  30063-0670          Phone: (404) 494-6952    Fax: 6989
From: jik@athena.mit.edu (Jonathan I. Kamens)
Newsgroups: comp.unix.questions
Subject: Re: What is terminfo?
Date: 7 Apr 92 14:19:28 GMT
Article-I.D.: pit-mana.JIK.92Apr7101922
Organization: Massachusetts Institute of Technology

In article <1505@itexjct.jct.ac.il> jacobsen@itexjct.jct.ac.il (Joel Jacobsen) writes:

   What is the terminfo,

Terminfo is to SysV what termcap is to BSD.  It is a database of
terminal characteristics of various terminal types, and can be used to
write terminal-independent code for doing things like moving the
cursor around the screen, turning highlighting on/off, etc.

   and how can I use it?

It is impossible for us to answer that question without knowing what
kind of UNIX you're using, because without knowing that, we have no
idea whether or not terminfo is available on your system (if it isn't,
then termcap probably is instead).

COMP.UNIX.QUESTIONS MORAL OF THE DAY: When you are posting a question
to a comp.unix.* newsgroup, be specific and detailed; at the very
least, do not forget to mention what kind of machine you are using and
what version of UNIX it is running.

   Can I use `set term' with a terminal specified at terminfo?

If terminfo is supported on your machine, then yes, your shell
probably knows how to use it.

Is there really no one at your site that you could have gone to to
find out about this before posting to the entire world?  Just
curious....

-- 
Jonathan Kamens						jik@MIT.Edu
MIT Information Systems/Athena		    Moderator, news.answers
    (Send correspondence related to the news.answers newsgroup
	{and ONLY correspondence related to the newsgroup}
		 to news-answers-request@MIT.Edu.)
Newsgroups: comp.unix.questions
From: gleeson@mundil.cs.mu.OZ.AU (Martin Joseph GLEESON)
Subject: Re: what happened to ftp.uu.net?
Organization: Computer Science, University of Melbourne, Australia
Date: Thu, 9 Apr 1992 06:29:30 GMT

In <peter.702772068@auad> peter@auad.acadiau.ca (Peter Steele) writes:

>>>Not completely germane to UNIX, but does anyone know what happened
>>>at ftp.uu.net?  I used to be able to anonymous ftp to this site.  Now,
>>>all I ever get is anonymous logon rejected.  Any ideas?
>>  It is high time you started using a nameserver, instead of relying on
>>an out-of-date /etc/hosts file.  The address has changed, and you haven't
>>kept your data up to date.
>I *do* use a nameserver and have also got this error.... ????

Pasted from another window 10 seconds ago:

>>ftp ftp.uu.net
Connected to ftp.uu.net.
220 ftp.UU.NET FTP server (Version 6.21 Tue Mar 10 22:09:55 EST 1992) ready.
Name (ftp.uu.net:gleeson): anonymous
331 Guest login ok, send domain style e-mail address as password.
Password:
230-Welcome to UUNET's archive.  All transfers are logged with your host
230-name and email address.  If you don't like this policy, disconnect now!
230-
230-Access is allowed all day.  Local time is Thu Apr  9 02:25:17 1992.
230-
230-This is an experimental FTP server.  If your FTP client crashes or
230-hangs shortly after login please try using a dash (-) as the first
230-character of your password.  This will turn off the informational
230-messages that may be confusing your ftp client.
230-
230-Please read the file /info/README.ftp
230-  it was last modified on Tue Mar 10 03:42:49 1992 - 30 days ago
230-Please read the file /info/README
230-  it was last modified on Tue Mar 10 02:26:39 1992 - 30 days ago
230-Please read the file /index/README
230-  it was last modified on Mon Mar 16 17:40:53 1992 - 24 days ago
230 Guest login ok, access restrictions apply.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> bye
221 Goodbye.
>>

Must be something with your machine, since it works from Australia...

Regards,
----------------------=============***O***=============-------------------------
Martin J. Gleeson   | Computer Science, Melbourne Uni, Oz |    ...  __o    Outta
gleeson@cs.mu.oz.au |        B I K E   I T   ! !          |  ...   -\<,       my
" We gladly feast on those who would subdue us." - Addams |  ....(_)/(_)..  way!
----------------------=============***O***=============-------------------------
From: casper@fwi.uva.nl (Casper H.S. Dik)
Newsgroups: comp.unix.questions
Subject: Re: what happened to ftp.uu.net?
Date: 9 Apr 92 15:23:15 GMT
Organization: FWI, University of Amsterdam

who@gandalf.UMCS.Maine.EDU writes:


>	I'am also prevented from logging on as anonymous to ftp.uu.net.
>Are there certain hours for anony ftp connections? Any one know whats
>up?

What is the error message uunet gives? I know that uunet will
not allow you to login when it cannot map you address to a valid hostname
(and back??). It is also possible that certain sites are excluded
from anonymous ftp access. This happens when uunet suspects that users
of your site use /tmp as an cracker's letterbox. (E.g., someone
from your site downloads a password file from /tmp that was put there
some moments earlier by someone at another site.)

Casper
-- 
						|	Casper H.S. Dik
						|	casper@fwi.uva.nl
From: mjo@fmsrl7.srl.ford.com (Mike O'Connor)
Newsgroups: comp.unix.questions
Subject: Re: HP 7X0: how to get process information
Date: 15 Apr 92 14:24:17 GMT
Reply-To: Mike O'Connor <mjo@fmsrl7.srl.ford.com>
Organization: "Fordz"
X-Disclaimer: Not an official spokesperson for Ford Motor Co.

In article <30036@adm.brl.mil> manns@boss1.physik.uni-bonn.de writes:
:	how can I get process informations (parentID, userID, command currently
:	executed, ...) of a foreign process (if the requesting process has
:	enough privileges i.e. is super user)?

You're on an HP-UX system -- have fun!  

With apropos (man -k):

getpid, getpgrp, getppid, getpgrp2(2)   - get process, process group,
and parent process ID

should get you started.

If you can't seem to find what you're looking for, look in
/usr/include/sys/syscall.h for some useful calls.  HP-UX doesn't have
(as far as I can tell) documented support for some things that you can
find in here -- getrusage(), mmap(), etc.

# include <sys/syscall.h>

...yourcode...

syscall (SYS_yourcall, <args for yourcall>);

						...Mike
-- 
 Mike O'Connor                     |  Ford Motor Company, USA
 Applications Systems Analyst      |  CPD P&MS ECC Core Software
 Phone #:  +1 (313) 390-4008       |  P.O. Box 2053, ECC MD-7
 Fax #:    +1 (313) 845-0576       |  Dearborn, MI  48121-2053
From: matsuda@linc.cis.upenn.edu (N o s t a l g i a)
Newsgroups: comp.unix.questions
Subject: HOw to trim off spaces from the file name
Date: 8 Apr 92 15:08:30 GMT
Organization: University of Pennsylvania


Hi,


I erronously made hundreds of files with white spaces after each of the file
name.  And this led me to a question:  Is there any sh command to trim off
white spaces from a string?  

Thanks,


- Ken Matsuda (matsuda@linc.cis.upenn.edu)
From: herbeck@husc3.harvard.edu
Newsgroups: comp.unix.questions
Subject: NQS docs and nroff tmac.m macro file
Date: 9 Apr 92 22:02:02 GMT
Article-I.D.: husc3.1992Apr9.180202.10893
Organization: Harvard University Science Center

I'm in the process of installing NQS (Network Queueing System) on
my UNIX boxes (DECstations, Irises, and ES/Vs).  The documentation
that came on the tarfile needs to be nroff'ed using the macro library
/usr/lib/tmac/tmac.m which doesn't exist on any of my three versions
of UNIX.

Does anyone have:

   1) information on where I can get tmac.m

   2) preformatted NQS documentation

Thanks.

Jim Herbeck                        herbeck@hhmi.harvard.edu
HHMI Lab of Molecular Medicine     617/735-6563
Newsgroups: comp.unix.questions
From: peter@ferranti.com (Peter da Silva)
Subject: Re: How to copy to another machine's /dev
Organization: Xenix Support, FICC
Date: Thu, 9 Apr 1992 17:44:26 GMT

In article <12347@auspex-gw.auspex.com> guy@Auspex.COM (Guy Harris) writes:
> >Yes.  For example, you can access a remote system's /dev/clock, and you
> >can change the tty modes of a remote terminal (//node/dev/tty*).  I can't
> >think of a case where a remote ioctl does *not* work, but they probably
> >exist.

> How about "the two machines in question have different byte orders, or
> different structure alignment rules"?  Do remote "ioctl"s work then?

Well, let me see. There are places in some of these structures where "int"
is used, and we do this between 386 and 286 based systems, so they must
do *some* translation. I know it translates directory structures between
different operating systems so a naive "ls" (one that reads the directory)
works between Xenix and VMS, so it wouldn't surprise me.

I don't know the answer to your question, without a lot of messing around,
but I suspect the answer is "yes".
-- 
/F{/Times-Roman findfont exch scalefont setfont}def /M{moveto}def /S{show}def
8 F 24 24 M (Sugar Land, TX  77487-5012; +1 713 274 5180)S 60 0 rmoveto(`-_-')S
12 F 24 32 M (Peter da Silva, Ferranti International Controls Corporation)S
0 -6 rmoveto 20 F ( Have you hugged your wolf today?)S showpage
From: moconnor@pms704.pms.ford.com (Mike O'Connor)
Newsgroups: comp.unix.questions
Subject: Re: Unix question - libraries
Date: 15 Apr 92 13:28:18 GMT
Article-I.D.: fmsrl7.1992Apr15.132818.7757
Reply-To: Mike O'Connor <mjo@fmsrl7.srl.ford.com>
Organization: "Fordz"
X-Disclaimer: Not an official spokesperson for Ford Motor Co.

In article <cpearce.703277579@morticia> cpearce@morticia.cnns.unt.edu
(Chris Pearce) writes:

:The X11 library used to be in /usr/lib, but now it is in /usr/lib/X11 --
:that's the one library I think I've found.

You'll want /usr/lib/X11R4.  Actually, since HP doesn't ship a
complete X11R4 (aigh!  No imake!), it'd be worth it to get X11R5.


-- 
 Mike O'Connor                     |  Ford Motor Company, USA
 Applications Systems Analyst      |  CPD P&MS ECC Core Software
 Phone #:  +1 (313) 390-4008       |  P.O. Box 2053, ECC MD-7
 Fax #:    +1 (313) 845-0576       |  Dearborn, MI  48121-2053
Newsgroups: comp.unix.questions
From: merlyn@iWarp.intel.com (Randal L. Schwartz)
Subject: Re: formatting/aligning text (awk? printf? huh?)
Reply-To: merlyn@iWarp.intel.com (Randal L. Schwartz)
Organization: Stonehenge; netaccess via Intel, Beaverton, Oregon, USA
Distribution: na
Date: Tue, 7 Apr 1992 19:50:14 GMT

In article <odsT9Se00awV4XpYNT@andrew.cmu.edu>, vs0r+@andrew (Victor Dmitri Schoeman) writes:
| awk '{printf $1} {for (i=length($1);i<=28;i++) printf " "} {for (i=2;i<=NF;i++) printf $i" "} {printf "\n"}' file

Or perl -pe 's/^(\S+)\s+/sprintf("%-28s",$1)/e' file

This is one of those places where even a simple awk one-liner looks rough.

print "Just another Perl hacker,"
-- 
/=Randal L. Schwartz, Stonehenge Consulting Services (503)777-0095 ==========\
| on contract to Intel's iWarp project, Beaverton, Oregon, USA, Sol III      |
| merlyn@iwarp.intel.com ...!any-MX-mailer-like-uunet!iwarp.intel.com!merlyn |
\=Cute Quote: "Intel: putting the 'backward' in 'backward compatible'..."====/
From: jik@athena.mit.edu (Jonathan I. Kamens)
Newsgroups: comp.unix.questions
Subject: Re: Substituting words in vi
Date: 9 Apr 92 22:56:06 GMT
Organization: Massachusetts Institute of Technology

I think you misunderstood the question.  He asked how to substitute
"\index{hello}" for "hello", not how to substitute "hello" for
"\index{hello}".

-- 
Jonathan Kamens						jik@MIT.Edu
MIT Information Systems/Athena		    Moderator, news.answers
    (Send correspondence related to the news.answers newsgroup
	{and ONLY correspondence related to the newsgroup}
		 to news-answers-request@MIT.Edu.)
Newsgroups: comp.unix.questions,comp.unix.wizards,comp.sys.intel
From: peter@ferranti.com (Peter da Silva)
Subject: Re: How to copy to another machine's /dev
Keywords: n
Organization: Xenix Support, FICC
Date: Wed, 8 Apr 1992 17:28:03 GMT

In article <1992Apr7.124952.2457@uicc.com> putsch@uicc.com (Jeff Putsch) writes:
> I've picked up this thread too late to find what (file)system is being
> discussed. It sounds like a VERY interesting one. Would some kind soul please
> enlighten me.

The system is called OpenNET, and it runs on the ISO protocol stack (though
apparently a version that runs on TCP also exists). It's an intel product,
and if intel ever figured out what business they really wanted to be in it'd
probably be a killer in the marketplace.
-- 
/F{/Times-Roman findfont exch scalefont setfont}def /M{moveto}def /S{show}def
8 F 24 24 M (Sugar Land, TX  77487-5012; +1 713 274 5180)S 60 0 rmoveto(`-_-')S
12 F 24 32 M (Peter da Silva, Ferranti International Controls Corporation)S
0 -6 rmoveto 20 F ( Have you hugged your wolf today?)S showpage
From: root@unicorp.sublink.org (Superuser)
Newsgroups: comp.unix.questions
Subject: Public Domain reimplementation of the (AT&T) curses library.
Date: 8 Apr 92 06:54:36 GMT
Organization: Sublink Network

In porting an application package to IBM RISC 6000 and DEC Ultrix 4.2
environments I have found that the functions 

                 curs_set() 

                 isendwin()

are missing.  

I would appreciate indication of possible sources
of equivalent functions.

Thank you very much in advance,

giulio bertellini             (giulio@unicorp.sublink.org)
Newsgroups: comp.unix.questions,comp.unix.sysv386
From: pss1@kepler.unh.edu (Paul S Secinaro)
Subject: Re: windowing on normal character terminals
Organization: University of New Hampshire  -  Durham, NH
Date: Sun, 12 Apr 1992 14:15:23 GMT

In article <1992Apr12.031835.6028@casbah.acns.nwu.edu> navarra@casbah.acns.nwu.edu (John Navarra) writes:
>>I'm looking for some way to do windowing on a normal vt100 terminal.  I
>>know there's a program out there called "screens" (or something similar)
>>that does this on systems with sockets, but unfortunately we don't have
>>sockets over here.  Doing this with an emacs shell would be fine, but
>>programs like trn always report an error like "no /dev/tty" when I try
>>to run them from inside emacs, and I'm not sure if emacs would be able to
>>translate the vt100 codes anwyay.
>>
>	'Screen' is the program you are thinking about. It will allow
>you to open up different 'screens' on a normal vt100 terminal and
>switch back and forth between them. Screen uses ptys. If you are using
>a Unix computer, I would think it would work. 	
>	It is available via anonymous ftp from ftp.uni-erlangen.de
>in the directory /portal/utilities/screen.
>

Has anyone come out with a version that doesn't require sockets?  I
think this was what the poster was complaining about.  I'd also be
interested in a version that will work without sockets.

Paul

-- 
Paul Secinaro            | Synthetic Vision and Pattern Analysis Lab
pss1@kepler.unh.edu      | Dept. of Electrical and Computer Engineering
p_secinaro@unhh.unh.edu  | University of New Hampshire
Newsgroups: comp.unix.questions
From: rhill@dale.ksc.nasa.gov (Russ Hill)
Subject: PROBLEM moving files across NFS and keeping modification time.
Organization: NASA
Date: Tue, 14 Apr 1992 13:50:50 GMT



I am trying to copy a directory tree across an NFS mount point and 
keep permissions, time stamp, and everything the same.
The two nfs'ed machines are using NIS (yellow pages) but the machines 
are usually from different vendors.
I am looking for a standard solution.

I have tried dump/restore -- but dump wants a disk partition.
I have tried rcp,cp   -- but permissions and owners are changed.
I have tried find/cpio  -- but it has a pathname limitation.
I have tried tar/tar    -- but it has a pathname limitation (255 char).

I was going to write a script that uses one of these schemes and then 
fixes the problems; but someone must have a cleaner way. 

anyone have any ideas?
From: rickert@mp.cs.niu.edu (Neil Rickert)
Newsgroups: comp.unix.questions
Subject: Re: what happened to ftp.uu.net?
Date: 7 Apr 92 17:59:52 GMT
Organization: Northern Illinois University

In article <29942@adm.brl.mil> COTRCSBK@sea04vm.navsea.navy.mil (Stephen B. Kutzer) writes:
>
>Not completely germane to UNIX, but does anyone know what happened
>at ftp.uu.net?  I used to be able to anonymous ftp to this site.  Now,
>all I ever get is anonymous logon rejected.  Any ideas?

  It is high time you started using a nameserver, instead of relying on
an out-of-date /etc/hosts file.  The address has changed, and you haven't
kept your data up to date.

-- 
=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=
  Neil W. Rickert, Computer Science               <rickert@cs.niu.edu>
  Northern Illinois Univ.
  DeKalb, IL 60115                                   +1-815-753-6940