HDTenEightyP/NetNews huggingface dataset:
From: barmar@think.com (Barry Margolin)
Newsgroups: comp.unix.questions
Subject: Re: unbinding a port
Date: 29 Jul 1992 21:37:03 GMT
Organization: Thinking Machines Corporation, Cambridge MA, USA
NNTP-Posting-Host: telecaster.think.com

In article <1992Jul16.131221.16529@odin.diku.dk> robert@diku.dk (Robert Martin-Legene) writes:
>When you set up a program to run on a certain port, with socket,
>setsockopt, bind & listen, it's ready to connect to. But how do you
>make your server refuse connection to the port again (_without_
>shutting down your program)?

Strange, someone else asked a very similar question yesterday, but possibly
in another group (comp.unix.programmer, I think), although historically it
doesn't seem to be a FAQ.

In any case, the answer is to close the listening socket.  This won't
affect the connected sockets that were derived from it.

One problem: if any connection requests come in before you close it,
they'll be accepted, but you won't be able to call accept(2) to get them.
I don't know offhand what the system will do with those pending connections
(it should probably send either a FIN or RST, but I haven't tried it).  You
might be able to prevent this by specifying a backlog of 0 in the listen(2)
call (I'm guessing that "pending connections" doesn't include connections
that come in while you're blocked in accept(2)).  If this doesn't work, you
could make the window small by specifying a backlog of 1 and call close(2)
as soon as accept(2) returns.
-- 
Barry Margolin
System Manager, Thinking Machines Corp.

barmar@think.com          {uunet,harvard}!think!barmar
From: ebel@lsesun3.epfl.ch (Norbert EBEL)
Newsgroups: comp.unix.questions
Subject: Sorting articles of variable number of lines
Keywords: Sorting text Files
Date: 23 Jul 92 15:17:21 GMT
Organization: Laboratoire de Systemes d'Exploitation - E P F Lausanne, Switzerland

Hi Netters,

If I want to sort text files containing articles of variable length
according to a fixed criteria I thought of the following solution:

1) make a very long line with an article putting a special sequence in 
   order to remember the end of line, using tr, awk or sed
2) sorting according the given criteria using sort
3) rechanging the special sequence to nl
A problem is most utilities allows for limmited length of line

Is there any better solution or possibly a utility for that.

I found this problem when I saved mails in the wrong incoming order
in a folder. For that special pourpose there is special option on Sun in 
the mail utility but I can imagine other situations where a similar 
problem will occur.

Please answer by e-mail. Thanks

Norbert Ebel
From: wayne@jahangir.UUCP (wayne)
Newsgroups: comp.unix.questions
Subject: Where do I get an internet address.
Keywords: Internet
Date: 23 Jul 92 15:37:12 GMT
Organization: MDC, NYC


     Can anybody tell me how to contact the NIC
to get a *real* internet address?

     - Wayne
Newsgroups: comp.unix.questions
From: das50852@uxa.cso.uiuc.edu (dan)
Subject: Re: Finding/Setting machine address
Organization: University of Illinois at Urbana
Distribution: usa
Date: Mon, 27 Jul 1992 22:39:39 GMT

may@Apple.COM (Patrick May) writes:

>The address of the source machine is in its /etc/hosts file.  /etc/hosts
>on the target machine contains only the line "127.0.0.1 localhost".
					       ^^^^^^^^^^^^^^^^^^^
this address is always the machine itself.  If I understand it correctly
it's a convention used so that machines without the ability to monitor
their own incoming/outgoing packet flow can create a loop so that packets
get sent back to themselves.


					dan
Xref: sparky comp.unix.questions:9581 comp.sys.sun.misc:3400
From: lupe@ukw.uucp (Lupe Christoph)
Newsgroups: comp.unix.questions,comp.sys.sun.misc
Subject: Re: Problems with heap space
Keywords: sun, unix
Date: 30 Jul 92 12:33:17 GMT
Organization: cic

ulla@kaa.informatik.rwth-aachen.de (Ursula Derichs) writes:


> Hello !

>On our Sparc Station 1 (with SunOs 4.01) it is not possible to run big 
>executable image files (>4MB). 
>The following error message will be printed :

