HDTenEightyP/NetNews huggingface dataset:
From: marc@r-node.gts.org (Marc Fournier - Sys Admin)
Subject: Re: UNIX BBS ?
Organization: R-node Public Access UNIX System (416-249-5366) 24hrs.
Date: Fri, 11 Sep 1992 14:05:45 GMT

In article <BuDJz4.HM0@cs.dal.ca> franklin@ug.cs.dal.ca (Steve Franklin) writes:
>
>Does such a thing exist? A UNIX bbs that people can log onto? Basically
>I'm looking for a simple alternative for work where people can leave
>messages and ideas on a bulletin board. Since we have a mixed maelstrom
>of media (IBM, MAC, etc), it would be quite nice to do it on something
>neutral like UNIX. Any ideas? PUblic domain would be great...

	There is a shareware UnixBBS called Uniboard that I'm running
here...relatively headache free, and great support when there are 
headaches :)

	The author is pizzi@nervous.com...email him for more details.

Marc
-- 
Marc G. Fournier      | R-node Public Access Unix running UnixBBS 1.03
Etobicoke, Ontario    | 416-249-5366   24hrs 7 days/week   network email
voice: 249-4230       | shell/feed accounts available   1800+ newsgroups
marc@r-node.pci.on.ca | Telebit T3000/SupraModem2400/Cardinal 2400  FREE
From: anibal@ee470.ee.mcgill.ca (Anibal Jodorcovsky)
Newsgroups: comp.unix.questions,comp.unix.shellalt.unix.wizards
Subject: checking for mail from shell
Date: 14 Sep 92 13:41:58 GMT
Followup-To: comp.unix.shell
Organization: EE Lab, McGill University EE Lab, Montreal


Hi all!!!

I am trying to check from .login if I have mail.
BUT, it's not just mail what I want to do, since
I want to specify an if...then sort of thing 
IN CASE I have mail.

Does anybody know which variable I have to check for
in order to get a proper condition to use it in an
if...then-like statement????

Thanks in advance!!

-Anibal Jodorcovsky
anibal@ee470.ee.mcgill.ca

PS: Note the follow-up!!
Newsgroups: comp.unix.questions
From: rick@sadtler.sadtler.com (Rick Morris)
Subject: Nothing is a directory?
Organization: Sadtler Research Laboratories
Date: Thu, 3 Sep 1992 23:17:18 GMT

I came across an interesting situation I thought I'd throw
out for discussion.

In a Bourne script, I ask the user for the name of a
directory.  If the user enters return, the variable
contains nothing.  Then I test the results.

#!/bin/sh
#
read dir
if test -d "$dir"; then
	echo "Yes, a directory."
else
	echo "No, not a directory."
fi
#
exit 0
#

Well guess what.  On our SUN (4.1.3), nothing is
a directory.  That little script results in:

Yes, a directory.

On our SGI, nothing is not a directory.  That
little script results in:

No, not a directory.

So, who is right?  Is nothing a directory?
I read in the man page that -d returns true if argument
exists and is a directory, so I would assume that the
null argument should be false like the SGI.

-Rick.
-- 
Rick Morris                            Email:  rick@sadtler.com
Sadtler Research Labs, Philadelphia   -But I speak for myself
---------------------------------------------------------------
From: lwall@netlabs.com (Larry Wall)
Newsgroups: comp.unix.questions
Subject: Re: SED GURUS: Some Newline Questions
Keywords: sed newline
Date: 11 Sep 92 22:57:29 GMT
Organization: NetLabs, Inc.

In article <1992Sep10.230603.1267@ncsu.edu>, Cousin It writes:
: Awk was a _lot_ easier to learn than perl, at least for me...

Yes, awk is easier to learn than Perl.  But would you rather ride
a tricycle or a 10-speed?  :-)

Larry Wall
lwall@netlabs.com
From: thigpen@lambda.msfc.nasa.gov (Keith Thigpen)
Newsgroups: comp.unix.questions
Subject: Re: .netrc entry for default ftp connects
Keywords: ftp netrc
Date: 16 Sep 92 01:34:10 GMT
Organization: NASA/MSFC

Yeah. Crap. That's the problem I'm having on the SPARCS here at 
work.

