HDTenEightyP/NetNews huggingface dataset:
From: sp_pm@space.alcbel.be (Paul Moore)
Newsgroups: comp.unix.questions
Subject: Index of newsgroups wanted, please
Date: 1 Sep 92 15:49:00 GMT
X-Received: by usenet.pa.dec.com; id AA14971; Tue, 1 Sep 92 10:51:55 -0700
X-Received: by inet-gw-1.pa.dec.com; id AA02201; Tue, 1 Sep 92 10:51:17 -0700
X-Received: from ub4b.buug.be by mcsun.EU.net with SMTPid AA28101 (5.65b/CWI-2.174); Tue, 1 Sep 1992 19:51:07 +0200
X-Received: from alcbel.UUCP by ub4b.buug.be (5.65c/ub4b_02)id AA03606; Tue, 1 Sep 1992 19:50:28 +0200
X-Received: from se.alcbel.be by alcbel.be (4.1/SMI-4.1)id AA24063; Tue, 1 Sep 92 17:46:11 +0200
X-Received: by se.alcbel.be (5.57/SE_03)id AA23655; Tue, 1 Sep 92 17:49:38 +0200
X-Received: from btmpj9.space by space.alcbel.be (4.1/SMI-4.0)id AA06388; Tue, 1 Sep 92 17:49:00 +0200
X-To: comp.unix.questions.usenet

Hello,

I've recently lost my direct News feed, so I now rely on email-based contact.
Can some kind soul please send me a list of the newsgroups, so that I know
the correct news group to post to in future ;<).

Thanks, Paul

Email: sp_pm@space.alcbel.be
Newsgroups: comp.unix.questions,biz.sco.general
From: kgermann@zeos.com (Ken Germann)
Subject: Error..
Organization: Zeos International, Ltd
Date: Tue, 01 Sep 1992 14:00:59 GMT


I am getting a CONFIG: FALLOC ERROR ... (NFILE=200). I am not sure
what program is reporting the error. We are running a list server.
I am not sure whether the OS, List Server or MMDF is reporting this
error. Any assistance with this would be appreciated.
-- 
       	     
Ken Germann		ZEOS International, Ltd.  
Technical Support				support@zeos.com.
Operating Systems Group.			os@zeos.com	
Newsgroups: comp.unix.questions
From: buboo@alf.uib.no (Ove Ruben R Olsen)
Subject: Re: how come : ! out of vi always uses sh instead of $SHELL ???
Organization: University of Bergen, Norway
Date: Wed, 26 Aug 92 23:39:50 GMT

John R. Vanderpool writes:
>whenever i :! out of vi it uses /bin/sh instead of $SHELL
>so all of my aliases are lost, etc and makes it very limited
>
>i'm just beginning to see just how powerful vi really is but
>this one is screwing me up royally  

In your ~/.exrc file you could have the following:

set shell=/your/favorite/shell

For more information about VI, connect to your nearest VI/EX archive.
At the moment the archives contains
      90 files containing VI/EX docs/help/tutorials/tips/info.
      51 files containing macros.

The VI/EX archives can be found at:

Europe:
   Main site:     alf.uib.no (129.177.30.3)
   Filearea:      pub/lpf/misc
   Peak hours:    07.00 am GMT to 03.00 pm GMT 

Japan:
   Mirror site:   utsun.s.u-tokyo.ac.jp (133.11.11.11) 
   Filearea:      misc/vi-archive
   Peak hours:    01.00 am GMT to 09.00 am GMT

USA, Canada and Mexico: 
   Mirror site:   cs.uwp.edu (131.210.1.4)
   Filearea:      /pub/vi
   Peak hours:    None.            

Australia, NZ and the rest Down Under:
   Main site:     monu6.cc.monash.edu.au (130.194.1.106)
   Filearea:      /pub/Vi
   Peak hours:    Not relevent


For more information about the files at the archives and the archives 
itself, please read one of the FAQ for Comp.Editors.
If you are in a hurry you may fetch the INDEX file.

If you need more information, you are welcome to mail Ruben@uib.no.

\Ruben.


