HDTenEightyP/NetNews huggingface dataset:
From: dkowalsk@usdsd1.DaytonOH.NCR.COM (Dennis Kowalski)
Newsgroups: comp.unix.questions
Subject: Interval Timer functions (setitimer)
Date: 23 Nov 92 15:18:58 GMT
Reply-To: dkowalsk@usdsd1.DaytonOH.NCR.COM (Dennis Kowalski)
Distribution: world
Organization: NCR USG Data Services Division


I need help!!!

I am trying to use the setitimer function to cause an interupt in 5 seconds.
I have tried all three timers (ITIMER_REAL  ITIMER_VIRTUAL & ITIMER_PROF with
no luck with any of them.

I have played around with all possible options of it_value & it_interval.

The following code is how I think it should be.
The pause statement is never interupted .

I have tried this under 5.3 & 5.4.

Can anyone show me the error of my ways???

#include <signal.h>
#include <sys/time.h>

void itimer_rtn();

struct itimerval  dktimer1, dktimer2;

main()
{
  if (signal (SIGPROF, itimer_rtn) == SIG_ERR)
  {
        printf("\nSet of SIGPROF failed\n");
        exit(1);
  }

  dktimer1.it_value.tv_sec = 5;
  dktimer1.it_value.tv_usec = 0;
  dktimer1.it_interval.tv_sec = 0;
  dktimer1.it_interval.tv_usec = 0;
  stat = setitimer(ITIMER_PROF, &dktimer1, NULL);

  printf("\nPausing\n");
  pause();
  printf("came back from pause\n");    /* NEVER GETS TO HERE */
  exit(0);

}

void itimer_rtn()
{

  printf("\nGot SIGPROF \n");   /* NEVER HAPPENS */
  return;
}

-- 
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
Newsgroups: comp.unix.questions
From: papresco@napier.uwaterloo.ca (Paul Prescod)
Subject: Re: IS UNIX DEAD?
Organization: University of Waterloo
Date: Fri, 20 Nov 1992 19:14:00 GMT

>As long as your are installing a unix with multi-user capacities you have
>to know at least a little bit more than when installing single user
>operating systems.

Can't unix be a multiuser operating system that defaults to single user
mode unless you specify otherwise?

>Yes but what is complex? Something complex for you might not be for me or
>the other way around. I suppose what we really need to address if we want
>unix on the low-end workstation market to be competitive is to design a
>unix-lite that will be easy to install, easy to administrate and easy to
>use for people who don't have any specific knowledge.
>This may imply to remove some functionalities (such as multi-user) or hide
>some of them (such as network management) and probably bundle user-friendly
>and consistent software.

Now you are talking.  You wouldn't even have to remove ANY functionality.
Single user is just multi user with one user.  Just hide the complexities
and bundle user-friendly, consistent software.  YOU know what you are talking
about.

>Of course some of you might say that a single unix already exists and it is
>called os/2... 

Unfortunately, it's from IBM and only runs on Intel chips...otherwise I'd
agree that the dual layeredness power/ease of use of OS/2 is something
Unix should be working towards.

>PS : I installed windows 3.1 recently and I LIKED the installation
>procedure, specially those messages saying "This is a good time for filling
>you registration..." It makes you feel you're not loosing your time waiting
>for one floppy to finish and to feed it the next one.

You liked that?  You evil, evil person.  You liked the idea that the programmer
had the user in mind?  That it was easy and user friendly? 
Newsgroups: comp.unix.questions
From: rahardj@ccu.umanitoba.ca (Budi Rahardjo)
Subject: Re: IS UNIX DEAD
Organization: University of Manitoba, Winnipeg, Canada
Date: Mon, 23 Nov 1992 17:29:31 GMT

papresco@undergrad.math.waterloo.edu (Paul Prescod) writes:

>>A system that does everything for everyone is suffering from what is called
>>creaping featurism. Most systems which suffer from that (many popular DOS apps
>>like e.g. WP, PC-TOOLS, etc.) are big, slow and hard to use. Another problem
>>is that different users have different needs. So called end-users run
>>applications and (often) don't need a powerful shell with pipelines, I/O
>>redirection, and cryptic commands.


>Word for windows can do anything that WordPerfect, VI or Emacs can do,
>and yet the interface is crystal clear and easy.

Can Word for Windows read/edit binary file, read/send mails, ftp, etc. just 
like emacs ?

-- budi
-- 
Budi Rahardjo <Budi_Rahardjo@UManitoba.Ca>
Unix Support - Computer Services - University of Manitoba
Newsgroups: comp.unix.questions
From: andy@research.canon.oz.au (Andy Newman)
Subject: Re: IS UNIX DEAD (long)
Organization: Canon Information Systems Research Australia
Date: Mon, 16 Nov 1992 01:52:01 GMT

Josef Moellers <mollers.pad@sni.de> writes:
>My 2ct:
>UNIX doesn't have these "user friendlyness" of DOS, because it isn't DOS
>that's user friendly, it's the applications that were written for it.
>One OS is no more "user friendly" than the other.
>

I'm really sick of this and I'm sorry for using you as an example
Joesf but you were in the wrong place at the wrong time...

Define what "user friendly" means? The word "user" in the phrase means
that the "friendliness" of this piece of computer software depends
upon the user. I find UNIX user-friendly, the user being me.

And another thing for the people who rm to hold their hands...Rm, like
a power drill can be dangerous when used without care. Do people
really expect machines to think for them? If yes then these people
have got a big shock coming to them!
-- 
Andy Newman (andy@research.canon.oz.au)
From: lpeters@postmaster@hq.af.mil (Leslie D Peters)
Newsgroups: comp.unix.questions
Subject: Re: grep
Date: 20 Nov 92 16:00:12 GMT
Reply-To: lpeters@marge.hq.af.mil
Organization: 7th Communications Group

In article <13586@hq.hq.af.mil>, snolan@postmaster@hq.af.mil (Scott D Nolan) writes:
|> |> |> >Actually it's Global Regular Expression Parser.
|> |> |> I thought it meant Gorns Rarely Eat People...
|> |> Grazing Rabbits Excrete Pellets
|> Geraldo Rates Exhibitionist Perverts
Geriatric Rhinoceroses Escape Pennsylvania
-- 
/============================================================================\
|                    ___                     |                               |
|       ___....-----'---`-----....___        | I haven't lost my mind --     |
| =========================================  |                               |
|        ___`---..._______...---'___         |  it's backed up on            |
|       (___)      _|_|_|_      (___)        |   tape somewhere.             |
|         \\____.-'_.---._`-.____//          |                               |
|           ~~~~`.__`---'__.'~~~~            | lpeters@marge.hq.af.mil       |
|                   `~~~'                    |                               |
\============================================================================/
From: bvaughan@sheps.Princeton.EDU (Barbara Vaughan)
Newsgroups: comp.unix.questions
Subject: Re: PostScript output from man pages
Date: 20 Nov 92 22:49:27 GMT
Organization: Princeton University
Originator: news@nimaster

Thanks to everyone who helped with my man page -> PostScript problem.  Part of
the
trouble was that our version of pscat only works with versions of troff
older than the one we now have installed.  I've solved the problem with a
combination of  a script that locates man pages (provided courtesy of Lief
Jensen), ptroff, and a script I wrote that adds a PostScript statusdict to
the PostScripted man page.  So we now can get nicely formatted man pages,
printed on both sides of the page. I thank you and the trees thank you.
Newsgroups: comp.unix.questions
From: kko@fraser.sfu.ca (Samuel Ko)
Subject: Re: UNIX book worth $46 . . ? 
Organization: Simon Fraser University, Burnaby, B.C., Canada
Date: Mon, 23 Nov 1992 08:03:21 GMT

peer@ccrma.stanford.edu (Peer Landa) writes:

>I'm considering purchasing a new UNIX book called "Advanced Programming in 
>the  UNIX Environment" -92 by Richard Stevens on Addison & Wesley. Does 
>anyone on the net own this book, who can pass me a hint if its not worth $46
> . .

I think it is worth more than $46 (or $60 CAD) ... If you need a book
on Unix system programming ... Richard Stevens' book is *the* book that
you should buy. ... 

Samuel ... the maintainer of "A Concise Guide to Unix Books" ...
From: millerm@skie.ECE.ORST.EDU (Mike Miller)
Newsgroups: comp.unix.questions
Subject: LaTeX Compilation
Keywords: LaTeX TeX Apollo DomainOS
Date: 20 Nov 92 02:36:28 GMT
Article-I.D.: flop.1ehivcINNhu8
Organization: College of Engineering, Oregon State University
NNTP-Posting-Host: skie.ece.orst.edu

Has anyone had any success in compiling the LaTeX code on HP/Apollo  
DomainOS 10.3? We are having a great deal of difficulities in compiling  
the code due to diffrences and quirks in the DomainOS.

If you have any knowledge of how to, or how not to, or have the modified  
code (or bin) files we would greatly appreicate it if you could contact us  
via email as we often do not get the chance to read all of the news on a  
regular basis.

Thank you for you time and consideration.

ECE Support, Oregon State University
millerm@skie.ece.orst.edu    ---NeXT mail accepted---
From: peter@global.hacktic.nl (Peter Busser)
Newsgroups: comp.unix.questions
Subject: Re: IS UNIX DEAD? (long)
Date: 14 Nov 92 12:58:21 GMT
Organization: Global Village 1

rahardj@ccu.umanitoba.ca (Budi Rahardjo) writes:

>>have f keys.  It would seem this would be a good time to start convincing
>>people to use F1 for help, n'est ce pas?
>How about terminals without F keys ?

Then you can't press the F1 button, right? So you can't get helptext.

>How about different keyboards send
>different key sequence for F1 ? We still have many terminals without F keys.

There are 10 times more keyboards that do have F-keys.
Newsgroups: comp.unix.questions
From: lytras@avalon.physik.unizh.ch (Apostolos Lytras)
Subject: Re: IS UNIX DEAD? (long)
Organization: Informatik Club d. Universitaet, Zuerich
Date: Wed, 18 Nov 1992 13:34:33 GMT

In article <1992Nov18.001148.2448@global.hacktic.nl> peter@global.hacktic.nl (Peter Busser) writes:
>rahardj@ccu.umanitoba.ca (Budi Rahardjo) writes:
>>>  - how much is the difference between a DOS/Windows app and a comparable
>>>    UNIX app? (Ok, let the flames come in! :)))
>>I am not sure what you mean by that ?
>Sorry that I was very unclear. I ment the price.

Well, let's see:

(let's take book editing software for an example)

FrameMaker:  about $3000 (if I convert the swiss price to US$, might be
                          less in the US, however)

You get almost the same under UNIX from

Emacs & TeX:       $0 (maybe you'll have to add media cost)

Or take some table editing programs (spreadsheets), that offer macros:

Excel:  well.... $500?
Perl:              $0

Maybe you start to understand now why I just *love* UNIX... it just
compares favorably with DOS, and I don't give a **** about
"user-friendly" interfaces which seem to be in the way all the time (to
the experienced user, at least). 

Did you ever look at what the cost is for adding your DOS/Windows-PC to
a network? What a bunch of different hard- and software you need to get
this to work? Well... it was all built into my UNIX box, and it worked.
This is what I call user-friendliness.

Cheers
- A.
-- 
	 lytras@ifi.unizh.ch   		|   Apostolos Lytras
	 lytras@avalon.physik.unizh.ch	|   Informatik Club der Uni
	 lytras@amiga.physik.unizh.ch  	|   Zuerich, SysAdmin
From: givanov@eniac.seas.upenn.edu (George Ace Maverick)
Newsgroups: comp.unix.questions
Subject: Anonymous posting
Date: 22 Nov 92 20:55:58 GMT
Organization: University of Pennsylvania


	Hi. Can someone please tell me how to post articles anonymously.
I am not sure, but I think that this is done by mailing the newsgroup@
certain reflector sites. I would like to know how this is done.
Thank you beforehand.

.SIG4
	"There's nothing more beautiful and at the same time more deadly
         than a gorgeous blonde in a hot red sports car."
**************************************************************************
Any replies, suggestions, comments etc., please mail to:
givanov@eniac.seas.upenn.edu (Best 4 ME)
givanov@be.seas.upenn.edu
givanov@maria.wustl.edu
givanov@nyx.cs.du.edu
**************************************************************************
Newsgroups: comp.unix.questions
From: twriter@rd.hydro.on.ca (Timothy Writer)
Subject: Re: Interprocess Communication Source Wanted
Reply-To: twriter@rd.hydro.on.ca
Organization: "Ontario Hydro - Research Division"
Date: Mon, 23 Nov 92 20:47:58 GMT

rgasch@nl.oracle.com (Robert Gasch) writes:

>I have been attempting to figure out how interprocess
>communication works under Unix. The problem is that
>all the sample code i have to look at, is part of a
>large application and cluttered up with all sorts of
>other unreadable code which has nothing to do with 
>the communication part that I'm actually interested
>in.

>If anybody out there has any simple programs which 
>demonstrate interprocess communication I'd appreciate it
>if I could take a look at them. 

Many commercial versions of UNIX come with a Programmer's Guide which
usually has a chapter on IPC mechanisms such as pipes, FIFOS, message
queues, semaphores, and shared memory.  Many also include a Network
Programming Guide which covers sockets and RPC.  I suggest you try to
get your hands on a copy of these before you delve into other people's
code.  Another book which might prove useful is Marc Rochkind's
"Advanced UNIX Programming."  I'm sure others can suggest some more
references.

I hope this helps.
Tim

-- 
Tim Writer			     phone:  (416) 231-4111 ext. 6990
Ontario Hydro Research Division	     fax:    (416) 237-9285
Toronto, Ontario		     e-mail: twriter@rd.hydro.on.ca
CANADA
From: marby@laura.harvard.edu (Craig Marby)
Newsgroups: comp.unix.questions
Subject: Re: Recursive Tree Copy (with filter)?
Date: 20 Nov 92 02:16:54 GMT
Organization: Chemistry Dept., Harvard University
In-reply-to: trw@unixland.natick.ma.us's message of 19 Nov 92 21:17:48 GMT

>>>>> On 19 Nov 92 21:17:48 GMT, trw@unixland.natick.ma.us (Tim Weil) said:

Tim> I need a utility that would perform a recursive tree copy but only 
Tim> operates on a selected file set for transfers.  The specific problem
Tim> concerns a complicated source tree with Makefiles embedded at various
Tim> sub-directories throughout the tree.
Tim>  
Tim> What the utility might do is behave like "cp -r" and "grep make *"
Tim> where any file prepended with "make" would be copied along with the
Tim> attached subdirectory.
Tim>  

What you need to do is a find/cpio -p. In other words generate your
filter or whatever using find -- if that doesn't quite give you
what you want you can redirect the find to an output file and
then edit that. Once you have your list of files you then send this
on to cpio -p, that is cpio with the "-p" option. See the manual
for details. You may wish to do a mini-experiment first!

Hope this helps.

    __o         
  _ \<,_       Craig A. Marby    marby@layla.harvard.edu
 (_)/ (_)      
~~~~~~~~~~
--

    __o         
  _ \<,_       Craig A. Marby    marby@layla.harvard.edu
 (_)/ (_)      
~~~~~~~~~~
Xref: sparky comp.unix.questions:13612 comp.unix.misc:4251
From: thad@cup.portal.com (Thad P Floryan)
Newsgroups: comp.unix.questions,comp.unix.misc
Subject: Re: What's HP Boat Format
Date: Wed, 18 Nov 92 22:48:27 PST
Organization: The Portal System (TM)

In article <1992Nov16.180950.21931@leland.Stanford.EDU>
donghao@leland.Stanford.EDU (dong hao zhang) writes:

|  I have a 3.5 inch floppy disk to read. The disk is marked HP boat format.
|  Is this the disk format for HP workstations ? I appreciate any response to
|  donghao@leland.stanford.edu
|  
|  Sorry if this isn't quite a unix question, but couldn't find any place
|  better.

"HP boat format"?   Sounds like a question for the "rec.boating" newsgroup.

Naw, cannot make the same typo twice (article header and article body), so:

102' fibreglass hull, twin diesels.  And the 3-1/2" disks make nice hub
shims for my Penn Ocean reels, especially important when using 150 pound/test
line.  Just don't get caught dropping a line in at HP's Monterey Bay Aquarium.

HP also has two corporate airplanes mfd. by Lockheed; those would be the
"HP airplane format".

:-)  :-)  :-)

Seriously, though the disk may be marked "BOOT format", is that what's really
on the disk?  In other words, did someone simply re-use a boot disk to send
you stuff?

Thad Floryan [ thad@btr.com, thad@cup.portal.com ]
From: dattier@ddsw1.mcs.com (DWT)
Subject: Re: How does a mortal become a UNIX WIZARD ?
Date: Fri, 20 Nov 1992 20:21:46 GMT
Organization: Contributor Account at ddsw1, Chicago, Illinois  60657

mbarkah@slate.mines.colorado.edu (Ade Barkah) wrote in
<1992Nov19.001512.72408@slate.mines.colorado.edu>:

| (next question: how does a newbie become a net.personality ?)

By negative karma accumulated from several previous lifetimes of sin,
dissipation, and careers in politics.

David W. Tamkin   Box 59297   Northtown Station, Illinois  60659-0297
dattier@ddsw1.mcs.com    CompuServe: 73720,1570    MCI Mail: 426-1818
Newsgroups: comp.unix.questions
From: papresco@napier.uwaterloo.ca (Paul Prescod)
Subject: Re: IS UNIX DEAD? (very long)
Organization: University of Waterloo
Date: Mon, 23 Nov 1992 22:56:25 GMT

>>But many people don't ever want to learn it,
>>any more then they want to understand the internal combustion engine.  They
>>just want to flip a switch on their computer and have it boot to a nice
>>editor, without them having to go through contortions:
>
>Then buy a Mac. Why bother with UNIX.
>If all you want is a nice editor/spreadsheet, why not buy a Mac.
>It's a nice simple machine.

Fine, if you think that that's all Unix is capable of being, forever in
the shadow of the mac and PC.  I think it's good enough to be the #1
operating system, but not without some changes.

>What standard editor ? Like somebody (Ade ?) pointed out editor is a like a 
>religion. Should we install "joe" (a nice editor too), pico, cr, fpted,
>emacs, textedit, xedit, point,... The list goes on and on.

So include one really, really easy editor, one really, really powerful
editor, and instructions on how to ftp anything in between.  Pretty
simple, isn't it!


Newsgroups: comp.unix.questions
From: trw@unixland.natick.ma.us (Tim Weil)
Subject: Recursive Tree Copy (with filter)?
Organization: Unixland Public Access Unix  (508) 655-3848
X-Newsreader: Tin 1.1 PL3
Date: Thu, 19 Nov 1992 21:17:48 GMT

I need a utility that would perform a recursive tree copy but only 
operates on a selected file set for transfers.  The specific problem
concerns a complicated source tree with Makefiles embedded at various
sub-directories throughout the tree.
 
What the utility might do is behave like "cp -r" and "grep make *"
where any file prepended with "make" would be copied along with the
attached subdirectory.
 
Timothy.Weil@dialcom.tymnet.com      or,
timw@sonnyj.tymnet.com
From: 00mrfox@leo.bsuvc.bsu.edu
Newsgroups: comp.unix.questions
Subject: general unix info needed
Date: 20 Nov 92 12:53:16 GMT
Organization: Ball State University, Muncie, In - Univ. Computing Svc's

could someone please give this unix illiterate some general 
information on unix.  is it as hard to use as i am led to 
believe?  if so what makes it so hard?  i know that there
are *many* different unixes out there--what are the most
commonly used ones?  finally, i have read about svr4.2
which is supposed to be an easier to use unix, is it out
yet?  if not what is the expected release date?  
in need of info :-) !!
Newsgroups: comp.unix.questions,comp.unix.sysv386
From: bill@bilver.uucp (Bill Vermillion)
Subject: Re: How does a mortal become a UNIX WIZARD ?
Organization: W. J. Vermillion - Winter Park, FL
Date: Mon, 23 Nov 1992 14:54:06 GMT

In article <By3EK1.9uE@undergrad.math.waterloo.edu> gjschmid@undergrad.math.waterloo.edu (Greg Schmidt) writes:

>In article <sherman.722312029@foster> sherman@unx.sas.com (Chris Sherman) writes:

>Does wiping out /etc/passwd count?  Is 2 hours too long to figure out what
>needs to be done, and doing it?  I could do it in about 15 minutes, now that
>I know what needs to be done...

I do some work at a local Community College.  We have one person who
thinks Unix is just like her beloved DOS.   A user had to have a
modification to her word processor set up.  Not knowing the users
password she moved /etc/passwd.

Then she couldn't log in.   When I arrived an hour or so later she said
"Bill - I think I've done something wrong".  If ot weren't for the
users losing their morings work I should have let her rebuild the
system from scratch jut to teach here a lesson.   ARGH!

As it was - your 15 minute estimate is about right - give or take 10
minutes.


-- 
Bill Vermillion - bill@bilver.oau.org  bill.vermillion@oau.org
                - bill@bilver.uucp 
                - ..!{peora|tous|tarpit}!bilver!bill

Xref: sparky comp.unix.questions:13502 gnu.emacs.help:4824
From: Karl.Glazebrook@durham.ac.uk (Karl Glazebrook)
Newsgroups: comp.unix.questions,gnu.emacs.help
Subject: tcsh-like subroutine
Date: 16 Nov 92 16:07:56 GMT
Reply-To: Karl.Glazebrook@durham.ac.uk
Organization: Department of Physics, University of Durham

Hello,

I'm looking for a tcsh like input routine which would be callable from a C or
FORTRAN program. I just want to be able to read a line of text from the user
with tcsh-like (or emacs-like!) command line editing/recall features.

I'm working on a SPARC with SUNOS 4.1.3 but obviously the more general and
portable the solution the better!

As a bonus there would also be another routine which could modify the recall
list, but this is not essential as I could probably hack this myself given
the first subroutine.

Thanks for any help,

Karl Glazebrook.

---
------------------------------------------------------------------------------
| Karl Glazebrook,      | INTERNET:   Karl.Glazebrook@durham.ac.uk           |
| Dept. of Physics,     |    JANET:   KARL.GLAZEBROOK@UK.AC.DURHAM           |
| Univ. of Durham,      |     SPAN:   19463::DUVAD::KGB                      |
| United Kingdom.       |      FAX:   091-374-3749                           |
------------------------------------------------------------------------------
Newsgroups: comp.unix.questions
From: alan@nabeth.enet.dec.com (Alan Rollow - Alan's Home for Wayward Tumbleweeds.)
Subject: Re: Wiping disks
Keywords: wipe clear sanitize sanitization
Reply-To: alan@nabeth.enet.dec.com (Alan Rollow - Alan's Home for Wayward Tumbleweeds.)
Organization: Digital Equipment Corporation
Date: Mon, 23 Nov 1992 23:20:27 GMT


In article <1992Nov20.164922.22203@newshost.lanl.gov>, richards@beta.lanl.gov (William C. Richards) writes:
>
>I work for a US government contractor where the contracting agency requires
>the wiping, clearing, sanitization (what ever you want to call it) of disks
>which contain or may contain sensitive information.  Is there any utility,
>shell script, or SW package which would accomplish this?
>
It depends on the "clean" the disk has to be.  I'm lead to believe that
for modern hard disks there's still enough information left after multiple
passes of simple minded erasing program, that the determined spook can
still recover some interesting data.  There are situations where physical
destruction of the media is the only really secure way of destroying the
data.

Once you're able to determine the extent to which the data must be
erased some utilities to consider are:

1.  yes(1) and in general any program that writes a selectable data
    pattern to a file.
2.  The program that formats the drive.
3.  A custom program.

One of the problems that you'll face for nearly any program is
that some drives do bad block replacement.  Once a "bad" block
is replaced you don't have access to the original.  And while the
original may have a few problems, it doesn't mean that all of the
data is irretivably lost.  Some of it may look "funny" and some of
it will be fine.

The formatting program may take care of these blocks but you come back
to the problem of how hard it would be for the determined spook
to recover something interesting.

>Many thanks in advance for you help.
>
>Peter Richards
>
--
Alan Rollow				alan@nabeth.cxo.dec.com