Keith

-- 
----------------------------------------------------------------------------
| Keith Thigpen          thigpen@lambda.msfc.nasa.gov      (205)461-4936   |
| New Technology, Inc.   Marshall Space Flight Center     Huntsville, AL   |
----------------------------------------------------------------------------
From: rlyle@nl.oracle.com (The Wizard of Ozje - Garf)
Newsgroups: comp.unix.questions
Subject: Re: Question: which is faster 'find -exec' or 'find | xargs' ??
Date: 14 Sep 92 12:48:11 GMT
Organization: Oracle Europe

In article <1992Sep4.041033.23158@news.acns.nwu.edu>, navarra@casbah.acns.nwu.edu (John Navarra) writes:
|> 
|> I was experimenting with find and xargs. I issued the command
|>   find . -exec ls -ld {} \;
|> and the command
|>   find . -print | xargs ls -ld
|> and found they gave the same results. However, I noticed the execution
|> times for the two were MUCH different. If I time the two commands
|> from my home directory, which contains many files, here is what I get:
|> 
|> [casbah:47] ~ -> time find . -exec ls -ld {} \; > /dev/null
|>       287.4 real        39.1 user       219.9 sys
|> [casbah:48] ~ -> time find . -print | xargs ls -ld > /dev/null
|>        47.6 real         0.0 user        17.3 sys
|> 
|> 
|> Question: why is the xargs command MUCH faster?

... [Lot's of stuff deleted]

Point 1:

The time command for the second case (with xargs) is only timing the find command, ignoring the time spent doing the xargs ls command.

If you want to time the pipeline try timing a parent shell which executes the pipeline.  There will ofcourse be some overhead concerning the startup of the shell, but that is constant and therefore tends to zero importance as the size of the job being done by the shell script increases.

#!/bin/sh
find . -print | xargs ls -ld > /dev/null

Also, if you run the above script a few times, things will speed up due to the OS buffering mem, file descriptors et al.  4 or 5 goes should be enough to get a steady result on an evenly loaded machine.

Point 2:

I'm not so sure about this (haven't seen the source for "find" but ...) If the
-exec primitive is to be believed then the find process must fork and exec an ls
for every line of output from the find.  That's an awful lot of work!  Which
version of fork you're using and on which machine will make a difference also,
though not as dramatically as the difference between using a pipeline, and doing
for/exec for everyline of output.

Share and enjoy ...


--Rob.

|> 
|> What's the deal? From what I can gather, find -exec will write the
|> stdout X times in this case where xargs writes in chunks. Is that
|> correct?
|>  



-- 
Robert P K Lyle		#include <std_disclaimer.h>	**********************
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.questions
From: cjw@casbah.acns.nwu.edu (Christopher J. Wargaski)
Subject: Re: How do I find out the domain_name of a machine ??
Reply-To: cjw@casbah.acns.nwu.edu
Organization: The Internet
Date: Sat, 12 Sep 1992 19:20:12 GMT

In article <1992Sep12.065426.21569@umr.edu>, mgj@franklin.ee.umr.edu (Mahesh Govind Joshi) writes:

|> I  am a novice at writing network applications. This is a
|> beginners question.     

Beginners are welcome.

|> How do i find out the domain_name of a machine within a 'C'
|> program.

Easy, use the ``gethostname'' call.  The man pages explain it
wonderfully.


|> I tried using gethostbyname(hostname) and bcopied h_addr into a
|> character array. But I just get garbage when i try to print the
|> array.

Close, you had the right idea!

|> Please Help !!!!
|> Thanks in advance ...

My pleasure.



|> Mahesh Joshi


Christopher Wargaski 	<-or-> 	Aspheric Artwork Sigh
c-wargaski@nwu.edu; ACNS, DSS, RC
"Spoon-feeding in the lng run teaches us nothing more but the shape of
the spoon"	--E. M. Forester

Newsgroups: comp.unix.questions
From: cpcahil@virtech.uucp (Conor P. Cahill)
Subject: Re: Problem building new ISC 3.0 kernel
Organization: Virtual Technologies Inc.
Date: Sat, 5 Sep 92 12:31:22 GMT