-- 
        Ove Ruben R Olsen a Gnarfer and VI user. EMAIL: ruben@uib.no. 
     Maintaining the EX/VI-archive and a couple of the Comp.Editors FAQs.
    People that are ignorant tend to live a frustrated life, at least when 
     it comes to editing - But I do belive this is a general rule in life
From: roxy@beaune.NoSubdomain.NoDomain (Roland Buresund)
Newsgroups: comp.unix.questions
Subject: Re: TROFF-like program with support for swedish-characters
Date: 26 Aug 92 07:51:07 GMT
Reply-To: r.buresund@frec.bull.fr
Followup-To: comp.unix.questions
Organization: Groupe Bull

In article <1992Aug12.121620.25911@eua.ericsson.se>, euabim@eua.ericsson.se (Bimal Dey) writes:
> I tried to postprocess files generated by Oracle's
> SQL*ReportWriter with troff. After a while, I gave up
> the idea using troff, cause it was unable to process 
> swedish-characters.
> 
> I read the manual page for troff and found out that troff
> was not 8-bit ASCII clean. Now the question is : 
> Is there any alternative way to format documents with same
> ease as troff without making swedish characters obsolete?
> 
> Any ideas/advices/suggestions would be greatly appreciated.
> Please email your response.
> 
> Thanks in advance.
> 
> -- Bimal Dey

A simple solution which probably could be costly:
	buy a machine that has ditroff implemented
	(like all Bull machines after 1988, and Yes, I work for Bull)

A harder solution (in terms of manpower) is to get groff from GNU and 
compile it (you need a C++ compiler). It manages to handle all of
8859-1 after some tweaking (I can give you the tweaking if you decide
to go ahead).

Regards

Roland B.
----
    +---------------------------------------------------------+
    |     Roland Buresund, Security & Verification            |
    |            Pegasus Project, Bull S.A. France            |
+---+------------------------------+--------------------------+---+
| E-mail: roxy@beaune.frec.bull.fr | Adress:                      |
|            - or -                | Bull S.A.                    |
| r.buresund@xopen.co.uk           |                              |
|            - or -                | 1 Rue de Provence            |
| R.Buresund@frec.bull.fr          | B.P. 208                     |
|                                  | 38432 ECHIROLLES CEDEX       |        
| Voice: +33 76 39 77 52           | France                       |
| Fax:   +33 76 39 76 00           |                              |
+----------------------------------+------------------------------+
From: pape@plato.chemietechnik.uni-dortmund.de (David Pape)
Newsgroups: comp.unix.questions
Subject: makefile with multiple dirs
Keywords: make,makefile
Date: 3 Sep 92 13:59:02 GMT


        Heres my (highly simplified) project directory setup:

proto:  makefile, resultant executable

proto/x:        x.c, x.h, x.o
proto/y:        y.c, y.h, y.o

How can I run "make" in the "proto" dir, and have it put "x.o" and
"y.o" in the correct directories? I also want to be able to run
"makedepend" from the makefile in "proto" so that it creates the
dependencies correctly, i.e:

# DO NOT DELETE THIS LINE -- make depend depends on it.

proto/x/x.o: proto/x/x.h
proto/y/y.o: proto/y/y.h

Even when I have
---------------------------------
X_PATH = proto/x

depend:
        makedepend $(X_PATH)/x.c
---------------------------------
in my makefile, I always get

x.o: proto/x/x.h        #notice missing path

Any helpful hints out there??

--
David Pape				 | "Justice is inci- | 	       ///
pape@plato.Chemietechnik.Uni-Dortmund.DE |  dental to law    | 	\\\ UNI_DO
Dortmund, Germany			 |  and order"       | 	 \\\///
tel: 49 231 7552682			 | - J. Edgar Hoover | 	  \\//
Newsgroups: comp.unix.questions,comp.unix.programmer
From: umnoor@ccu.umanitoba.ca (Nasir Ahmed Noor)
Subject: ``Sort'' Problem
Followup-To: poster
Organization: University of Manitoba, Winnipeg, Canada
Date: Sun, 23 Aug 1992 20:55:31 GMT


Hi,
I am trying to sort following lines (this is an example)
      
        the value of this line is 1
        the value of this line is 2
        the value of this line is 10
        the value of this line is 40
        the value of this line is 6