>   Cannot obtain enough heap space from the operating system to start.

>Does anybody know how to increase the heap size, or what we can do to 
>solve the problem ?

First of all I can't believe you are running 4.0.1 on a SPARCstation.
The first release to support the sun4c architecture was 4.0.3c.

Then, the message does not appear to be generated by the kernel.
It is probably generated by a library used by your applications.
Which language are you using? I cannot find anything remotely
resembling this message on my system (4.1.2).

Now for the meat. Your swap space is probably way too small.
Have a look with:
	/usr/etc/pstat -s

If this is the case, the easiest way is to create a swap *file*
and use it temporarily (or maybe even "for time being").
Do this as root:

	mkfile <size> <filesystem with space>/swap2
	swapon <filesystem with space>/swap2

<size> can be a number followed by, e.g. 'm' for MByte,
like 16m.
-- 
| ...!unido!ukw!lupe  (German EUNet, "bang")     |  Disclaimer:            |
| lupe@ukw.UUCP       (German EUNet, domain)     |  As I am self-employed, |
| suninfo!alanya!lupe (Sun Germany)              |  this *is* the opinion  |
| Res non sunt complicanda praeter necessitatem. |  of my employer.        |
Newsgroups: comp.unix.questions,comp.unix.admin,comp.unix.programmer,comp.unix.internals
From: jvilhube@diana.cair.du.edu (Jan Vilhuber)
Subject: Fooling process into another date
Keywords: change date, fool process
Organization: USWEST MRG, Englewood, Colorado, USA
Date: Sat, 25 Jul 92 00:02:44 GMT

