HDTenEightyP/NetNews huggingface dataset:
From: clin@eng.umd.edu (Charles Lin)
Subject: Re: What does cc -D option means ?
Date: Tue, 13 Oct 92 07:18:46 GMT
Organization: College of Engineering, University of Maryland, College Park
Originator: clin@transform.eng.umd.edu


In article <josef.718875837@uranium>, Josef Moellers <mollers.pad@sni.de> writes:
>In <32981@adm.brl.mil> AMARAL@fncrd0.fnal.gov (Jorge Luis M. do Amaral) writes:
>
>>Hi ,
>>	Does anyone can explain me what the cc -D option means ?
>
>>	I'm trying to compile a program that has in his make something
>>like:
>>	cc -g -DWANT_X11 -DWANT_MFB ....
>
>It's the command line equivalent of
>
>	# define	WANT_X11	1
>	# define	WANT_MFB	1
>
>There is another version of -D that allows You to replace the "1":
>
>	cc -g -DDATE=\"10/12/92\" ...
>
>which is the equivalent of
>
>	# define	DATE	"10/12/92"
>
>But You're not trying to tell us that "man cc" doesn't tell You all
>this, do You?

   But who wants to read man pages?

   Anyway, these "defines" are typically used by programs to run
certain options.   Often used in conjunction with #ifdef and
#ifndef for blocking or using certain code.

--
Charles Lin
clin@eng.umd.edu

Newsgroups: comp.unix.questions
From: cpr4k@holmes.acc.Virginia.EDU (Christian P. Roberts)
Subject: Re: time output... how to capture when running batch jobs?
Organization: Academic Computing Center - U.Va.
Distribution: usa
Date: Fri, 9 Oct 1992 20:25:55 GMT

Use etime (elapsed time) or dtime (elapsed time since last call
to dtime) within the Fortran code and just write it to a file
or stdout, as in:

      program time
      real t(2)
      real t1,t2

      t1=dtime(t)
        ... do some work
      t2=dtime(t)
      write(*,1000)t1
      write(*,2000)t2
      write(*,3000)t2
      write(*,4000)t(1)
      write(*,5000)t(2)
 1000 format(' Start timer, t1= ',G14.6)
 2000 format(' Second call to timer, t2= ',G14.6)
 3000 format('  Elapsed time between calls is t2: ',G14.6)
 4000 format('     User time is t(1): ',G14.6)
 5000 format('     System time is t(2): ',G14.6)
      end

-- 

Chris Roberts                     Academic Computing Center
cpr4k@virginia.edu                University of Virginia           
(804) 982-4693                    Charlottesville, Virginia 22903
From: dansmith@Autodesk.COM (Daniel Smith)
Newsgroups: comp.unix.questions
Subject: Re: IS UNIX DEAD?
Date: 13 Oct 92 21:00:35 GMT
Organization: Autodesk Inc., Sausalito CA, USA

In <1992Oct9.174953.8806@aee.aee.com> gene@aee.aee.com (Gene Kochanowsky) writes:

> fr@compu.com (Fred Rump from home) writes:
> 	Camon guys! This sort of discussion is nonsense. The more people that 
> 	use computers, the more ways computers will be used. One size does not 
> 	fit all, and never will. Unix, in some form or another, will be around 
> 	for some time to come, so will WindowsNT, DOS, MacOS, and so on. From 
> 	what I understand there are still die hard CPM users out there. I
> 	strongly suspect that the operating system of the future will be none
> 	of these, but something completely different.

	Working off your point, consider this:

	Do you see as much infighting in the DOS community as Unix? (OS-wise)

	Do you see as much infighting in the Mac community as Unix? (OS-wise)

	Do you see as much infighting in the CP/M community as Unix? (OS-wise)

	Do you see as much infighting in the Amiga community as Unix? (OS-wise)

	See, that's what I'm getting at.  Unix has become (ha! always was!) this
