HDTenEightyP/NetNews huggingface dataset:
From: rayj@Celestial.COM (Ray Jones)
Newsgroups: comp.unix.questions
Subject: Re: "vi" questions...
Keywords: vi/UNIX
Date: 26 Sep 92 16:42:58 GMT
Organization: Celestial Software, Mercer Island, WA

In <bibhas.717441366@femto.engr.mun.ca> bibhas@pico.engr.mun.ca (Bibhas Bhattacharya) writes:

>Two questions regarding vi:
>1) I find the line wrapping extremely awkward when something is added onto
>a line in the middle of it. For a multi-row line cursor movement becomes
>painful; if you know what I mean.

Use the "warp margin" option of "vi" and it will automaticaly put in the
new line at the end of the line.

>2) When you write lines of codes to go inside a loop they should have certain
>number of tabs to start with. Is it possible to auto insert these tabs to
>the successive lines? I have a dos editor that does that, saves a lot of
>energy;-)

Use the "auto indent" option here.

>Is there any option or command or something to take care of these
>problems.
Either add to or create a file in your home directory named ".exrc" and
put these lines at the top of the file (no blank lines allowed)
set autoindent
set wrapmargin=8
set showmode

That last line, "set showmode" will cause vi to show which mode it is in
with a status line in the bottom right corner of the screen.
-- 
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
From: clin@eng.umd.edu (Charles Lin)
Newsgroups: comp.unix.questions
Subject: Re: AWK or PERL: which is better?
Date: 5 Oct 92 02:57:47 GMT
Organization: College of Engineering, University of Maryland, College Park
Originator: clin@state.eng.umd.edu


In article <mjr.718068524@ursa>, mjr@ursa.calvin.edu (Matt Ranney) writes:
>
>>I'd like to see a law that no man entry may exceed 1 page.
>>Anything more should be put in the documentation.
>
>False call.  We just need another help system for novices.  The
>current man system is great for the people that it was intended for.
>I couldn't live without it.

   This is a good call.   Even if people hate the Mac, one thing that
they were able to do was to have people write easy-to-follow manuals
(mostly).  All we need is for it to be easy to read, complete, and
logical.  One can always dream ;).

--
Charles Lin
clin@eng.umd.edu
Newsgroups: comp.unix.questions
From: kschwab@nyx.cs.du.edu (Kerry Schwab)
Subject: Re: computer crime
X-Disclaimer: Nyx is a public access Unix system run by the University
	of Denver for the Denver community.  The University has neither
	control over nor responsibility for the opinions of users.
Keywords: computer crime
Organization: Nyx, Public Access Unix at U. of Denver Math/CS dept.
Date: Sun, 4 Oct 92 23:53:34 GMT

In article <aharris.718241663@cunews> aharris@alfred.carleton.ca (Andrew Harris) writes:
>I am looking for information on computer crime - not on how to do it
>or the economic costs etc. -- but on who does it and why - If you have
>recently come across anything of this nature I would very much
>appreciate a reference or a suggestion of where to look or any other
>news-groups where I should post this article.  Thank you 
>      Andy
>

Check the comp.society.cu-digest group.  Also ftp to ftp.eff.org
and rummage around in the pub/cud area.  Several electronic
newletters about and by "computer criminals" are in there.

--
Kerry Schwab
kschwab@nyx.cs.du.edu
From: harley@engrhub.ucsb.edu (Harley Hahn)
Newsgroups: comp.unix.questions
Subject: IS UNIX DEAD?
Date: 3 Oct 92 06:54:41 GMT

I am currently working on a Schaum's Outline for Unix.
(Working with me is John Navarra, the Mad Scientist,
who regular readers of this newsgroup will know well.)

I recently received a letter from the editor at McGraw-Hill
in which he mentioned the recent Byte magazine that featured
the question "IS UNIX DEAD?" on its cover.

Now, this person is intelligent but doesn't know a lot about
computers.  He wrote me a letter in which he said:

"...Since the answer to that question will influence
the sales of our book, I thought I'd ask you if you've
read the article and what's your feeling about the issues
it raises..."

Personally, I think putting a question like "Is Unix dead?"
on the cover of a computer magazine is about three notches below
"Is Elvis alive and programming with aliens at IBM?"

However, I feel that the editor deserves a serious answer so I
am asking all of my collegues in netland:

What do you think about the question "Is Unix Dead?"  What would
you tell someone who asks if this is true?

For all of you who care to reply, I promise that I will summarize
the replies and post them, and to send the summary to
McGraw-Hill (may they rest in peace).

(If you want your name left out, just let me know.)

Thanks, Harley Hahn
harley@engrhub.ucsb.edu
From: osoelgaultier+@CMU.EDU (Stefan Monnier)
Newsgroups: comp.unix.questions
Subject: Re: Killing Detatched Background Processes
Date: 4 Oct 92 13:00:11 GMT
Article-I.D.: andrew.QenphPW00VpGMr6Woq
Organization: Junior, Math/Computer Science, Carnegie Mellon, Pittsburgh, PA

Excerpts from netnews.comp.unix.questions: 4-Oct-92 Killing Detatched
Backgroun.. Douglas Parvin@husc11.ha (279)

> I have some backround processes from a previous session that I need to kill.
> How can I do this?  I don't need to connect with them, I just have to
> kill them.

> -- 
> ===========================================================================
> Douglas Parvin
> parvin1@husc.harvard.edu


So just kill them !

ps (maybe with some options) will give you its PID,
then 
kill PIDnumber

(or if it's not enough, you can try to send him other signals, 
the most effective (but also bad) is 9)

kill -9 pidnumber

	Stefan

-----------------------------------------------------
-- On the average, people seem to be acting normal --
-----------------------------------------------------
Newsgroups: comp.unix.questions
From: weigand@pecan.cns.udel.edu (Steve Weigand)
Subject: Re: Logon detection
Organization: University of Delaware, Newark
Date: Mon, 28 Sep 1992 05:16:50 GMT

In article <HUANG2.92Sep27095615@husc8.harvard.edu> huang2@husc8.harvard.edu (Howard Huang) writes:
>
>weigand@pecan.cns.udel.edu (Steve Weigand) writes:
>
>   >>I'm curious... Can anyone think of a way to detect someone's login the
>   >>instant they logon? 
>
>   No... I mean, the *INSTANT* they logon!!!! Everyone keeps telling me, use
>   set watch on tcsh. Well, that's all fine and well, but it checks on 1 minute
>   intervals, which is enough time for someone to login and logout with you 
>   knowing it. I was thinking more along the line of a C program, as shells
>   tend to be bulky and take up processor time.
>
>Try man utmp.  Then write a C program that opens utmp, checking for
>new people logged on, in an infinite loop.  Note that if you want the
>"*INSTANT* they logon!!!!" your program will take up some noticeable
>amount of processor time, and will do lots of utmp accesses.
>--
>----------------------------------------------------------------------------
>Howard C. Huang                                             hhuang@mitre.org
>The MITRE Corporation  *  202 Burlington Road MS K-306  *  Bedford, MA 01730
>

You've hit the nail right on the head with that one. I created the proposed
utmp watching program already. It does tend to chew up a bit of processor
time, but what I did was use "stat" to check when the utmp file gets changed.
This way, I only re-scan the utmp file when something happens (a user either
logs on or logs off). That still means that I'm scanning the utmp's status
in an infinite loop (until the person I want has logged on, that is). However,
I noticed a significant reduction in processor time that the monster chewed
up. The load wasn't effected terribly, and it certainly didn't go noticed
by other users of the system while I ran it at peak hours. So it looks
like I've created a "sufficient" program to do what I proposed. However, if
there are any better ideas out there, ones which take up close to 0 processor
time on the status scan, perhaps, then please post them!

Ciao and thanks for everything; your response has been appreciated.

- Steve Weigand
 (weigand@ee.udel.edu)

Newsgroups: comp.unix.questions
From: bob@cliff.NoSubdomain.NoDomain (Bob Palermo)
Subject: Problem: select(), fifos, and ULTRIX
Organization: Image Analysis Systems Group, JPL
Date: Tue, 6 Oct 1992 22:09:12 GMT


I am having a problem using select() on a VAXstation 3100 running 
ULTRIX V4.2(Rev. 96).  The scenario is as follows:

    -  One of the file descriptors is for a fifo
    -  I call select() to await pending read on the fifo
    -  The select() call returns immediately claiming that the file
	descriptor is ready for reading even though no other process has
	written to it.