Hello.
I have a weird request. We are using an HP 9000 835 simultaneously
as a test platform and a development platform (two projects, and yes I
know that's not a good idea). Let's just say we don't have an option
right now. In order to test our software, we fequently need to change the
system date, forwards and backwards. The development guys hate that,
understandably.

Hence: Is there a way to have one login run under one sort of time/date
and the rest of the machine under normal time/date? We would need
to fool the process, for which we frequently change the date, into 
looking somewhere else to find its date, thus allowing us to leave the system
date alone, and giving the development guys a break. It is a real time system,
and if we want to test it in under a year, we need to be able to change the 
date.

I really have not the slightest idea (in fact have my doubts) that this
is possible, but if anyone has any pointers, ideas, programs, I would
like to hear from you (my boss would like to hear from you even more).

Please either mail me at jvilhube@du.edu or jan@uswmrg.mrg.uswest.com
or call me at : (303)784-2845
or post here. I will try to follow the groups for a while.

Thanks!
-- 
 Jan Vilhuber            | Internet: jvilhube@du.edu or jvilhube@[130.253.1.4]
 (The skydivin' Bass)      | Bitnet  : jvilhube@DUCAIR
--------------------------------------------------
From: bob@pta.pyramid.com.au (Robert Vernon)
Newsgroups: comp.unix.questions
Subject: Re: Strange behavior with paste command
Date: 30 Jul 92 09:52:31 GMT
Organization: Pyramid Technology Corporation, Sydney

In article <1992Jul27.153536.12371@ddsw1.mcs.com> dattier@ddsw1.mcs.com (David W. Tamkin) writes:
>navarra@casbah.acns.nwu.edu (John Navarra) wrote in
><1992Jul27.141928.28250@news.acns.nwu.edu>:
>
>| I don't get this! Why does the following happen with the paste command:
>| 
>| $ paste file1 file2 file3 > file.results
>| $ cat file.results

[ output deleted ]

>| What's up with the last line? Is there some way to make this print  
>| out right?
>
>Since none of your entries are wider than twelve characters, you can fix it
>for this particular case by setting your tabstops fourteen or more columns
>apart.  I know of no general solution.

$ nawk '{getline col1 < "file1"
         getline col2 < "file2"
         col3=$0
         printf "%-16s%-16s%-16s\n",col1,col2,col3}' file3 > file.results
$ cat file.results
lsr005-1.wav    5.050659E-03    8.773804E-03
lsr005-2.wav    9.506226E-03    1.493835E-02
lsr005-3.wav    .0128479        1.991272E-02
lsr005-4.wav    1.850891E-02    .0272522
lsr005-5.wav    2.275085E-02    3.291321E-02
lsr025-1.wav    4.780579E-02    6.880188E-02
lsr025-2.wav    6.732178E-02    9.716797E-02
lsr025-3.wav    9.461975E-02    .1350403
lsr025-4.wav    .1144867        .163559
lsr025-5.wav    .1334534        .1909943
lsr1-1.wav      .3167419        .4694824
lsr1-2.wav      .5150909        .739624
lsr1-3.wav      .7581482        .9957733
lsr1-4.wav      1.062622        1.255859
lsr1-5.wav      1.37088         1.504074

I guess this is still not general purpose.  It only works with exactly
3 files and it won't work properly if the files are different
lengths.


Bob V!
From: itkin@mrspoc.Transact.COM (Steven List)
Newsgroups: comp.unix.questions
Subject: Re: deleting lines in vi
Keywords: vi, delete
Date: 24 Jul 92 22:44:55 GMT
Reply-To: steven@Transact.COM (Steven List)
Organization: Transact Software

pjh@mccc.edu (Pete Holsberg) writes:

>In article <16921@autodesk.COM> dansmith@Autodesk.COM (Daniel Smith) writes:
>=I want to mention a more general way for other cases that frequently occur.
>=
>=	to mark a point and then delete the region:
>=
>=	ma	# mark the point 'a'
>=	G	# go to the end of file, or do some other motion command
>=	d'a	# and delete from here to 'a
>
>The 'a means "the first non-whitespace char of the line you marked with
>'a'". You might want `a instead.

When deleting, yanking, or otherwise modifying using movement commands,
VI only works on whole lines.  So using either 'a or `a will have the
same effect in this context.
-- 
 +-----------------------------------------------------------------------+
 : Steven List @ Transact Software, Inc. : "I LIKE it!" The Rocketeer    :
 : itkin@Transact.COM ... mrspoc!itkin   : "I LIKE to watch." C. Gardner :
 +-----------------------------------------------------------------------+
From: jsmckay@okcadm.okanagan.bc.ca (da d00d cometh)
Newsgroups: comp.unix.questions
Subject: Applying patches part two
Date: 29 Jul 92 11:56:05 GMT
Organization: Okanagan College

Previously I posted a message regaurding applying a patch...  I was
flame for not putting in full details :-) so here goes...

I first uncompress and untared olvwm3 into a directory.

I then tried to run olvwm.patch01 on it by entering the command

sh olvwm.patch01

The patch failed and died.  I was under the impression to apply
a patch to a progam you had to run sh on it.  Is this correct?  Or should
I just change the atturbutes on the patch and run it that way?

jim mckay

-------------------------------------------------------------------------------
jim mckay	(jsmckay@okcins.okanagan.bc.ca)
		1:353/310@fidonet.org

		Money is the language of love!
-------------------------------------------------------------------------------
 
Newsgroups: comp.unix.questions
From: sherwood@fenris.space.ualberta.ca (Sherwood Botsford)
Subject: Re: Exabyte (8mm) vs. DAT (4mm), advice needed
Organization: University Of Alberta, Edmonton Canada
Date: Tue, 28 Jul 1992 22:13:08 GMT


Get a DAT.  Unless you have humongous data to backup.

DAT has a faster tape transport mechanism so that fast forwarding to a  
particular file is faster.  They are slightly slower on streaming data transfer  
rate, but its a speed that ties in nicely to NFS transport speed, so the tape  
isn't starting and stopping all the time.

