HDTenEightyP/NetNews huggingface dataset:
From: manns@boss1.physik.uni-bonn.de
Newsgroups: comp.unix.questions
Subject: HP 7X0: how to get process information
Date: 15 Apr 92 09:40:50 GMT

Hello,

	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)?

Thanks

	Jochen

-- 
------------------------------------------------------------------
| Dr.rer.nat. Jochen Manns | (GER)0228/733608                    |
| Universitaet Bonn        |                                     |
| Physikalisches Institut  | manns@boss1.physik.uni-bonn.de      |
| Nussallee 12             | PIB1::MANNS                         |
| 5300 Bonn 1              |                                     |
| Deutschland              |                                     |
------------------------------------------------------------------
--
Newsgroups: comp.unix.questions
From: scott@tdc.rtp.dg.com (John Scott)
Subject: Re: TCP/IP TIME_WAIT state ( not a test )
Date: Thu, 9 Apr 92 16:19:57 GMT
Distribution: comp.unix.questions
Organization: Data General Corporation, Research Triangle Park, NC
Keywords: TCP/IP TIME_WAIT state ( not a test )

In article <etxtsil.702662978@kk152>, etxtsil@kk152.ericsson.se (Torbj|rn Sellen TT/TSD) writes:
|> How do you get rid of the TIME_WAIT state when you have shutdowned and closed a TCP/IP connection by closing the server before the client ?
|> I have tried the following:
|>        
|>                   done before the bind() function:
|> 
|> 						 struct linger   mylinger;
|> 
|> 						 mylinger.l_onoff = 1;
|> 						 mylinger.l_linger= 0;
|> 
|> 						 setsockopt(socket,SOL_SOCKET,SO_LINGER,(char*)&mylinger,sizeof(mylinger));
|> 		
|>                   done when exit the server and the client:
|> 
|>                          shutdown(socket,2);
|> 						 close(socket);

The answer is you don't.  The TIME_WAIT state is used to handle packets that may
arrive at the endpoint after the endpoint is closed.  It remains in this state
for approximately twice the maximum segment time to live (~60 seconds).  If the
endpoint is aborted, then the endpoint goes directly to CLOSED, sends a 
RST to the peer, and the endpoint is deleted. Setting linger to zero will abort
the endpoint at close() time if and only if there is data waiting to 
to be transmitted to the peer.

If you give some details about your application I may be able to suggest a
solution to you problem that doesn't involve aborting an endpoint in
TIME_WAIT state.

-- 
                                                                     
John A. Scott <scott@dg-rtp.dg.com> | Phone: (919) 248-5995
Data General                        | $2 first minute,
62 TW Alexander Drive               | $2**n for each additional minute
Research Triangle Park, NC 27709    |
From: smk@cbnews.cb.att.com (stephen.m.kennedy)
Newsgroups: comp.unix.questions
Subject: Re: sed question about removing C comments: Summary
Date: 6 Apr 92 15:34:30 GMT
Distribution: na
Organization: AT&T

In article <11745@tamsun.tamu.edu> saileshm@cs.tamu.edu (Sailesh Moravaneni) writes:
>
>Here is the summary to the question I posted about removing C comments 
>using "sed".
[...]
>>  /* Example 
>>  Comment 
>>  lines */
[...]
> There are simpler ways which do not need any looping like:

Ugh:

> sed '/\/\*/,/\*\//d' <file>

My sed eats all lines after a one line comment:

/* comment */
not a comment 

>and
>
>sed -e '/\/\*.*\*\//d' -e '/\/\*/,/\*\//d' $*

Well, this one and the one above cause sed to delete perfectly good lines
like this entirely:

	x = 1;		/* set x equal to 1 :^) */

Steve Kennedy
smk@cbosgd.att.com
Newsgroups: comp.unix.questions
From: jtice@butterfly.UVic.CA (Jason W. Tice)
Subject: formatting/aligning text (awk? printf? huh?)
Originator: jtice@butterfly
Organization: University of Victoria, Victoria, BC, Canada
Distribution: na
Date: Mon, 6 Apr 92 09:02:59 GMT