Below is a small program which demonstrates the problem I am having.  When
this program is run on a SPARCstation running SunOS 4.1.2 the select()
times out every 10 seconds and prints the "Fifo Timer expired" message.
However, when this program runs under ULTRIX the select() returns immediately
and prints the 	"fifo read pending" message.

In the actual program I am having the problem with, the select() is also 
waiting on several socket descriptors.  The program itself is a server 
which is using the fifo to accept messages from other processes.  

Is there a way to make this work under ULTRIX?  or
Do I need to implement a different form of IPC to accomplish my task?

Thanks, any help is appreciated.  


Please respond via email to 
bob@woody.jpl.nasa.gov

--------------------------------------------------------------------------------

#include <stdio.h>
#include <sys/file.h>
#include <fcntl.h>
#include <sys/types.h>
#include <sys/time.h>
main(argc,argv)
int  argc;
char *argv[];
{
    int fifo, status;
    fd_set read_set;
    struct timeval timeout;


    if (mkfifo("/tmp/example.fifo", 0666) < 0) {
	perror("fifo create");
	exit(1);
    }

    if ((fifo = open("/tmp/example.fifo", O_RDONLY | O_NDELAY)) < 0) {
	perror("fifo open");
	exit(1);
    }

    timeout.tv_sec = 10;
    timeout.tv_usec = 0;

    for (;;) {
	FD_ZERO(&read_set);
	FD_SET(fifo,&read_set);

	status = select(FD_SETSIZE, &read_set, NULL, NULL, &timeout);
	if (status > 0) {
	    if (FD_ISSET(fifo,&read_set)) {
		printf("fifo read pending\n");
	    }
	}
	else if (status == 0) {
	    printf("Fifo Timer expired\n");
	}
	else {
	    perror("select");
	}
    }
}
Newsgroups: comp.unix.questions
From: golovch@phoenix.rose.utoronto.ca (Gene Golovchinsky)
Subject: client/server question
Summary: Need to find code that would run server process
Keywords: client server remote nntp tcp-ip
Organization: University of Toronto, Department of Industrial Engineering
Date: Sat, 3 Oct 1992 03:21:55 GMT

I need to build a server that will run a process, taking input from
a client on internet and sending output back to the client.

If relevant, client will be either a mac with tcp/ip or another unix
machine. If anyone knows where I can get the code (or at least some
architecture hints) for either the unix server end or the mac client
end (or both), I would appreciate hearing from you.  If I did not
post this to the right group, where does this question belong?

Thanks!

 2
G
Newsgroups: comp.unix.questions
From: mulvey@world.std.com (Richard K Mulvey)
Subject: Re: Temporary /dev/audio shutoff, how?
Organization: The World Public Access UNIX, Brookline, MA
Distribution: comp.unix.questions
Date: Mon, 5 Oct 1992 02:11:53 GMT

Someone wants to know how to shut off /dev/audio while they are logged
in on their sun Sparcstation...

In article <MERLYN.92Oct4181531@romulus.reed.edu> merlyn@ora.com (Randal L. Schwartz) writes:
>In article <1992Oct3.144612.8593@Princeton.EDU> spencer@phoenix.Princeton.EDU (S. Spencer Sun) writes:
>   You could create a named pipe to which only you have write permission.
>   Then continuously cat from this named pipe into /dev/audio.  Since only
>   one process can have /dev/audio open for writing at a time, no one else
>   can write to it.  Also, if YOU want to write to it, all you have to do
>   is write into the named pipe instead (you need some sort of loop to cat
>   from the pipe into /dev/audio again once you've sent something through
>   the pipe).
>
>Foo.  Why bring in a chainsaw when a simple carving knife will do:
>
>	sleep 30000 >/dev/audio
>

First person was closer... if all you want to do is shut it off, and
you never want to play sounds yourself, simply do the following:

cat > /dev/audio &

The process will run in the background, and since only one process can
write to the device at once, no sound!

Sounds good to me.

-- Katy


-- 
Rich Mulvey    mulvey@world.std.com       "A thing of beauty is a joy forever:
 {&&, ||}      73476.1142@compuserve.com   its loveliness increases; it will
Katy Thornton (for two more weeks! :-)     never pass into nothingness..."
From: @ada3.ca.boeing.com:crispen@efftoo.boeing.com (crispen)
Newsgroups: comp.unix.questions
Subject: in_cksum
Date: 29 Sep 92 13:35:28 GMT