big elephant which looks different from every side.  I look at the BSD front foot
and say "ha! all elephants have fast find!", but the person looking at the SYS V
front foot sees something else.   Hmm, silly example.

	My original point was that when I look at any other OS community, I don't
see the same sort of rifts.  I think that works more against the Unix community than
for it.  I just hope the OS vendors get their act together in time.

					Daniel
-- 
     Daniel Smith, Autodesk, Sausalito, California, (415) 332-2344 x 2580
	      Disclaimer: written by a highly caffeinated mammal
	    dansmith@autodesk.com            dansmith@well.sf.ca.us
From: cspamy@uta.fi (Pasi Myllym{ki)
Newsgroups: comp.unix.questions
Subject: more lines
Date: 8 Oct 92 14:21:30 GMT
Organization: University of Tampere, Finland

When I take a session from my home-PC by a modem to unix computer I have
some problems with numbers of lines on the screen.
If I use for example emacs or readnews I have "only" 25 lines, and normally
there are 50 lines on the screen.
Are there too much lines on my homecomputer's screen? 

-Pasi
-- 
IIIIIIIIIIIIIILIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII
   Pasi Myllymaki   |        Tappara saa muuten takkiinsa seuraavassa matsissa!
   cspamy@uta.fi    |
From: rick@sjsumcs.sjsu.edu (Richard Warner)
Newsgroups: comp.unix.questions
Subject: Re: IS UNIX DEAD?
Date: 13 Oct 92 15:15:05 GMT
Organization: San Jose State University - Math/CS Dept.

rvinluan@cs.cornell.edu (Rolando Vinluan) writes:

>	4) It's supposed to come out in 1Q93.

Even Microsoft (e.g., Bill Gates and Steve Ballmer) is now saying,
publically, 2Q93.  And the skeptics think that may be a bit optimistic.
Newsgroups: comp.unix.questions
From: krisk@ux1.cso.uiuc.edu (Kris Klindworth)
Subject: Re: weird behaviour of sed
Organization: University of Illinois at Urbana
Date: Wed, 14 Oct 1992 21:28:06 GMT

mau@beatles.cselt.stet.it writes:

>My man page (SunOs 4.1.2) for sed says that 
>           s/regular expression/replacement/flags
>change the regular expression into the replacement and defers to ed(1).
>ed says that it is the first occurrence of a string which match the RE to be
>substituted. Fine.

>So, if z is a file containing the line 
>	asdfgh asdgfh asdfgh asdgfh asdfgh asdgfh
>the command  sed 's/.*gf/GF/1' z should return 
>GFh asdfgh asdgfh asdfgh asdgfh
>, shouldn't it? Well, it returns just GFh .

>Which is the reason of this behaviour? and how can I accomplish my goal?

>regards, .mau.

I don't think it's well documented but the regular expression takes the
LONGEST pattern which matches.  In your case that was everything from
the beginning of the line to the last "gf".  That's the why.

I'll be greatly interested to see if anyone can answer the how question
without going to another program.


------------------------------------------------------------------------------
Kris Klindworth                    Internet: krisk@ux1.cso.uiuc.edu
Database Programmer/Analyst        Phone   : (217)244-7120
Illinois State Water Survey        US Mail : 2204 Griffith Dr
                                             Champaign, IL 61820
Newsgroups: comp.unix.questions
From: Eric C. Garrison <ericg@sopwith.ucs.indiana.edu>
Subject: time output... how to capture when running batch jobs?
Content-Type: text
Organization: Indiana University
Date: Fri, 9 Oct 1992 19:12:54 GMT
Content-Length: 529       

I had a question posed to me that I couldn't answer regarding
the time program.  The guy wants to run a very long job on
a Sun workstation and also wants to see how much CPU time
it takes at the end of the job.  He's running a program
written in FORTRAN, if it matters.

The thing is, I am not sure how to redirect the output of
time to another file.  Even redirecting the stderr to
a file produces no output.

Any ideas?

Eric