I want result to be like:

        the value of this line is 1
        the value of this line is 2
        the value of this line is 6
        the value of this line is 10
        the value of this line is 40

The ``sort'' give me result like:

        the value of this line is 1
        the value of this line is 10
        the value of this line is 2
        the value of this line is 40
        the value of this line is 6

Any solutions?
Would appreciate your help.

thanks in advance.

--nasir
umnoor@ccu.umanitoba.ca
Newsgroups: comp.unix.questions
From: bill@Celestial.COM (Bill Campbell)
Subject: Re: need script to rename uppercase filenames
Organization: Celestial Software, Mercer Island, WA
Date: Thu, 03 Sep 1992 15:12:45 GMT
Keywords: script,tar,msdos

In <699@svcs1.UUCP> slix@svcs1.UUCP (Bill Miller) writes:

>Hi, everyone.

>I'm fairly new to unix, and I need a script or procedure to do the following:
> 
>I have some source code in DOS (many separate files) that I tarred under
>DOS and untarred under 386BSD.  The big problem is that all the files
>came through in UPPERCASE and I need a script to mv (rename) them all
>to lowercase quickly.
> 
>Since they're in DOS text format, I realize I also need to strip the 
>extra carriage returns on each line.  I've been successful in doing this
>with:
> 
>  cat (file) | tr -d '\015' > (newfile)
> 
>It would be nice to combine both of these so that I could rename the
>files to uppercase and strip the extra newlines all in one fell swoop
>instead of doing it one file at a time.

A simple perl solution (needs more error checking):

for $dos ( @ARGV ) {
    ( $unix = $dos ) =~ tr/A-Z/a-z/;    # convert to lower case
    if ( -f $unix ) {
        print STDERR "Cannot convert $dos -- $unix exists\n";
        next;
    }
    open(DOS, $dos);
    open(UNIX, "> $unix");
    while (<DOS>) {
        s/\s+$//;   # strip all trailing whitespace including ^M
        print UNIX;
    }
    close(DOS);
    unlink($dos); # remove old dos file
    close(UNIX);
}
-- 
INTERNET:  bill@Celestial.COM   Bill Campbell; Celestial Software
UUCP:   ...!thebes!camco!bill   6641 East Mercer Way
             uunet!camco!bill   Mercer Island, WA 98040; (206) 947-5591
SPEED COSTS MONEY -- HOW FAST DO YOU WANT TO GO?
From: idall@augean.eleceng.adelaide.edu.AU (Ian Dall)
Newsgroups: comp.unix.questions
Subject: Re: Questions About Unix
Date: 28 Aug 92 01:49:38 GMT
Organization: Electrical and Electronic Eng., University of Adelaide

In article <2749@nlsun1.oracle.nl> jhelberg@nl.oracle.com (Joost Helberg) writes:
>bsuresh@cs.ucsd.edu (Suresh Bollapragada) writes:
>: Hi,
>: 
>:  I have a couple of questions about Unix. 
>: 
>: 1. can a program crash the processor on which it is running ? if so how?.
>
>No, it shouldn't be capable to do so.

There are heaps of ways for a uid 0 process to crash a system (the
original poser said that root access could be assumed). What are you
trying to achieve? About the only productive reason I can think for
wanting to do this are to test crash dump analysers. In that case, you
want it to crash in such a way that it *does* produce a crash dump.

The two methods which come to mind immediately (and I really can't imagine
anyone doing kernel work not being able to think of these for them selves)
are writing to /dev/kmem or /dev/mem and writing to the swap space.

-- 
 Ian Dall           life (n). A sexually transmitted disease which afflicts
                              some people more severely than others.
   ACSnet: idall@augean.oz
 Internet: idall@augean.oz.au
From: sm86+@andrew.cmu.edu (Stefan Monnier)
Newsgroups: comp.unix.questions
Subject: just some information
Date: 25 Aug 92 14:36:52 GMT
Organization: Carnegie Mellon, Pittsburgh, PA


Since a few weeks I have access to a DECstation 3100 instead of a
SPARCstation 2.

I'm surprised of the speed difference.

Here is the question: what is in my DEC ?
is it a MIPS R2000 or R3000 ? at what clock speed ?

That'all I'd like to know !

Stefan Monnier