Hi there.

I'm having a difficult time with beautifying a list
of phrases, etc in a file.  

I have looked at awk, and perl, and I'm missing something...  
I looked at printf and most of it went right over me.  I really 
can't go to one of the lab supervisors because I am one.  (hey, 
it's a Fine Arts lab, Ok, I'm a writer/photographer, all right?)

I've a list of  names and phrases, that look like this:

john@here.i.am: this a test
Bob_M@there.I.go: 		this a test
ME@HERE.UUCP:  this is not a test
jtice@nero.uvic.ca:    this might be a test
noone@uvicctr.uic.ca:                         this a test
you_too:     this a test of nuclear fission inside a tin can

I want it to look like this:

john@here.i.am:              this a test
Bob_M@there.I.go:            this a test
ME@HERE.UUCP:                this is not a test
jtice@nero.uvic.ca:          this might be a test
noone@uvicctr.uic.ca:        this a test
you_too:                     this a test of nuclear fission inside a tin can 

You get the idea (I hope)

Can someone help me?

I don't want to go through and do it by hand, because I get 
ten to a hundred new lines a day.

Can anyone help me? at all?

pleae mail me at jtice@nero.uvic.ca
I know this is selfish of me, but I'm getting really frustrated.

-- 
I am not who you seem to think I'm claiming you think I am.

"It was a strange Position to see yellow"  --David Hume
							jtice@nero.uvic.ca
Newsgroups: comp.unix.questions,comp.unix.sysv386
From: nll@cbnewsb.cb.att.com (neal.l.leitner)
Subject: Graphic Viewer For Unix
Organization: AT&T
Date: Tue, 14 Apr 1992 11:51:06 GMT

I know that this subject has been covered before, but I need to know 
where I can get a program that will view tiff, gif or other graphical
color files running under Unix version 3.2.3 and 4.0.  Any help is
appreciated.

Neal Leitner
AT&T Bell Labs
...att!emdbl1!nll

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
Organization: Xenix Support, FICC
Date: Tue, 7 Apr 1992 15:33:34 GMT

In article <1992Apr5.163054.22880@lth.se> bengtl@maths.lth.se (Bengt Larsson) writes:
> >It's dynamically determined by the users as they establish net uses between
> >subnets. This is quite flexible, especially compared to the way DECNET or NFS
> >handle it.

> DECnet is something like it. Username and password can be part of the
> filename.

Can you say "massive security problem" boys and girls? I couldn't BELIEVE
that DEC actually implemented something that pretty much requires putting
remote passwords in user's files. This is worse than the .rhosts problem
that the Internet Worm made such good use of.

Plus, it sure encourages shoulder surfing...
-- 
/F { dup /Courier findfont exch scalefont setfont } def /S { show } def /L { 12
mul 36 add 36 exch moveto } def 24 F 2 L (Have you hugged your wolf today?) S
12 F 1 L (Peter da Silva, Ferranti International Controls Corporation) S
0 L (Sugar Land, TX  77487-5012;  +1 713 274 5180) S
From: moss@cs.umass.edu (Eliot Moss)
Newsgroups: comp.unix.questions
Subject: Re: Disk Access Time under Ultrix on DEC 3100
Date: 11 Apr 92 14:45:05 GMT
Reply-To: moss@cs.umass.edu
Followup-To: comp.unix.questions
Organization: Dept of Comp and Info Sci, Univ of Mass (Amherst)
In-reply-to: wherry@alazif.cxn.dec.com's message of 10 Apr 92 00:18:14 GMT

>>>>> On 10 Apr 92 00:18:14 GMT, wherry@alazif.cxn.dec.com (Colorado
>>>>> Cyberpunk) said:

Colorado> In article <1992Apr9.164829.9140@jarvis.csri.toronto.edu>,
Colorado> liu@white.toronto.edu (Dong Xu LIU) writes:
>	As Ultrix 3.1 uses a rotational optimization scheme to minimize 
>the rotational delay and places data of the same file closely on disk, 
>seek time and rotational delay should mostly be very small (much less
>than 20 msecs) when user reads blocks of a large file.
>
>	Does anyone know of the causes for such a high disk access duration
>(the causes other than disk seek time and rotational delay)?
>
>Thanks,
>		Dong

Colorado> What kind of disk is this?  (use rzdisk -i (8) to get the info.)

Colorado> What other operations (seeks) are happening on this disk?

... and are the accesses sequential? Note also, that rotational placement
usually assumes *some* processing time. Another thing that occurs to me is
that if you're reading this into pages you haven't touched before, or that are
paged out, then you're incurring OS trap and possibly paging overheads. It's
all not as obvious as you might think. I have certainly gotten rather more
than 400K bytes/sec (8K * 1000ms/sec / 20ms) sequential read (and sequential
write) speed. Make sure your disk isn't too full either, or you won't be
getting sequential reads on the disk since the allocations will be scattered.
--

		J. Eliot B. Moss, Assistant Professor
		Department of Computer Science
		Lederle Graduate Research Center
		University of Massachusetts
		Amherst, MA  01003
		(413) 545-4206, 545-1249 (fax); Moss@cs.umass.edu
From: david@talgras.UUCP (David Hoopes)
Newsgroups: comp.unix.questions
Subject: Re: writing to tape larger than 2Gb
Date: 6 Apr 92 13:35:19 GMT
Reply-To: david@talgras.UUCP (David Hoopes)
Organization: Tallgrass Technologies Inc.

In article <gdqWiln0BwwYF5k5MG@transarc.com> vijay+@transarc.com writes:
>
>Hi folks,
>
>   I have a question about writing to tape larger than 2Gb.
>When I keep writing 16k blocks to a tape that has 5Gb capacity,
>the write system call returns -1 with errno = EINVAL when I
>finish writing 2Gb. When I put a ioctl(fd,MTIOCTOP, &mtop) with
>mtop.mt_op = MTWEOF (basically writing a eof marker on tape), one
>every 1Gb this problem remains. Any one know what the problem is, 
>and how I do write data blocks to tape beyond the 2Gb and 4Gb limits.
>Shouldn't the eof marks I put in every 1Gb solve the problem?
>
>Thanks,
>
>Vijay
>
>p.s. its not a limit problem, filesize is unlimited. 
>        The machine is a sun 4/20 (sunos 4.1.1) running a Exabyte 8500 drive

I would take a wild guess and say that the driver is keeping track of the
amount of data that has been written to tape.  Some nice programmer didn't
think about the limits of his variables and used a signed integer.  (2 gig
is more than anyone would ever use right?)  Simply changing to an Unsigned
integer would have gotten you to 4 gig.  Keeping a block (512 bytes) 
instead of a byte count in an unsigned integer, would have streched the 
limit to 2048 gig.  

2 gig = 2 ^ 31 (2 raised to the 31 power).  More then 2 gig rolls over to
a negitive number.  Some where along the line they decide that a negitive
amount is an error.

Apparently they do not clear the amount when you write an EOF mark.  Try
closing the drive and reopening it every one gig.  This should clear the
amount.  It is usually kept on a per open basis.


-- 
---------------------------------------------------------------------
David Hoopes                              Tallgrass Technologies Inc. 
david@tallgrass.COM                       11100 W 82nd St.          
Voice: (913) 492-6002 x323                Lenexa, Ks  66214        
Newsgroups: comp.unix.questions
From: bengtl@maths.lth.se (Bengt Larsson)
Newsgroups: comp.unix.questions,comp.unix.wizards,comp.sys.intel
Subject: Re: How to copy to another machine's /dev
Date: 9 Apr 92 21:03:56 GMT
Organization: Lund Institute of Technology, Sweden