The Sony audio DAT tapes are good enough, so the media costs are cheaper.   
(I've had some grief with vidio 8mm tapes)

They usually are cheaper too.
From: rebibo%cesar@crbca1.sinet.slb.com (NICOLAS REBIBO)
Newsgroups: comp.unix.questions
Subject: Automatic logout
Date: 31 Jul 92 08:11:21 GMT

Hi,

I am looking for a utility that will do an automatic logout when a
workstation has not been used during a certain period of time.

We are using Sun3 and Sun4 workstations.

Thanks,

Nicolas Rebibo
Internet: rebibo@crbca1.sinet.slb.com
Newsgroups: comp.unix.questions
From: fredj@wang.com (Fast Freddie)
Subject: Re: Is it a bad idea to 'link' directories?
Organization: Wang Labs, Lowell MA, USA
Date: Tue, 21 Jul 92 15:05:54 GMT
Keywords: link

guy@Auspex.COM (Guy Harris) writes:

>>Is it a bad idea to, say, link /usr/man/man1 to /usr/man/man.1,

>If "link" means "make a hard link", well, yes, it's generally not a good
>idea.  Various code that deals with the file system thinks that the only
>hard links to a directory are 1) the link that gives it its name, 2) the
>"." link, and 3) the ".." links in its subdirectories, if any.  Adding
>an additional hard link will probably confuse that code (e.g., "find").

>If "link" means "make a symbolic link", yes, it's OK (assuming, of
>course, your system *supports* symbolic links; not all UNIX systems do).

The only comment that i would like to make is that if your system supports
"soft"/symbolic links one *MUST* be careful *NOT* to make these links
recursive or if there are several links the last should not point back to
the first.  Some Unix OS's will only loop for a while than give you an
error message.  Others will go on endlessly trying to resolve the recursive
path name; appearing as if the process is "hung".


>>I ask this because 'ln' doesn't let you link directories but 'link' does.