-----------------------------------------------------
-- On the average, people seem to be acting normal --
-----------------------------------------------------
From: 6500scv1@ucsbuxa.ucsb.edu (Steven C. Velasco)
Newsgroups: comp.unix.questions
Subject: Awk: Beginner needs help!
Keywords: awk unix
Date: 3 Sep 92 19:32:05 GMT
Distribution: comp.unix.questions


HI,
I am new to unix, and really new to awk, so hopefully somebody can
answer this question real easily.  I have hundreds of SAS program
files written for MVS, that we now need to run on UNIX.  
The files from MVS look like this :

COMMAND? list unnumbered
//MVS JCL statements
//MVS JCL statements
//MVS JCL statements
DATA _NULL_ ;
   SET SASLIB.DATASET ;
MORE SAS STATEMENTS
RUN ;

I can get awk to print out the lines that don't contain the string  "//"
or "COMMAND?" in $1, but I would like to have
something that replaces the entire line  "COMMAND? list unnumbered"
(this is always the first line, and occurs just once) 
with the string: "libname saslib /usr2/username/datasets"  or, to 
somehow put the "libname" string in the first line of each file.
So the resulting file would look like this:

libname saslib '/usr2/username/datasets' ;
DATA _NULL_ ;
   SET SASLIB.DATASET ;
MORE SAS STATEMENTS ;
RUN ;

below is my feeble attempt to do this.  When I run this program, I
get a message saying something like 'awk: cant set $0 at record 1':

$1 !~ /\/\// { if ( $0 ~ /COMMAND? list unnumbered/ ) 
$0 = "libname saslib /usr2/username/datasets ;" 
print >FILENAME }  

What am I doing wrong?  I would appreciate any help or suggestions.

Steven C. Velasco
6500scv1@ucsbuxa.ucsb.edu  -OR-
velasco@alishaw.ucsb.edu
Newsgroups: comp.unix.questions
From: navarra@casbah.acns.nwu.edu (John Navarra)
Subject: Passing control to user in nawk script
Organization: Northwestern University, Evanston Illinois.
Date: Sat, 29 Aug 1992 06:25:11 GMT


I have the following lines in a nawk script:
BEGIN {
if ( !system("test -r outline")) {
          printf "outline exists. Overwrite? "
          getline <"-"
          response=$0
          print response
       }
}

$0 ~ /^[Nn]|NO|no|No|$/ {exit}

FNR==1,FNR==2 {
      print FILENAME, $0 >"outline"
}' $* 


	I look in the BEGIN script if the file 'outline' exists and if
it does I want to ask the user if he wants to overwrite the file. The
problem is that I pass all the shell args to the script when I invoke
it. I would like to regain control of the execution of the script if
the file outline exists (i.e. response y or n to overwriting) THEN 
pass all the shell args to nawk. Is there an easy way to do this? 
Have I made myself clear?

it should do something like
$ program file1 file2 .. fileN
outline exists. Overwrite? y

put put ... results. 

or
$ program file1 file2 .. fileN
put put ... results.

I *need* to do the test from within the nawk script -- not from within
the shell script.

-tms
 
-- 
You can get further with a kind word | You can get further with a kind word
and a gun than a kind word alone.    | and a phaser than a kind word and a gun.
          --al capone                |           -- John Navarra
=======From the Lab of the MaD ScIenTIst....navarra@casbah.acns.nwu.edu========
Newsgroups: comp.unix.questions
From: aps583@huxley.anu.edu.au (Anthony P Scott)
Subject: AWK and arrays
Originator: aps583@huxley
Organization: Australian National University
Date: Fri, 4 Sep 92 03:07:33 GMT

Suppose I want to read a bunch of letters one to a line
and output the position in the alphabet that they occupy.

ie

a
b
c
d
e

would be output as

1
2
3
4
5

etc.

One way I visualized doing this is to write an array called alph[letter]
such as:

alph[a] =1
alph[b] = 2
alph[c] = 3
...

...
alph[z] = 26

and then read the lines of text as another array called charact[NR]

ie

{
charact[NR] = $1
}

and the use the charact array to subscript the alph array ie

{ for (i=1; i<=NR; i++) {
char_num[i] = alph[charact[i]] }
}