In article <id.EYOO.75G@ferranti.com> peter@ferranti.com (Peter da Silva) writes:
>In article <1992Apr5.163054.22880@lth.se> bengtl@maths.lth.se (Bengt Larsson) writes:
>> DECnet is something like it. Username and password can be part of the
>> filename.
>
>Can you say "massive security problem" boys and girls? I couldn't BELIEVE
>that DEC actually implemented something that pretty much requires putting
>remote passwords in user's files. This is worse than the .rhosts problem
>that the Internet Worm made such good use of.
>
>Plus, it sure encourages shoulder surfing...

That it does. It would be much nicer if it prompted for passwords.

But since VMS 4 (that is, a long time), VMS has "proxy logins". They are
about the same as UNIX .rhosts but assigned by the administrator. 
Proxy logins don't work for interactive logins, only for "network jobs"
(file access being one of them).

If you have proxies defined, remote file access is pretty transparent.
You can for example do

	$ eve remotenode::filename.txt

to edit a remote file.

Bengt Larsson.
-- 
Bengt Larsson - bengtl@maths.lth.se
From: chris@bwilab3.UUCP (Chris Curtin)
Newsgroups: comp.unix.questions
Subject: Re: Source code for crypt(3C)
Summary: Silly me
Date: 10 Apr 92 20:21:52 GMT
Organization: Bradley Ward Inc., Atlanta, Ga

In article <115@bwilab3.UUCP>, chris@bwilab3.UUCP (Chris Curtin) writes:
> 
> I am looking for source code that will encrypt and decrypt a given string
-------------------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> using a given salt. The version of encrypt that comes with HP-UX 8.0 is
- ^^^^^^^^^^^^^^^^^^
> broken. This has been verified by PICS and I have an SR for it.
> 
> What I need is a function that will encrypt and decrypt a given string of 
--------------------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> any size using a supplied salt. I would prefer a DES compatable algorithm
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> in source form. C is prefered but FORTRAN is acceptable.
> 

The preceeding was a public service announcement from the Department of
Redundancy Department. ;-}

Chris


-- 
--
Christopher M. Curtin				Bradley Ward, Inc.
gatech!warlord!bwilab3!chris			5901-A Peachtree Dunwoody Rd
						Atlanta, Ga 30350
From: hymowitz@SERVER.CS.JHU.EDU
Newsgroups: comp.unix.questions
Subject: examples
Date: 17 Apr 92 04:32:02 GMT
Organization: The Incredibly Huge Corporation


hello...

i have a problem rtfm-ing.  i can generally learn things better by looking
at an example or two, modifying it (with a little help from the fine manual),
etc.  however, i find man pages too specific and technical for my use.

at the risk of a mailbox flooding, is there some way that i could get
samples of shell scripts that use sed, awk, paste, etc. so that i can
rip them apart and learn how to *use* them?

i don't expect everybody to mail me all of their scripts; perhaps a pointer
or two to an ftp site or something...

thanx in advance.

--hymie
hymowitz@cs.jhu.edu                                         hymie@jhuvms.bitnet
-------------------------------------------------------------------------------
Newsgroups: comp.unix.questions
From: edsall@iastate.edu (David M Edsall)
Subject: Re: ? redirect a file opened in a fortran program
Organization: Iowa State University, Ames IA
Date: Tue, 7 Apr 1992 06:30:38 GMT

In <1992Apr6.214345.19569@ruc.dk> jba@ruc.dk (Jan Bruun Andersen) writes:


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


  And C, and Pascal, and Basic, and C++ ( not yet, give me time )

Je diteste le VMS, mais j'utilise le VMS en ma travaille.

>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.


   You can do it and I do this all the time.


   Dave 