Can somebody please send me the C code for in_cksum?  The version
I have calls cksum which is defined in another file as an optimized 68K
assembler function.  I would prefer to see this in C, so I can
optimize it for the SPARC, etc. myself.

Thanks,
Bob Crispen
+-------------------------------+--------------------------------------+
| Bob Crispen                   |   The owls are not what they seem    |
| crispen@foxy.boeing.com       +--------------------------------------+
| (205) 461-3296                |Opinions expressed here are mine alone|
+-------------------------------+--------------------------------------+
Newsgroups: comp.unix.questions
From: paul@sci.ccny.cuny.edu (Paul Chen)
Subject: Re: Help wanted
Organization: City College of New York - Science Computing Facility
Date: Mon, 28 Sep 1992 16:54:52 GMT

The files followed by @ sign means directory. You may get help from
ls -F.

-- 
Paul Chen, System Manager                CC   CC  N   N  Y   Y   
Science Computer Facility,J302          C    C    N N N    Y      
City College of CUNY                     CC   CC  N   N    Y    -SCIENCE
New York, NY 10031                    	Internet: paul@sci.ccny.cuny.edu
From: robert@divsun.unige.ch (Gilbert Robert)
Newsgroups: comp.unix.questions
Subject: Shared memories
Date: 1 Oct 92 15:46:37 GMT
Reply-To: robert@divsun.unige.ch
Organization: University of Geneva, Switzerland

I'm a problem with the shared memories. 

A main process create some (9 with average size 200Ko. The SHMAX of
Kernel has enough been raise) SM with the shmget() and shmat functions, 
	shmid = shmget(id,size,IPC_CREAT|perm)
	shmad = (UNCHAR)shmat(shmid,0,0)

	perm  = 0600

The shmid of each returns is putting in the global structure and after 
I call the shmdt(shmad) function for all.

When a client connect to this main process, a fork is done and 
a attach to two SM previously loaded . One is a same for all of new
process and the other migth be different according to the client.

The problem is when a second client comes, the attach to the first SM
return a different value (shmad) that the first client. It seems to
append essentialy when the second attach is different.
It means that the second client have the good address of memory and I 
don't know why, the first client have the segmentation fault.

for everybody have explanations and suggestions, thank you.
Newsgroups: comp.unix.questions
From: robinson@crash.cts.com (Alan Robinson)
Subject: Most reliable UNIX for 486-d2 system?; Help?
Organization: CTS Network Services (crash, ctsnet), El Cajon, CA
Distribution: na
Date: 30 Sep 92 01:23:15 PDT

FOR EVERYONE,

	I want to install a reliable BSD unix for a 486-d2 system.

But which one should I choose?  SCO is popular, stable, but it is only

system V.  Is a GNU unix available for BSD, is it well supported?; what

other choices are there?  And what about a good communications program

under UNIX?  What should I make sure I have to make a complete system.

		alan   masc0037@sdsu.edu

Newsgroups: comp.unix.questions
From: daveyang@leland.Stanford.EDU (David Xiao Dong Yang)
Subject: What are FIFO files and how to work with them?
Organization: DSG, Stanford University, CA 94305, USA
	According to the answer to question 4.9 in FAQ of this newsgroup,
	Anyway, Could someone kindly tell me how to work with those FIFO
	By the way, I am using sun workstations.
Date: Mon, 28 Sep 92 23:19:25 GMT

Thanks in advance.
Sincerely,

dave yang
.


Newsgroups: comp.unix.questions
From: cpcahil@virtech.uucp (Conor P. Cahill)
Subject: Re: Common Object Format File
Organization: Virtual Technologies Inc.
Date: Tue, 29 Sep 1992 12:15:01 GMT

murphy@rock.enet.dec.com writes:


>Does anyone know of a good reference on COFF files.  We are creating an
>assembler and need to create such a beast, so we need to know the internals of
>the COFF files.

The following system V manual pages/user guides have all of the details you
need:

	a.out(4), filehdr(4), linenum(4), schndr(4), syms(4) and
	chapter 11 of UNIX System V/386 Programmer's guide (vol II)
	which is titled "The common Object File Format".