This doesn't work. Can anyone point me in the right direction

Another way I thought of doing the job was to get the subscript number of
an array item.
 Something like:
 
for (charact[i] in alph) {
    print alph[i]
}

This doesn't work either.

I hope this is not a silly question.

Regards 

Tony Scott
Newsgroups: comp.unix.questions
From: ratner@ficus.cs.ucla.edu (David Ratner)
Subject: Re: logout message
Organization: UCLA, Computer Science Department
Date: 27 Aug 92 01:02:04 GMT

hongman@cathedral.cerc.wvu.wvnet.edu (Guo Hongman) writes:


> Can anyone tell how to display some message when I logout?

Put the commands in your .logout file.

Dave
--
* *  ***  *     *    |   Dave "Van Damme" Ratner
* *  *    *    * *  / \  ratner@cs.ucla.edu
* *  *    *    ***  \ /  
***  ***  ***  * *   |   "Wham Bam, thank you Van Damme!"
From: erude@casbah.acns.nwu.edu (Erick Rudiak)
Newsgroups: comp.unix.questions
Subject: Re: I want a program that prints out base gid's of any user
Date: 28 Aug 92 14:22:43 GMT
Organization: Northwestern University, Evanston, Illinois

|> >In comp.unix.questions, bzg52408@uxa.cso.uiuc.edu (Benjamin Z. Goldsteen) writes:
>|       I have been trying to write a program that prints out the
>|    base gid of a user (given on the command line).  I have tried
>|    using awk and perl, but I can not get anything decent.

	Assuming you give the user name on the command line, such as 

	% getgroup username

you could do something as easy as:

#! /bin/sh
#
#  Script to generate group id for user from /etc/password file

GROUPID=`grep $1 /etc/passwd | cut -d: -f4`
echo "The group id for $1 is: " $GROUPID


	What this does is look for the user's entry in /etc/passwd.  You might
want to put something in there to look for only that user specifically, because
their password entry might be a string that is contained in someone *else*'s 
entry as well.  Just save the above script as getgroup and you're set.

-- Erick
_____________________________________________________________________
                                                | 
I tell myself, hey, only fools rush in          | Erick Rudiak
Only time will tell if we stand the test of time| erude@nwu.edu
And all I know, you've got to run to win        |____________________
And I'll be damned if I get hung up on the line | "I'm not worthy..."
                                                |      \o/      \o/
    -- Van Halen, "Why Can't This Be Love"      | O__   \\  O__  \\
________________________________________________|_/__|__||__/__|_||__
Newsgroups: comp.unix.questions
From: iwsbarke@acs.ucalgary.ca (I W Scott Barker)
Subject: Re: How can I allow access to a subdirectory without risking other files?
Date: Wed, 26 Aug 92 16:53:08 GMT
Reply-To: barker@enel.ucalgary.ca
Organization: The University of Calgary, Alberta, Canada
X-Newsreader: Tin 1.1 PL5

It seems that my original post wasn't clear enough, so I'll try to rephrase:

I know how to give group/other access to a subdirectory without risking my
other files, however, I want people to be able to read/write to ANY file in
the subdirectory. That includes files put there by other people. The only way
I know of to do this is to make sure that everyone has their umask set to 000
when they are working in that subdirectory. I am looking for a better
solution, where I don't have to rely on them setting their umask correctly.
The only way I know of to do that, is to set their effective user id to me
when they are in that subdirectory, manipulating files. What I need to know 
is how to do that safely. Or, if anyone has another suggestion on how to do
this, that would be good too.

Then again, it may just be impossible. If anyone can help, I would appreciate
it.

--
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: chris@ctmnix.UUCP (Chris Matthews)
Newsgroups: comp.unix.questions
Subject: Re: A question on ls
Date: 1 Sep 92 01:37:38 GMT
Reply-To: chris@ctmnix.UUCP (Chris Matthews)
Distribution: na
Organization: Underground Nixbox Creations

In article <1992Aug29.233534.27967@umbc3.umbc.edu> rouben@math9.math.umbc.edu (Rouben Rostamian) writes:
>>In article <6786@tekig7.PEN.TEK.COM> naren@tekig5.pen.tek.com (Naren Bala) writes:
>>>If I type
>>>% ls *.Z 
>>>All files with .Z extension are displayed.
>>>
>>>What command would I type to display all files that do not have a .Z 
>>>extension ?
>>
>>
>>--