deano@areyes.com (Dean Carpenter) writes:

>  This above here shows up in a window offering to let you escape.  The
>install went no differently from the others, and the default controller
>is the athd on irq 14, i/o 1f0.  There doesn't appear to be a dsk0t
>device on the other machines, though they all are scsi, not esdi.

Even when you use a default athd, you need to add a disk on the next 
sysadm screen after configuring the controller (select BASIC and then
use the space key to say that the first device is a disk).

This should solve your problem.

Conor.
-- 
*** SENTINEL(tm) The ultimate Debugging Environment - email for more info ***

Conor P. Cahill              (703)430-9247            cpcahil@virtech.vti.com
Virtual Technologies, Inc.  46030 Manekin Plaza          Dulles, VA 21066
From: dflynn@aludra.usc.edu (Daniel Flynn)
Newsgroups: comp.unix.questions
Subject: Adding a Comment to .netrc
Date: 14 Sep 1992 16:35:10 -0700
Organization: University of Southern California, Los Angeles, CA
NNTP-Posting-Host: aludra.usc.edu

Does anyone know of a way to add a comment line to .netrc? For example,

*** Coherent Archive
machine raven.alaska.edu
login anonymous
password dflynn@aludra.usc.edu


Notice the comment line in which I note a description of the site. I have
comments like that in my file, but the FTP server doesn't really like it.
I have had no problems, but I do note that the server is being fed the
comment lines. Anyone know of a way around that?
From: kschwab@wrdis01.af.mil (kschwab)
Newsgroups: comp.unix.questions
Subject: Re: Password generator / checker?
Date: 8 Sep 92 14:25:18 GMT
Organization: 1926CCSG Robins AFB

In article <1992Sep3.230149.17906@centric.com> ian@centric.com (Ian Macky) writes:
>I recently rank the 'crack' program on our firewall machine and had some nasty
>surprises!  Yikes!
>
>So, does anyone have a password generator program?  The kind that makes 'typable',
>pronounceable passwords, but ones that are meaningless?  I'd like to make it
>available to my users for those who can't make up random gubbish on their own.

Maybe this is wrong, but if you are going to use an algorithm to make
passwords, can't the "cracker" use the same algorithm in the RULES file of
crack ? ( And add a gibberish.dict.Z to the bigdict )


>
>Also, what about a version of the passwd program that applies crack-style rules to
>the user's choice and refuses to let them enter obviously crackable passwords in
>the first place?
>
>--ian
Also on the same note, the crack time could be significantly reduced if it 
was obvious that "easy" words and rules could be skipped.
And if the password is too random and meaningless, the user would most likely 
jot it down everywhere

I think a passwd replacement that has a few rules along with password ageing
would probably be best. I think I saw this thread in *.security a few weeks
back.

No Flames intended.
Admittedly not-a-wizard, just my $.02 
--
Kerry Schwab
kschwab@logdis1.wr.aflc.af.mil
Newsgroups: comp.unix.questions,comp.unix.misc
From: nowlola@elof.iit.edu (Olatunji Nowlin)
Subject: Help retrieve a botched kermit file?
Organization: Illinois Institute of Technology, Chicago
Distribution: na
Date: Tue, 8 Sep 92 00:20:00 GMT



I'm having a problem with an old file and I'm hoping I can
get some help via the newsgroups...
A while back (bout a year or so).  I tarred and compressed
a file on the Unix system.  I then used kermit to save it
to a 3.5 floppy.  The file size on the floppy is about
350k.  My problem is that I cannot uncompress the file
anymore.  I uploaded it to Unix but the uncompress always
fails...  I think that I MIGHT have accidently saved it
in ascii format (sigh) but I'm not sure...  Does anyone
know of how I can salvage my files?

OAN

email nowlola@elof.iit.edu
-- 
No signature here...
From: pd@x.co.uk (Paul Davey)
Newsgroups: comp.unix.questions
Subject: Re: need script to rename uppercase filenames
Date: 10 Sep 92 13:26:10 GMT
	<1992Sep8.022910.4634@ddsw1.mcs.com>
Organization: IXI Ltd.

>>>>> On 8 Sep 92 02:29:10 GMT, dattier@ddsw1.mcs.com (David W. Tamkin) said:

David> | You could also do this with a one-liner:
David> | 
David> |     cat $1 | tr -d '\015' > `echo $1 | tr [A-Z] [a-z]`

David> That's the third time in this thread I've seen a suggestion to cat one file
David> to a pipe.  It's better to save a process and

David> tr -d '\015' < $1 > ...

But with the first example you can pipe into it when $1 is unset.

somecommand | cat $1 | tr -d '\015' > `echo $1 | tr [A-Z] [a-z]`


Yer pays yer money and yer take's yer choc ice. 
--
 Regards,			  pd@x.co.uk           IXI Ltd.
	Paul Davey		  pd@ixi.uucp          62-74 Burleigh St.
				  ...!uunet!ixi!pd     Cambridge,  U.K.
 "These _are_ interesting times"  +44 223 462 131      CB1  1OJ
From: tparker@music.scd.ucar.edu (Tom Parker)
Newsgroups: comp.unix.questions
Subject: Re: csh command line editing
Date: 14 Sep 92 22:11:23 GMT
Organization: Scientific Computing Divison/NCAR Boulder, CO

In article <5049@balrog.ctron.com> geremia@ctron.com writes:
>
>	I have a Sun SPARCstation running sunos 4.1 unix.  Does anyone
>know how to get command line editing to work.  Also how about command
>line history browse using the arrow keys????

I use the 'mced' command to do this and am quite please with it.
You can Use ARCHIE to find anonymous ftp locations that have 'mced'.
--
+--------------------------------------------------------------------+
| Tom Parker             |  National Center for Atmospheric Research |
| tparker@ncar.ucar.edu  |  (303) 497-1227                           |
+--------------------------------------------------------------------+
From: hienl@Saigon.COM (Hien Luu)
Newsgroups: comp.unix.questions
Subject: file descriptors
Date: 6 Sep 92 16:49:41 GMT
Distribution: usa
Organization: Station Zebra Corp, Sunnyvale CA Ph:408-739-1520

Greeting to all UNIX gurus..

I understand that sockets are referenced by socket descriptors.  Are
the socket descriptors and file descriptors equivalent? and both
are stored in the user file file descriptor table, correct?
 
Apparently, our application has socket descriptor leak, therefore
I would like to monitor the open socket descriptors.  Is there
a UNIX utility that would allow me to do this interactively while
the application is running?  If not, how would I go about monitoring
the open socket descriptors from the command line?
From: sm86+@andrew.cmu.edu (Stefan Monnier)
Newsgroups: comp.unix.questions
Subject: Re: Does free() really free?
Date: 5 Sep 92 09:41:46 GMT
Article-I.D.: andrew.oeeD5OC00awMEEimk2
Organization: Junior, Math/Computer Science, Carnegie Mellon, Pittsburgh, PA

Excerpts from netnews.comp.unix.questions: 5-Sep-92 Does free() really
free? Simon Marshall@sequent.c (1471)

> Or: How do I find out the real size of a running process?

> 	Hi all.  This is really a question about the Sequent's shfree(), but
>     in tests it seems to apply to other machines and free() in general.
>     Please can anyone give a knowledgable answer?

> 	If I malloc(), then free(), the SZ (SIZE) column of ps does not show
>     the expected fall.  I don't believe that the system ignores freed space,
>     but then again I know that software that I have written thrashes
>     machines, despite the fact that most of the memory malloc()ed is
>     subsequently free()ed.

> 	On our Sequent and Suns, for example, once the SZ column shows
>     70Meg+, you can see the machines thrash.  But I can work out that the
>     actual unfreed memory only amounts to at most 15Meg.