-- 
*** 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 20166 
Newsgroups: comp.unix.questions,alt.cyberpunk,alt.religion.computers,comp.admin.policy,comp.org.eff.talk,comp.security.misc
From: wagner@utoday.com (Mitch Wagner)
Subject: net.views -- computer crime
Organization: Open Systems Today
Date: Sat, 03 Oct 92 16:39:18 GMT
Followup-To: comp.unix.questions



                 Do you consider computer crime to be 
                 a threat to your system?


     This question is being posted to gather responses for a regular
 opinion column in OPEN SYSTEMS TODAY called "net.views."

     By posting a response to this topic, you are granting
 permission for OPEN SYSTEMS TODAY to publish your response. A
 compilation of the responses to this post will be posted here about
 two weeks from today.

     Please include in your response your name, your employer, your job
 title, and location. Or, if you identify yourself as a student, please
 give your class standing (freshman, sophomore, junior, senior, grad),
 the school and its location. Please also provide a telephone number 
 where you can be reached during the daytime (overseas readers note:
 that's daytime in North America).

     Please be brief; try to limit your responses to two screens
 (24x80) of text, not including headers and other administrivia.

     Thanks!

                         -- mitch w.
--
Mitch Wagner, senior editor, Open Systems Today
2353 Massachusetts Ave. Suite 47, Cambridge, MA 02140
wagner@utoday.com  (617)547-8485  CIS:70212,51  GEnie:MITCH.WAGNER  
For subscription information, please call 516/562-5882
Newsgroups: comp.unix.questions,news.newusers.questions
From: eytan@leland.Stanford.EDU (Ethan Joseph Alpern)
Subject: Sending Mail to BitNet
Organization: DSG, Stanford University, CA 94305, USA
Date: Fri, 2 Oct 92 05:55:15 GMT

I am trying to send mail to a friend of mine in Italy.  He told me
that he was on BitNet and gave me the following address: csuc_bo@almad1.
cineca.it   I have tried sending mail to him but it did not work.
How do I need to change this address so that my mail will reach him.

Please send your suggestions to eytan@leland.stanford.edu

Thanks,

Ethan

Newsgroups: comp.unix.questions
From: navarra@casbah.acns.nwu.edu (John Navarra)
Subject: Re: Hidden (invisible) files
Organization: Northwestern University, Evanston Illinois.
Date: Sun, 4 Oct 1992 03:29:28 GMT

In article <1992Oct4.020557.13568@nmsu.edu> rscott@spock.NMSU.Edu (Joseph Good) writes:
>
>
>Is there a way to make files invisible?
>
>Where they have all the normal permissions, but you just can't
>see them with a 'dir' or an 'ls'???
>
	Well, yes and no. With root perms, you can play a few more games
but one thing you can try is using escape codes for vt100 terminals. This
will not work for other types of terminals but there are escape codes for 
the vt100 which do things like "erase line" and "move up one line" so if
you combine these sequences into a filename, you can effectively make a
file which tells the cursor to erase the line, and move up and to the
right. Thus, a ls will list X files in the directory but you will not be
able to see it unless you pipe the output through some utility (like cat -v)
which will show the codes. 
	The obvious drawbacks to this are 1) a knowledgeable UNIX user will
find the file no matter what you do. 2) it doesn't work on a non-vt100
terminal. SOme terminal types, for instance, put a '?' when it doesn't know
how to interpret the name. 
	However, this method can be effective because most people would not
go hunting for something almost invisible. I would tell you what those
codes are but I forgot them. They can be looked up easy enough though.

-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========
From: rlyle@nl.oracle.com (The Wizard of Ozje - Garf)
Newsgroups: comp.unix.questions
Subject: Solbourne blues, in Boot minor
Keywords: boot solbourne
Date: 30 Sep 92 14:31:47 GMT
Organization: Oracle Europe

Folks,

I have inadvertently inserted an error in the bsh /etc/rc.boot script on my
Solbourne portable Sun (Sparc inside).  Anybody any ideas about how I can fix
the error short of reinstalling the whole thing again?  It boots into a bsh with
# prompt ofcourse, but there's nothing mounted so I can't run anything.  All the other rc scripts fall flat on their faces.  The root FS is mounted read-only,
so I can't just stomp over it with echo in the shell.

I don't have another Solbourne so I can't boot from that then mount the local disks.  Basically all I can access is the boot prom.

Shucks.  And I wanted to be a systems analyst when I grew up.


Thanks in advance.

--Rob.

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