-- 
------------------------------------------------------------------------------
| David M. Edsall       |        INTERNET:        |  Ask Iowa State why they |
| Physics Grad Student  |   edsall@iastate.edu    |  are censoring my USENET |
| Iowa State University | BITNET: edsall@alisuvax |  feed.  You are not      |
| Ames Iowa             | HEPNET: isuhep::edsall  |  allowed to read this.   |
------------------------------------------------------------------------------
From: birecree@cygnus.Kodak.COM (Jack Birecree)
Newsgroups: comp.unix.questions
Subject: make/sccs quandry
Date: 9 Apr 92 20:55:06 GMT
Distribution: usa
Organization: Eastman Kodak Co., Rochester, NY



     I am having trouble using the make utility. I have a series of programs and a makefile already to put them together, but SCCS is causing the make to 
 abend with a fatal error. Below is the error message I received:

--------------------------------
% make
make: Fatal error: Makefile is writable so it cannot be sccs gotten
% 
----------------------------------

 I tried inserting .SGGS_GET into the Makefile but it errored out reading
the Makefile. I did not write the MAkefile. I FTP'd it from another site. All
I want to do is run it. The Makefile is in the CWD.		


 I'm sure I'm doing something stupid. Any ideas?

--
Jack Birecree            | If replying via E-Mail, please send to the address below
Product Software Eng.    | not to the address on this note.
Eastman Kodak Company    | Internet:  birecree@cygnus.kodak.COM
Rochester, NY 14653-7007 | Phone: (716) 726-9629
Newsgroups: comp.unix.questions
From: jik@athena.mit.edu (Jonathan I. Kamens)
Subject: Re: Problem with Make
Organization: Massachusetts Institute of Technology
Date: Thu, 9 Apr 1992 19:39:58 GMT

In article <1992Apr9.013533.3641@msuinfo.cl.msu.edu> lacey@kira.egr.msu.edu (Mark M. Lacey) writes:

   Distribution: comp

This is not a valid distribution.  If your software put it there
automatically, then you should fix the software, and/or ask your
admin to do it, and/or complain to its maintainer.

   I am having a problem with 'make' that I can't seem to resolve.  I read
   through the man-page and didn't see anything that would help me out.
   The problem: 'make' is using the date on the symbolic link I have,
   rather than the date of what the link points to.  Is there any way to
   force 'make' to look at the date on the file that is being linked to?

I have never used a version of Make that behaves as you describe.
What kind of machine are you working on?  What kind of UNIX is it
running?  What version?  Is the Make you're using the standard Make
for that UNIX version?  Have you tried one of the other versions of
Make that are available?

Are you *sure* that what you describe is what's actually happening?
Could you post a transcript of a session that illustrates the problem?

Please remember that not everyone on the USENET is using the same kind
of UNIX as you.  Please also remember that the more detailed you are
when asking your questions, the easier it is for people to help you;
conversely, when you are vague, it is difficult for people to help
you.

-- 
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: snk@fork.bae.bellcore.com (Samuel N Kamens)
Subject: Merging libraries with ar
Reply-To: snk@bae.bellcore.com
Organization: Bell Communications Research
Date: Wed, 15 Apr 92 14:01:39 GMT

Hi,

Does anyone know how to merge two libraries using ar?

ie I have a lib1.a and lib2.a, and I want to put everything from
lib1.a into lib2.a.

Any ideas?

E-mail responses would be appreciated, although I'll check the
newsgroup for a few days.

Thanks,

Sam Kamens

-- 
Sam Kamens					Bell Communications Research
snk@bae.bellcore.com				Phone: (908) 699-7509
444 Hoes Lane  Room RRC 1D-210
Piscataway, NJ 08854
Newsgroups: comp.unix.questions
From: gst@evolving.com (Giri Tirumale)
Subject: Lex Rules
Date: Wed, 08 Apr 1992 16:26:34 GMT
Distribution: usa
Organization: Evolving Systems, Inc.



	Netters:

	Does somebody out there have Do's / Dont's for 
	writing Lex rules?
	Could you please email your response to gst@evolving.com?

	Thanks
	Giri