-- 
Eric Chris Garrison			      UCS Support Center
ericg@ucs.indiana.edu			      Indiana University
Newsgroups: comp.unix.questions
From: guenther@stolaf.edu (Philip A Guenther)
Subject: Re: Getting % prompt in piping "more"
Organization: Academic Computing Center, St. Olaf College
Date: 12 Oct 92 18:57:49

In <1992Oct06.082758.837335@zeus.calpoly.edu>, dgong@zeus.calpoly.edu (Irkel) said
   Hello netters!

   Does anyone out there know how to get the percent prompt when
   piping through "more"?

   For instance, say I have a text file called "file" and I do a:
	   more file

   As I am reading this file, I will get the percentage of how far
   into the file I am at the bottom. --More--(9%)

   But if I pipe "more" through something like cat or zcat
   then all I get at the bottom is a: --More--

   Ex.: zcat file.Z | more

   Is there any way of getting --More--(%n) when piping "more"?

more (or any program for that matter), can only figure out what the
percentage is by lseeking on the file descriptor given to it, all the
way to the end, then going back to the begining (Note that it doesn't
actually do any reads at the end at this point so it isn't a
performance hit).  You can't lseek on a pipe, so more can't tell you
how much is left.  Indeed, the program producing the input to more may
still be generating it!