How about:
find ./ -print | egrep -v "Z" 

or
find ./ -print | egrep -v "z"

Should work in all shells.

Tested in SCO 3.2.2.
Chris
Genisys Corp.
Mon Aug 31 21:09:06 EDT 1992
=-=-
=-=-
=-=-


Newsgroups: comp.unix.questions
From: s902113@minyos.xx.rmit.oz.au (Luke Mewburn)
Subject: evaluation of shell stuff in Makefiles
Organization: RMIT Computer Centre, Melbourne Australia.
Date: Thu, 3 Sep 1992 01:42:48 EST


I have this slight problem with a Makefile. I have a shell expression
which I use to extract the version number of the program from a header
file, but make evaluates this expression everywhere the variable is
used, which slows things down a bit... Is there a way I can get make
to evaluate it once???

An extract of the makefile is below. The output of make tar is something
like: (wrapped for clarity)

--
	mkdir flon-`/bin/sed -ne 's/.*VERSION."\(.*\)".*/\1/p;/VERSION/q'
lon.h`
	cp Makefile lon.h getfile.c main.c init.c print.c flon.nro
Installation eg.friends tags Notes flon-`/bin/sed -ne
's/.*VERSION."\(.*\)".*/\1/p;/VERSION/q' lon.h`
	tar -cf flon-`/bin/sed -ne 's/.*VERSION."\(.*\)".*/\1/p;/VERSION/q'
lon.h`.tar flon-`/bin/sed -ne 's/.*VERSION."\(.*\)".*/\1/p;/VERSION/q' lon.h`
	compress flon-`/bin/sed -ne 's/.*VERSION."\(.*\)".*/\1/p;/VERSION/q'
lon.h`.tar
	rm -rf flon-`/bin/sed -ne 's/.*VERSION."\(.*\)".*/\1/p;/VERSION/q'
lon.h`
--

As you can see, this would be slow (and messy too :). So, any suggestions
how to clean this up?


Thanx in advance,
Luke.


-- extract from Makefile --
#[...]

#
# Version number
#
VERSION=`/bin/sed -ne 's/.*VERSION."\(.*\)".*/\1/p;/VERSION/q' lon.h`

#
# Executable name
#
EXEC=flon

#
# Archive name
#
ARCNAM=$(EXEC)-$(VERSION)

# [...] 
tar:
	mkdir $(ARCNAM)
	cp $(ALLF) $(ARCNAM)
	tar -cf $(ARCNAM).tar $(ARCNAM)
	compress $(ARCNAM).tar
	rm -rf $(ARCNAM)

shar:
	mkdir $(ARCNAM)
	cp $(ALLF) $(ARCNAM)
	shar $(ARCNAM) > $(ARCNAM).shar
	rm -rf $(ARCNAM)
-- end extract --
From: sgr@alden.UUCP (Stan Ryckman)
Newsgroups: comp.unix.questions
Subject: Re: how come : ! out of vi always uses sh instead of $SHELL ???
Date: 28 Aug 92 15:11:05 GMT
Organization: Alden Electronics, Westboro, MA

In article <1992Aug27.232756.17980@pbhya.PacBell.COM> dbsuthe@PacBell.COM (Daniel B. Suthers) writes:
>Now, to address the complaint: Aliases are lost because aliases are not
>passed to child processes.  This applies to Bourne and KSH.  I don't
>know about CSH.

It's true for csh and tcsh too.

>My solution is to have all of my aliased commands backed up as shell
>commands.  This allows a reasonable environment whether in a subshell or
>not.

AAACK!

Much simpler (for {,t}csh anyway): put aliases in ~/.{,t}cshrc, which
is executed upon startup of each subshell.  If you have them in your
.login, they will not take effect when you run a subshell (including
scripts).

By the way, if you use csh scripts (ugh! no flames please), start
each with "unalias *" so that any commands in it will do what
is expected, and not what some user's alias does.
--
One little, two little, three little Endians
Four little, five little, six little Endians...
    Stan Ryckman   sgr@alden.UUCP