>"link" is intended to be used only by somebody who knows the above, so
>it doesn't bother doing checking - it's just a wrapper around the
>"link()" call.  "ln" is the one to be used by ordinary users, and may do
>extra checking, e.g. making sure you don't make hard links to
>directories, even if the file system code lets you (for example, if
>you're super-user).
Xref: sparky comp.unix.questions:9624 comp.unix.wizards:3368
From: newsview@dowjone.UUCP (news source)
Newsgroups: comp.unix.questions,comp.unix.wizards
Subject: ftp help
Date: 30 Jul 92 15:36:23 GMT
Reply-To: newsview@dowjone.UUCP (news source)
Distribution: usa
Organization: Dow Jones, Inc. Princeton, NJ

The ftpusers file can prevent selected individuals from ftping to
your Sun Workstation. Is there anyway to modify this file
to prevent everyone from doing the same? Would geatly appreciate your
response.

================================================================================John Ciesla                 Voice (w/mail): 609-520-5105
Dow Jones & Co., Inc.       Fax:            609-520-5089
Engineering Department      
                            Internet:       jc!jc%dowjone@Princeton.EDU
P.O. Box 300                uunet:          jc%dowjone@uunet.uu.net
Princeton, NJ 08543-0300    UUCP:           ...!princeton!dowjone!jc
                            
Route 1 & Ridge Road        
South Brunswick, NJ 08852   

================================================================================
From: barnes@sem.brl.mil (James Barnes)
Newsgroups: comp.unix.questions
Subject: subscribe
Date: 20 Jul 92 22:03:43 GMT

subscribe
From: barker@enel.ucalgary.ca (Scott Barker)
Newsgroups: comp.unix.questions
Subject: Re: help with setting up a unix system
Date: 23 Jul 92 17:39:34 GMT
Organization: UTexas Mail-to-News Gateway
NNTP-Posting-Host: cs.utexas.edu

Well, someone pointed out the FAQs in news.answers to me, and hey! There was
most of what I wanted to know. I think maybe those FAQs should be posted to
the comp.unix.* groups a little more often, so that people like me can read
them and not disturb everyone else. I can post them myself, if people would
like...

-- 
Thank you for your attention.
==============================================================================
Scott Barker
barker@enel.ucalgary.ca

"Remember, wherever you go, there you are."
   - Peter Weller, The Adventures of Buckaroo Banzai Across the 8th Dimension!
From: yap@latcs1.lat.oz.au (Bee Ling Yap)
Newsgroups: comp.unix.questions
Subject: Sending anonymous mail
Date: 30 Jul 92 04:00:30 GMT
Organization: Comp Sci, La Trobe Uni, Australia
Originator: yap@ipc5.lat.oz.au

Hello,
  I wonder how can one send anonymous mail to others. I look up the manual for sendmail
  and do the following :


  sendmail -C configfile -f anonymous reciepient, but I got the erorr message saying
  Permission denied to chdir to /usr/spool/mqueue. Note that, I have put my own user
  name into the configfile which is copied directly from the /etc/sendmail.cf and has
  my user name added into the trusted users list.


  Thanks in advance!


  - yap@latcs1.lat.oz.au
Newsgroups: comp.unix.questions
From: caroline@topaz.Stanford.EDU (Caroline Lambert)
Subject: problem reading tar tape
Organization: Stanford Univ. Earth Sciences
Date: Fri, 24 Jul 1992 18:16:55 GMT

I have been sent two 8mm tapes which were written on a Sun with the 
command: 'tar -cvf /dev/rst0 *.SGY'.

I have tried to read them on both a Sun workstation and a DEC 
workstation, but have not been able to.

The error I get on the DECstation is:

	tar: File    is continued on archive  2
	tar: Please load archive  2  on  /dev/rmt0h  & press RETURN

Loading the other tape and pressing RETURN brings up the same error
message. 'dd' gave me the message: 'end of media, load another volume'.
Trying various 'mt' commands gave me 'I/O error' messages. The 
program copytape, which is supposed to be able to copy exact images
of tapes, gave me this error: 'can't read input: No space left on
device'.

It seems there is an end of tape mark at the beginning of the tape.
I've had the people who created the tapes send me another copy, with
the same result. Is there something weird about Sun's tar command?
Is there some trick to this, or some way around it?

Any suggestions would be appreciated.

--
Caroline Lambert  				
Seismic Tomography Project		        caroline@topaz.Stanford.EDU
Department of Geophysics, Stanford University
From: zeng+@pitt.edu (Ke Zeng)
Newsgroups: comp.unix.questions
Subject: help needed for tar
Date: 30 Jul 92 17:44:04 GMT
Organization: Univ. of Pittsburgh, Dept. of Crystallography
Originator: kzest@pmax1.cis.pitt.edu

Hi. there,
    I tried to append files to tape. I first did:
	mt feom
    then followed by 
	tar cv myfiles
    What happened was that the screen output looked like files were
tar'd to tape normally. But when I did
	tar tv
    I found out that no new files attempted to append was archieved and
old files were still in there. I use SILICON GRAPHICS Iris-4D. Any help
is appreciated. Please reply to this account or to
zeng@bcl1.xtal.pitt.edu because I don't read this news group often.

-- 
  K. Zeng University of Pittsburgh (412)624-3219 bitnet: kzest@pittvms
  internet: kzest@unix.cis.pitt.edu  or  kzest@vms.cis.pitt.edu
From: xdaa374@ut-emx.uucp (Bill Douglass)
Newsgroups: comp.unix.questions
Subject: code to convert to dBase format
Keywords: dBase, tab-delimited
Date: 22 Jul 92 20:27:13 GMT
Organization: The University of Texas at Austin, Austin, Texas

I am looking for a public-domain or freeware implementation that can convert
a tab-delimited file into the dbf format used by the various xBase
dbms systems.  This is for an automated system running under A/UX.  I
appreciate any leads youc an offer.

Thx.
-- 
Bill Douglass, TCADA

"I dreamed I was to take a test,
 in a Dairy Queen, on another planet."      L. Anderson
From: spt@sgtech.UUCP (Steve Thorn)
Newsgroups: comp.unix.questions
Subject: Can I make COFF with SVR4?
Keywords: COFF ld SVR4 ELF
Date: 29 Jul 92 15:29:41 GMT
Distribution: usa
Organization: Star Gate Technologies, Inc, Solon, OH

A related note to the ELF question - is there a way to generate an a.out in
COFF format under SVR4?  I can't find an ld option that will do it.  So
should I be developing my object file utility based on the COFF or ELF
object file format?

-steve


Steve Thorn                         spt@sgtech.com
Star Gate Technologies, Inc.        ...!uunet!abvax!sgtech!spt
29300 Aurora Rd, Solon, OH  44139         216-349-1860
From: chrisr@ersys.edmonton.ab.ca (Chris Ringe)
Newsgroups: comp.unix.questions
Subject: COHERENT for the PC (Comments?)
Date: Thu, 30 Jul 92 08:33:04 MDT
Organization: Edmonton Remote Systems #2, Edmonton, AB, Canada

I am looking to start learning UNIX, and require some advise.

I wish to install UNIX on my 486dx/33, but don't have the $1650 to buy 
SCO System V.  I was however looking at a package call COHERENT.  As the 
only infomation found about it, is located in a GLOSSY AD in Byte, I was 
hoping that a current owner could give me some feedback as to its usefullness

I hear that there is a SHAREWARE/PD version of UNIX is available called 
LINUX (sp?).  Does this allow for more than one user at a time? or 
multiple?  Can one set it up for dial-in sessions, and use it locally at 
the same time?

Thanks much, eh!

< SIG on Summer Holidays!! >
From: martin@datacomm.ucc.okstate.edu (Martin McCormick)
Newsgroups: comp.unix.questions
Subject: What have I Done?
Date: 29 Jul 92 17:00:01 GMT
Organization: Oklahoma State University, Stillwater, OK


It looks like I have, somehow, created a very strange problem on the Sun
work station which I administer.  I have a PC equipped with "Kermit" Version
3.11 connected to this Sun via one of the TTY serial lines.  The Sun thinks
I am a VT-100.  Everything works perfectly.  Things used to work perfectly
when I called in via our telephone dial-ups and telnetted from a terminal
server to the Sun.  Recently, when I telnet in through the terminal server,
I find that the display is wrong when using VI.  After capturing the screen
data from a properly-working serial line session and one of the botched
telnet sessions, I see that the botched data contain different VT-100 control
sequences.  What is even more strange, A newer model PC with "Kermit" Version
3.11 works right every time.  I can duplicate this problem 100% of the time
and it makes no difference whether the PC is connected to the terminal server,
directly or is connected through a telephone modem.  It also makes no 
difference whether the data are being sent at 9600 baud or 1200 baud.  This
rules out hardware glitches caused by line noise or the PC's inability to
keep up with the data flow.  
	The terminal server-PC combination still works perfectly when 
telnetting to a Vax running Ultrix, so I think that there is something
different going on between the way the VT-100 control sequences are being
handled when going through the telnet function as opposed to going through
the serial TTY line.  What am I overlooking?

Martin McCormick WB5AGZ   Stillwater, OK
O.S.U. Computer Center Data Communications Group
From: Mark.Allman@f607.n157.z1.fidonet.org
Newsgroups: comp.unix.questions
Subject: a.out
Date: 17 Jul 92 12:30:24 GMT
X-Sender: newtout 0.01 Jul 13 1992

are there any gurus out there that can tell me the historical naming of the
"a.out" file which is created when compiling a c program on a unix system?

thanks,
   mark

... where this system is concerned, you're not allowed to ask "why?"
--- Blue Wave/Opus v2.10 [NR]
From: as5l+@andrew.cmu.edu (Ashvini Sharma)
Newsgroups: comp.unix.questions
Subject: Impossible?: passing a process to it's child
Date: 28 Jul 92 10:41:39 GMT
Article-I.D.: andrew.EeRNHXC00WB5MZeXM3
Organization: Sophomore, Electrical and Computer Engineering, Carnegie Mellon, Pittsburgh, PA

hi,
    I have this problem:

            shell       <------ parent
              |
              |
         mail reader    <------ child

and I start up another process, say screen in this shell also:

            shell
            /  \
           /    \
  mail reader   screen
                 /  \ ...
                /    \
             shell  emacs

Is it possible to do this? :

            shell
              |
              |
           screen
            /  \ ...
           /    \
        shell  emacs
          |
          |
      mail reader

i.e., transfer mail reader to another shell, which is a child of the
previous one? The most likely answer to this is no, but will someone
give me an explanation????

thanks a lot

ash
Newsgroups: comp.unix.questions