Philip Guenther
--
guenther@stolaf.edu (Philip Guenther)       | The ACC might agree with me,
Student Sys Prog, Academic Computing Center | but with that bunch, (and me)
St Olaf College, Northfield, MN 55057-1001  | you never know... :-) :-| :-(
"Life makes sense?  LIFE MAKES SENSE!!?  Where do people get these ideas?"-me
Newsgroups: comp.unix.questions
From: pnarayan@cs.tamu.edu (P S Narayan)
Subject: Disk info
Organization: Computer Science Department, Texas A&M University
Distribution: usa
Date: Mon, 12 Oct 1992 19:48:48 GMT

I have a disk sd1 with 300 cylinders. There are two partitions defined during
formatting
"a" 100 cylinders
"b" 200 cylinders

SUN's dklabel.h says that Sun SMD disk label resides in cylinder 0, head 0,
sector 0. This disk label describes the static parameters of the disk.

If I want to access partition "a" of my disk as a raw disk, then does it
mean that I can start writing data only from cylinder 0 head 0 sector 1. 
More clearly what is the exact sector number begining which I can write data
to a partition ?

Thanks 
Narayan
pnarayan@cs.tamu.edu
From: mccall@mksol.dseg.ti.com (fred j mccall 575-3539)
Newsgroups: comp.unix.questions
Subject: Re: IS UNIX DEAD?
Date: 15 Oct 92 19:30:14 GMT
Article-I.D.: mksol.1992Oct15.193014.29917
Organization: Texas Instruments Inc

In <17771@autodesk.COM> dansmith@Autodesk.COM (Daniel Smith) writes:

>In <1992Oct9.174953.8806@aee.aee.com> gene@aee.aee.com (Gene Kochanowsky) writes:

>> fr@compu.com (Fred Rump from home) writes:
>> 	Camon guys! This sort of discussion is nonsense. The more people that 
>> 	use computers, the more ways computers will be used. One size does not 
>> 	fit all, and never will. Unix, in some form or another, will be around 
>> 	for some time to come, so will WindowsNT, DOS, MacOS, and so on. From 
>> 	what I understand there are still die hard CPM users out there. I
>> 	strongly suspect that the operating system of the future will be none
>> 	of these, but something completely different.

>	Working off your point, consider this:

>	Do you see as much infighting in the DOS community as Unix? (OS-wise)

One significant vendor who controls the market.  And then if you spend
any time in someplace like comp.os.os2.advocacy, you'll see that all
isn't love and kisses in the 'DOS' world, either.

>	Do you see as much infighting in the Mac community as Unix? (OS-wise)

A single vendor who controls the market.

>	Do you see as much infighting in the CP/M community as Unix? (OS-wise)

The what?

>	Do you see as much infighting in the Amiga community as Unix? (OS-wise)

A single vendor who controls the market.

>	See, that's what I'm getting at.  Unix has become (ha! always was!) this
>big elephant which looks different from every side.  I look at the BSD front foot
>and say "ha! all elephants have fast find!", but the person looking at the SYS V
>front foot sees something else.   Hmm, silly example.

>	My original point was that when I look at any other OS community, I don't
>see the same sort of rifts.  I think that works more against the Unix community than
>for it.  I just hope the OS vendors get their act together in time.

In other words, there isn't a single vendor who controls the market.
This is generally considered a Good Thing (tm).


-- 
"Insisting on perfect safety is for people who don't have the balls to live
 in the real world."   -- Mary Shafer, NASA Ames Dryden
------------------------------------------------------------------------------
Fred.McCall@dseg.ti.com - I don't speak for others and they don't speak for me.
From: czim@plato.cns.caltech.edu (Chris Ziomkowski)
Newsgroups: comp.unix.questions
Subject: Need info on ppp connection through a 56K line
Date: 17 Oct 1992 04:11:46 GMT
Organization: caltech
Distribution: world
NNTP-Posting-Host: plato.cns.caltech.edu

I was wondering if any one had experience with connecting two systems
via a 56K lease line. I have a sparc IPC, and someone once told me that
the 8 pin serial port was not sufficient to for many protocols. Has anyone
actually connected two suns using a 56K line, what problems should I expect
when doing this (I'm planning on using ppp right now, but am open to
suggestions.) Is there any data compression hardware that exists to increase
the bandwidth of a 56K line, and if so how much does it cost. I'm really
not quite certain what I might be getting myself into, so any and all
information would be greatly appreciated.

Thanks in advance for any help,

Chris.

-- 
---------------------------------------------------__-----------------------
 Chris Ziomkowski                                 /  |
 Software Consultant                              |  |           _______
                                              |___|  |____/-|   /  |
 czim@cns.caltech.edu - ---- ---- ---- ---- - *|__|  |____----  \_/
                                              |   |  |    \-|
 "Flying is more fun anyway"                      |  |          --------
                                                  \__|
----------------------------------------------------------------------------
Newsgroups: comp.unix.questions
From: mosemann@unlinfo.unl.edu (Russell Mosemann)
Subject: tset when term=vt300? (rephrased repost)
Summary: How do you get tset to offer vt100 as default for all unknown types?
Keywords: tset unknown default vt100
Reply-To: mosemann@unl.edu
Organization: University of Nebraska - Lincoln
Date: Sun, 11 Oct 1992 23:12:04 GMT

   I think I was misleading about what I was looking for in my original
post, so I will try to explain it better in this repost.  All of the
connections made to our Sun SPARC 2 will be through the network, except
for the console.  I would like tset to quietly go about its business and
set the terminals when they are something like a sun, vt100, vt200,
xterms, hp19, etc.  That part works fine.
   However, when the type is not known (i.e. not in termcap/info), I'd
like tset to offer to set the terminal to a vt100 for the user, not to
unknown.
   A thought that just came to me that might work is to let tset go
ahead and ask its question.  If the user just pressed <return>, the
terminal type would be unknown and then I could set it to vt100.  How
about something like this?

set noglob
eval `tset -sQ`
set glob
set noglob
eval `tset -sQ -m 'unknown:vt100'`
set glob

--
Russell
mosemann@unl.edu
Newsgroups: comp.unix.questions
From: listl@Informatik.TU-Muenchen.DE (Andreas Listl)
Subject: Interprocess Communication
Keywords: sockets, RPC
Originator: listl@sunbayer28.informatik.tu-muenchen.de
Organization: Technische Universitaet Muenchen, Germany
Date: Wed, 14 Oct 1992 16:31:13 GMT


Hello,

who can tell me something about the interprocess communication in
UNIX (especially SunOS Release 4.1). I'm interested in the differences
between socket-communication, RPC-Calls and others (which I don't no
yet).

Please e-mail your answers to me.


Thanks,
   Andy.

------------------------------------------------------------------------
Andreas Listl
Institut fuer Informatik		     TTTTTTT  U     U  MM   MM
TU Muenchen   				        T     U     U  M M M M
Orleansstr. 34   			        T     U     U  M  M  M
D-8000 Muenchen 80   			        T     U     U  M     M
Tel. ++89/48095-199	   		        T     U     U  M     M
		   			        T      UUUUU   M     M
e-mail: listl@informatik.tu-muenchen.de
------------------------------------------------------------------------
- The best thing about growing older is that it takes such a long time -
Newsgroups: comp.unix.questions
From: rayj@Celestial.COM (Ray Jones)
Subject: Re: IS UNIX DEAD?
Organization: Celestial Software, Mercer Island, WA
Date: Sat, 10 Oct 1992 19:01:25 GMT

In <1992Oct8.124810.16164@maths.tcd.ie> robb@maths.tcd.ie (Robert Bashford) writes:

>dansmith@Autodesk.COM (Daniel Smith) writes:
>>act together.  I'm going to slant my future learning efforts towards NT.

>>     Daniel Smith, Autodesk, Sausalito, California, (415) 332-2344 x 2580

>pardon me for asking but WTF is NT?

Windows NT is Microsoft's next cure for all the world's ills.
From what I understand, it is UNIX made brain dead so that it is single
user.  However they use the Mach kernel so they won't have to pay the
AT&T lic. fee.
-- 
Onager Systems			 Ray A. Jones
18710 NE 59th Ct.		UUCP .....uunet!camco!onager!ray
# 2053       			...ray@onager.Celestial.COM
Redmond, WA 98052               206-885-3568 
Newsgroups: comp.unix.questions
From: mkwan@esk.compserv.utas.edu.au (Michael C. KWAN)
Subject: copying a file without login 
Organization: University of Tasmania at Launceston
Date: Sun, 11 Oct 92 05:52:50 GMT

	Can I copy a file from another account (under same host) without using
ftp, rlogin (rhosts) ?  If I know the password of that account.

	Thanks in advance.


						Michael 
Newsgroups: comp.unix.questions,comp.unix.misc
From: pk@cs.few.eur.nl (Paul Kranenburg)
Subject: Re: Profiling on shared library..
Reply-To: pk@cs.few.eur.nl
Organization: Erasmus University Rotterdam
Date: Fri, 16 Oct 1992 09:21:24 GMT

In <1b4cogINNor2@early-bird.think.com> barmar@think.com (Barry Margolin) writes:

>In article <1992Oct8.233515.11488@mdd.comm.mot.com> pchan@mdd.comm.mot.com (Pat Chan) writes:
>>I'm trying to do profiling (Sun profile) on my program.
>>The ld chokes when it's a shared library.

>Sun doesn't ship shared versions of the profiling libraries; i.e. there are
>no /usr/lib/lib*_p.so.* files, only lib*_p.a.  Use -Bstatic when linking
>for profiling.
>-- 

I once did my own startup modules (crt0.0 & gcrt0.o) which understand
shared libraries. The profiling routines (monstartup, mcount, ...) are
from BSD (gmon.c). One of the intensions of this experiment was to collect
statistics on (page) access to the mapped shared libraries. This never
worked out for the reasons below.

With this gcrt0.o, you will get profile records of your own code, ie.
between the the end of crt0 and _etext. However, this might be of limited
value because: (1) Non of the (shared) library routines calls `mcount()',
so you miss their call graph patterns, and (2) the profiling buffer computed
by `monstartup()' does not cover the address range occupied by the shared
libraries since they are generally mapped at the top of a process's address
space, so you miss their samples as well. In any case, setting up profiling
in such a way that it covers these ranges, would either result in an enourmous
profiling buffer or in poor profiling granularity. Also, `gprof' will have to
be teached about shared libs.

If anyone is interested in the code, despite the above deficiences, I'll dust
it off and make it available somewhere.

-pk
From: tmilner@hprpcd.rose.hp.com (Tom Milner)
Date: Mon, 12 Oct 1992 17:13:05 GMT
Subject: Re: BEGINNER Q.: redirection and awk?
Organization: Performance Technology Center, Roseville
Newsgroups: comp.unix.questions

In comp.unix.questions, dcullen@eng.clemson.edu (david cullen) writes:

|    I hate asking this, but i've forgotten how to do it in unix.
|
|    How can I get my working directory to show up in my prompt?

I like the following (ksh syntax):

    PS1="[!] \${PWD##*/}: "
                                  _____________________________________
                                 /_______________  ___________________/
                                                / /
                                               / /
                                              / / Tom Milner (Tn: 785-5637)
                                             / /  HP Performance Tech Center
                                            / /   tom@hpptc44.rose.hp.com
                                           /_/    __________________________
From: NUNEZ@esevvx.cica.es (REGI's)
Newsgroups: comp.unix.questions
Subject: (none)
Date: 15 Oct 92 15:00:20 GMT

>X-Envelope-to: info-unix@BRL.mil
>X-VMS-To: IN::"info-unix@BRL.MIL"

1
15-OCT-1992 10:05:17.60
   1 00:00:00.00
16-OCT-1992 10:05:17.60
info-unix-request@sem.brl.mil
rafapa@obelix.cica.es

Received: from SEM.BRL.MIL by ESEVVX.CICA.ES ; 12-OCT-1992 10:05:14.15
Received: from SEM.BRL.MIL by SEM.BRL.MIL id aa13434; 12 Oct 92 3:46 EDT
Received: from wharf.brl.mil by SEM.BRL.MIL id aa13425; 12 Oct 92 3:34 EDT
Received: from relay.iunet.it by WHARF.BRL.MIL id aa06572; 12 Oct 92 3:28 EDT
Received: from jrc.UUCP by relay.iunet.it with UUCP
	(5.61++/IDA-1.2.8) id AA02233; Mon, 12 Oct 92 08:29:41 +0100
Received: from iss.isei.jrc.it (is) by jrc.it; Mon, 12 Oct 92 08:12:53 +0100
From: Martyn Dowell <martyn.dowell@cen.jrc.it>
Date: Mon, 12 Oct 92 08:14:35 +0100
Message-Id: <9754.9210120714@iss.isei.jrc.it>
To: info-unix@BRL.MIL
Subject: Unsubscribe

unsubscribe me please
m_dowell@jrc.it
Newsgroups: comp.unix.questions
From: kalyani@jpl-devvax.jpl.nasa.gov (Kalyani Rengarajan)
Subject: conversion of 9t tape of variable record length file to disk
Organization: Jet Propulsion Laboratory (NASA)
Date: Thu, 15 Oct 1992 06:11:22 GMT


	We have a lot of 9 track and 7track tapes created on different 
machines about 50 years back(!). The files have variable length records.
The length information may not be a part of the record. I need to convert
 these to optical media. I understand that there is a utility in VMS 
(CONVERT/FDL) that reads such a tape and creates a record with a 2 byte
length field and the input record to the disk. Are there any UNIX utilities
that do the same or similar function.
	Thanks for your help.

Newsgroups: comp.unix.questions
From: park@m.cs.uiuc.edu (Young-Tack Park)
Subject: the tip command
Summary: how to transfer binary files using the tip command
Keywords: the tip command
Organization: University of Illinois, Dept. of Comp. Sci., Urbana, IL
Distribution: comp.unix.questions
Date: Tue, 13 Oct 1992 08:32:29 GMT

Hi

I am trying to transfer binary files using 
the tip command but fail to do that.


I would be appreciated if anyone lets 
me know how to set variables for 
transfering binary files.

Young-Tack Park
park@cs.uiuc.edu
ytpark@cosmos.kaist.ac.kr

Newsgroups: comp.unix.questions