Newsgroups: comp.unix.questions,comp.sys.dec,comp.unix.sysv386,comp.unix.msdos,comp.sys.hp
From: eeron@techunix.technion.ac.il (Ron Daisy)
Subject: TRY!!!
Reply-To: eeron@techunix.technion.ac.il (Ron Daisy)
Organization: Technion, Israel Inst. of Technology
Date: 10 Apr 92 08:09:56 GMT
Followup-To: comp.unix.questions


Test
From: shah@fnsony.fnal.gov (Hemant Shah)
Newsgroups: comp.unix.questions
Subject: ANSWER FOUND - forked processes become <defunct>
Date: 6 Apr 92 17:42:57 GMT
Reply-To: shah@fnalb.fnal.gov
Organization: Fermi National Accelerator Laboratory, Batavia, IL

Thanks to all who replied to my question (including one flame). There
were too many indivivuals who replied and I did not have time to thanks
all of you individually.

Thanks again to all of you who replied.
-- 
-------------------------------------------------------------------------------
Hemant Shah                            | All the opinions expressed are my own
Fermi National Accelerator Laboratory  | and does not necessarily reflect
Systems Integration Group              | those of Fermilab.
E-mail :shah@fnal.fnal.gov             |
 Voice : (708) 840-8071	               | I haven't lost my mind
   Fax : (708) 840-2783                | it's backed on tape somewhere.
-------------------------------------------------------------------------------
From: ced0777@bcsaic.boeing.com (Charles DeRykus)
Newsgroups: comp.unix.questions
Subject: Text Formatting...(awkishly)
Date: 8 Apr 92 20:26:24 GMT
Organization: Boeing Computer Services AI Center, Seattle

|  john@here.i.am: this a test
|  Bob_M@there.I.go: 		this a test
|  ME@HERE.UUCP:  this is not a test
|  jtice@nero.uvic.ca:    this might be a test
|  noone@uvicctr.uic.ca:                         this a test
|  you_too:     this a test of nuclear fission inside a tin can

|  I want it to look like this:

|  john@here.i.am:              this a test
|  Bob_M@there.I.go:            this a test
|  ME@HERE.UUCP:                this is not a test
|  jtice@nero.uvic.ca:          this might be a test
|  noone@uvicctr.uic.ca:        this a test
|  you_too:                     this a test of nuclear fission inside a tin can 


Jason,

Here's an awkish solution - definitely not artistic  :-)

#!/bin/sh 
sep=1      # column separation 
max="`/usr/bin/nawk -F: '{if (length($1)>max) max =length($1)+'$sep'}; \
   END { print max} ' your_input_file`" 
/usr/bin/nawk '{printf("%-'$max's",$1) ; for (i=2;i<=NF;i++) \
     printf(" %s",$i) ; printf("\n") } ' your_input_file


Charles DeRykus				Internet:   ced@bcstec.boeing.com
Boeing Computer Services		UUCP:	    ...!uunet!bcstec!ced
Bellevue, WA.  M/S 7M-HA		(206) 957-5326  FAX: (206) 957-5050
Newsgroups: comp.unix.questions
From: etxtsil@kk152.ericsson.se (Torbj|rn Sellen TT/TSD)
Newsgroups: comp.unix.questions
Subject: TCP/IP TIME_WAIT state ( not a test )
Keywords: TCP/IP TIME_WAIT state ( not a test )
Date: 7 Apr 92 16:09:38 GMT
Distribution: comp.unix.questions
Organization: Ericsson

How do you get rid of the TIME_WAIT state when you have shutdowned and closed a TCP/IP connection by closing the server before the client ?
I have tried the following:
       
                  done before the bind() function:

						 struct linger   mylinger;

						 mylinger.l_onoff = 1;
						 mylinger.l_linger= 0;

						 setsockopt(socket,SOL_SOCKET,SO_LINGER,(char*)&mylinger,sizeof(mylinger));
		
                  done when exit the server and the client:

                         shutdown(socket,2);
						 close(socket);