> 	So, please could anyone tell me what is going on here?  Does free()
>     actually free, and is the SZ column of ps reliable in any way?  Or is
>     free() working as expected, ps lying, but 15Meg is too much?  Surely
>     not?!  I'd welcome anything emailed/posted.  (Except unhelpful questions
>     of the order `why are you mallocing then freeing so much' etc. :-)

> 	Thanks in advance, Simon.
> _______________________________________________________________________________
>  Simon Marshall, Dept. of Computer Science, University of Hull, Hull HU6
> 7RX, UK
>   "Football isn't about life and death.  It's more important than that." Bill
> Email: S.Marshall@Hull.ac.uk    Phone: +44 482 465181    Fax: 466666   Shankley


I'm not a Unix wizard: I used to have an Atari ST.

But Unix may be a bit the same on this point:
A alloc() is not a call to the OS but a library function. This
function request memory from the OS but in 'big' blocks 
(cause the malloc() of the OS is a bit too complex, especially
on Unix, where it has to deal with VM...). 
When there is some place left in one of the blocks, the alloc()
just returns it (and marks it busy), else, it calls malloc() to
get a new block and marks the needed part of it as busy.

When you call free(), it will mark the corresponding region as 
free. But the block in which that region is may not be fully
free, so that it is not released to the OS: it is free for the 
prg but not for the OS.

This is maybe what is happening to you: your 15MB are 
distributed among 70MB of blocks !


	Stefan Monnier

-----------------------------------------------------
-- On the average, people seem to be acting normal --
-----------------------------------------------------
Newsgroups: comp.unix.questions
From: chandler@whatever.cs.jhu.edu (Justin Chandler)
Subject: Anon ftpd programs
Organization: JHU Reseach Administration Services
Date: Tue, 8 Sep 1992 14:21:08 GMT



	We have a Data General Aviion 5240 running DG/UX 5.4.1 and we are
looking for an ftpd program that will log anonymous ftp requests.  We
have tried the one by Chris Myers, but it died a horrible death under
our SYS5 R4 wannabe.  Does any one have ideas?  Has any one done this before?
Any help would be much appreciated!


					Thank you,

					Justin

PS	Please reply to jdc@jhuspo.ca.jhu.edu or post.
From: pilon@JSP.UMontreal.CA (Pilon Guy)
Newsgroups: comp.unix.questions
Subject: Unix magazines in the French Language
Date: 15 Sep 92 12:19:17 GMT
Organization: Universite de Montreal


	Hi, a friend of mine wants to know if he can convert
his system from ms-window to Unix.  An important point to
consider is the avaibility of any documentation in French
and the possibility to use an autodoc (man) in French.

	Could you send me some informations about the magazines,
softwares, or anything else about Unix in French.

	Thank you.
Newsgroups: comp.unix.questions
From: dcs@neutron.chem.yale.edu (Dave Schweisguth)
Subject: Re: Mysterious behavior of 'tin'
Organization: Yale University
X-Newsreader: Tin 1.1 PL5
Date: Fri, 11 Sep 1992 14:52:35 GMT

Dave Schweisguth (dcs@neutron) wrote:
: I sent this to Iain Lea (author of the 'tin' newsreader) [etc.]

Hi again,

I accidentally hosed my reply address in the previous post. It's fixed now.
The address in my .sig and the reply address in this are OK. As you can see,
I'm very interested in replies!

Sorry about the public clumsiness.

Cheers,

--
| Dave Schweisguth   Yale MB&B & Chemistry   Email: dcs@neutron.chem.yale.edu |
| Lab phone: 203-432-5208      Fax: 203-432-6144     Home phone: 203-624-3866 |
From: dkowalsk@usdsd1.DaytonOH.NCR.COM (Dennis Kowalski)
Newsgroups: comp.unix.questions
Subject: Nothing is a directory
Date: 10 Sep 92 13:59:32 GMT
Reply-To: dkowalsk@usdsd1.DaytonOH.NCR.COM (Dennis Kowalski)
Distribution: usa
Organization: NCR USG Data Services Division


in <1992Sep3 231718.16061@sadtler.com> Rick stated that

  if -d NULL

 returned a true status on his SUN (4.1.3) indicating that "NOTHING" was
 a directory

 but a false on his SGI.

 Which is right?

 I tried the same test on a NCR TOWER (5.3) and a NCR 3445 (5.4)
 and got the same result on both.

 NULL is NOT a directory on either machine
 
 .
Dennis Kowalski         NCR Corporation  PCD-3                  (513) 445-1843
Systems Architecture    1700 S. Patterson Blvd              VOICEplus 622-1843
USG Data Services Div   Dayton, Ohio     45479
Dennis.Kowalski@DaytonOH.NCR.COM

-- 
Dennis Kowalski         NCR Corporation  PCD-3                  (513) 445-1843
Systems Architecture    1700 S. Patterson Blvd              VOICEplus 622-1843
USG Data Services Div   Dayton, Ohio     45479
Dennis.Kowalski@DaytonOH.NCR.COM
From: rich@delphi.bsd.uchicago.edu (Rich Long)
Newsgroups: comp.unix.questions
Subject: Cheap solutions to network printing...
Keywords: cheap, printer, network
Date: 9 Sep 92 14:11:38 GMT
Reply-To: rich@delphi.bsd.uchicago.edu
Organization: University of Chicago Computing Organizations


	Does anyone out there have any cheap solutions to putting a  
printer on the net?  We currently have the MiLAN fastport, put it is over  
$800.  We would like something that will support Apple Laserwriter IINT,
and various HP printers.  Thanx for any possible solutions...

--rich
From: memco@cns.nyu.edu
Newsgroups: comp.unix.questions
Subject: Want to know if fingered
Date: 14 Sep 92 21:24:35 GMT
Reply-To: memco@cns.nyu.edu
Organization: New York University

I believe this has been asked before, but could someone please
post the scripts for knowing if someone fingers you.

Thanks 

---
memco@wotan.cns.nyu.edu
From: rdorich@jade.tufts.edu (Rob)
Newsgroups: comp.unix.questions
Subject: forking and forking and forking...
Date: 15 Sep 92 00:54:32 GMT
Organization: Tufts University - Medford, MA

This might not be the right place to post this, but I'll give it a
try. What can be done when some one executes the following one-liner?
for(;;) fork();

After a few processes have been started, the user blows his processes
quota, and nothing else can be done.  Actually, kill works, but a new
process is immediately put up.  Is there any other solution other than
shutting the whole system down?

Thanx,

Rob
--

-------------------------------------------------------------------------------
Roberto Dorich           |           /~~  \ /  ~~/~~ /~~/  /~~  /|  /    /~~
                         |    SKI   /--    X    /   /__/  /--  / |/ |   /--
rdorich@jade.tufts.edu   |         /__    / \  /   /\    /__  /     |  /__
-------------------------------------------------------------------------------
Newsgroups: comp.unix.questions
From: guru@camelot.bradley.edu (Jerry Whelan)
Subject: Re: .netrc entry for default ftp connects
Keywords: ftp netrc
Organization: The Smelly Ditch
Date: Mon, 14 Sep 92 21:38:03 GMT

In article <smr.716471679@hitkw14> smr@hitkw14.pki-nbg.philips.de (S.Riehm) writes:
-} [script deleted]
-} 
-} eek! that script adds a line to the end of your .netrc file every time
-} you ftp somewhere... why don't you just read the man page to get the
-} answer...

	Well, that was, in my opinion, a serendipitous effect of the script.
I like to know where I've been.  On a couple of occasions, it has saved
me a great deal of time trying to remember where I picked up a piece of
software.  Much faster than archie.  (Especially nowdays, has anyone else
noticed a tremendous slowdown in the speed of archie searches in the last
couple of months?  I see it no matter what archie server I connect to.)

-------------------------------------------------------------------------------
``written by a drunken insane pathological liar''        guru@stasi.bradley.edu
Newsgroups: comp.unix.questions
From: geert@gouldnl.encore.nl (Geert Lindemulder)
Subject: termcap entry for a Tandem TS530 Series Terminal
Organization: Gouldnl Field Service
Date: Mon, 7 Sep 1992 13:14:02 GMT

Dear network readers ,

This morning we received a Tandem TS530 Series Terminal.
We tried to connect this to our gould powernode pn6040 with
a utx 2.1b operating system.
Unfortunately our system does not have an entry, for this kind
of terminal in the termcap file.
Did anyone of you ever had to connect one of these terminal to his
unix system.
I am very interested in any number of termcap lines , before i
start searching in the terminal manual to edit a termcap entry myself. 

regards , Geert Lindemulder 
Encore Computer Nederland B.V.
Maarssenbroek , Nederland
Email : glindemulder@encore.nl