HDTenEightyP/NetNews huggingface dataset:
From: partl@hp01.boku.ac.at (Hubert Partl)
Newsgroups: comp.unix.questions
Subject: crontab problems after daylight saving time
Date: 2 Oct 92 15:47:44 GMT

I have problems with crontab following the switching back from
daylight savings time ("summer time") to normal time ("winter time")
on our Titan computers, which run what they call Unix System V.
We got the computers in October 1991, so this is the first completed 
year and the first time I see this problem.

Our time zone is MET-1METDST, "summer time" ends at 3am of the last
Sunday in September, which becomes a second 2am for that day.
I carefully avoided crontab entries that would run on any Sunday
between 2am and 3am, with the only exception of the ckpacct job which
runs every hour and would do no harm if started twice.

On our HP-UX workstations, everything works fine, i.e. cron starts
every crontab job once at its correct time.

However, on our Titans, not only the first ckpacct job following the
winter time switch was started twice, but also on the following Monday,
the weekly backup was started twice (the second copy one hour after the
first one), and the same again for the monthly accounting job on the
1st of October. Needless to say that these produced a lot of undesired
effects: The second backup job was clever to abort with "can't write 
to device", but the second account job produced empty statistics files
for September... (Yes, I looked into /usr/lib/cron/log to verify that 
they were indeed started twice on the Titans and once on the HPs.)

What may be the cause for this misbehaviour of crontab on the Titans,
in contrast to the HPs? And what might I do to avoid these problems?

(Yes, I told Kubota's Titan Customer Support about this problem, but I 
did not receive their answer yet. Is there any Unix Wizard who can tell
what he/she knows about it?)

--
Dr. Hubert Partl                              Mail:  partl@mail.boku.ac.at
EDV-Zentrum, Universitaet fuer Bodenkultur    Phone: (+43 1) 36 92 924 - 233
Nussdorfer Laende 11                          Fax:   (+43 1) 36 92 924 - 200
A-1190 Wien, Austria                          (-:  Make laugh, not war!  :-)
Newsgroups: comp.unix.questions
From: sr1691@oktext.sbc.com (Steven D. Rollins)
Subject: Re: How do I send hayes commands (AT commands) to my modem?
Reply-To: sr1691@oktext.UUCP (Steven D. Rollins)
Organization: Southwestern Bell
Date: Tue, 29 Sep 92 13:25:30 GMT

In article <JDELL.92Sep27150655@maggie.mit.edu> jdell@maggie.mit.edu (John Ellithorpe) writes:
>On 26 Sep 92 22:57:12 GMT, ejh@khonshu.colorado.edu (Edward J. Hartnett) said:
>> Nntp-Posting-Host: khonshu.colorado.edu
>
>> I'm sitting here at my Sun IPC trying to think of how I connect to my
>> modem (which is on ttyb). I'd like to check the settings (specifically
>> the number of rings it waits before autoanswering), and there's this
>> nifty table of commands on the back of the modem which I can use, but
>> how do I send commands to the modem and get the answers back? In the
>> PC world I'd be able to do it through my communications package, but I
>> have no idea what to do on UNIX. Any help?
>> 			Thanks
>> --
>> Edward Hartnett			ejh@khonshu.colorado.edu
>
>Just like on a PC, you could use kermit.  I forget where on the net the UNIX
>version is.  It's just like a PC.  Just connect the the port and away you 
>go.  Mind you, I haven't done this myself, but I don't see any reason why this
>shouldn't work.
>
>John
>--
>
>===============================================================================
>John Ellithorpe                           | Internet: jdell@maggie.mit.edu
>Dept. of Physics, Rm 26-349               | Phone   : (617) 253-3074  Office
>Massachusetts Institute of Technology     |           (617) 253-3072  Lab
>Cambridge, MA  02139                      |           (617) 236-4910  Home
>===============================================================================


--
Steve Rollins Manager - MPLR        | tact: (inform wife of husbands death)
Southwestern Bell Telephone Midwest | "...are you the widow Budreau?", "No"
sr1691@oktext.sbc.com              | "The hell you ain't." - Justin Wilson
From: kilman2y@sunrise (Yevgeny Kilman)
Newsgroups: comp.unix.questions
Subject: Very-very easy question..
Keywords: .sig, mail, rn
Date: 1 Oct 92 01:00:53 GMT
Followup-To: kilman2y@max.fiu.edu
Organization: Florida International University, Miami


Dear Gurus!!!

Having just started using UNIX with its networking features, I feel as if
being nude in the croud w/out knowing how to create a signituer and uppend
it to my mail an replies to news.

I would gladly except any information on this subject.

G.K.  ... hope to have something better here some day... :*)

P.S.	Please reply by e-mail : kilman2y@max.fiu.edu
					or
From: ccang@hoz1.pki-nbg.philips.de (Chai Ang)
Newsgroups: comp.unix.questions
Subject: Re: VI Query (putting in a blank line between each line in a file)
Date: 28 Sep 92 09:13:02 GMT

billd@informix.com (William Daul) writes:

>given a file like this:
[blah blah]

Hello, I saw some of the answers posted and I suspect it depends on
the implementation whether a s/^$/^V^M/g will work (or whatever
pattern u might like to substitue with a newline).

This usually (sometimes?) works for me - see below
Q	# to get into ex (?)
g/<reg-exp>/i\
<whatever pattern u might want to insert, blank if just a newline> \
.	# to terminate the instruction.

I guess finally 'vi' to get back into visual mode.
I'd double check by RTFM, my ref was the Bourne shell book by S Bourne
but I dont have it in front of me so I'm typing this by memory.
(dont forget the backslashes)

Hope this helps,
Cosmically,
Chai.
I thought this might be useful so I posted it (mistake?).
--
*-- ccang@pki-nbg.philips.de (Cheng-Chai Ang) --*
    +49 911 526 6220			Aer Lingus is an Irish airline.
From: hm342st@unidui.uni-duisburg.de (Michael Staats)
Newsgroups: comp.unix.questions
Subject: Re: grep in subdirectories
Date: 30 Sep 1992 16:53:51 +0100
Organization: Universitaet Duisburg GH
NNTP-Posting-Host: unidui.uni-duisburg.de
Keywords: grep

In <denis.717853848@smoky> denis@smoky.ikf.physik.uni-frankfurt.de (Denis Endisch) writes:

>Hi,
>Is there a possibility to told grep to search in a whole directory tree?
>In combination with the find command it would be helpful if grep would
>axcept filenames instead of text from stdin, but as far as I know there
>is no option for grep to do so.
>Has anybody written a shell-script which can do the think?
>Thanks in advance

One solution coming into my mind would be

$ find . -name '*.c' -print -exec grep printf {} \;

which has several disadvantages (all filenames will be printed, too many
processes etc.). I thought of a better solution with

find -name '*.c' -type d -exec ??????????

to run one grep process per directory, and I've posted a wrong
solution (I've cancelled it already). ?????? would have to be
a shell script to cd into the correct directory and run grep.
(In my wrong solution I forgot to cd and simply did an 
-exed /bin/sh -c "grep printf *")
I don't like the script solution, can anyone think of a one-liner?
Sorry for wasting bandwidth,
Michael

-- 
Michael Staats, Student of Theoretical Physics, Uni-GH Duisburg 
BTW: I'm looking for a Makefile which takes physical model, applied methods,
expected results and literature references as input and generates a master
thesis in Theoretical Physics to save time for reading news. Help me, please!
Newsgroups: comp.unix.questions
From: jdavis@bordeaux.kpno.noao.edu (Jim Davis)
Subject: Re: Where to get Nemeth's Scripts
Organization: Blurkmann Planetarium
Date: Wed, 30 Sep 1992 17:57:37 GMT

In article <1992Sep30.103455.25984@doug.cae.wisc.edu> seaney@engr.wisc.edu writes:
> 
>Is there a ftp site to get the various scripts listed by 
>Nemeth in 'Unix System Administration'?

Try boulder.colorado.edu (128.138.240.1).  Look in /pub/sa-book.
-- 
Jim Davis            | "Seeing her rip his heart out was SO romantic."
jdavis@noao.edu      |   -- Clarissa Darling
From: smr@hitkw14.pki-nbg.philips.de (S.Riehm)
Newsgroups: comp.unix.questions
Subject: Re: "vi" the 1st prob. revisited...
Keywords: vi/UNIX
Date: 30 Sep 92 09:50:53 GMT

bibhas@pico.engr.mun.ca (Bibhas Bhattacharya) writes:

>rayj@Celestial.COM (Ray Jones) writes:

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

>Line appended in the meiddle:
>^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>Mary Poppins goes to jail [ANY ADDITION CAUSES A LINE BREAK] for shoplifting in Target. However, the brown
>fox was quite innocent.

>This happens with a wrap margin of 8. Any later addition breaks up the
>line in a very ugly way. This is a constant prob. when editing my thesis.

This is a common problem faced by all vi users. The reason being that
newlines are a fixed part of the text. If you want a word processor,
don't use vi. Emacs wraps words on the fly, because it doesn't insert
physical newline characters, and will allow much longer lines (paragraphs
if all word wraps don't imply newline chars). If you insist on using
vi (like myself), you can write your text and let it get as messy as
you like, and then run it through a text formatter like fmt (see FAQ).
You can do this by piping individual paragraphs though the text
formatter, or you can pipe the whole damn document through it. I have
long been a believer of get it right, then get it pretty.
(example, when do you spell check your document, after it is finished!)

>Due to some inexplicable reason vi is not reading my .exrc file at start time,

I don't know what you have got in your environment, but if there is a
.exrc file in your home directory it should get read. Make sure you
DON'T have a EXINIT variable set, if you do, this will be used in
preference to the .exrc file. simply unset the variable and everything
should work again.

catchya

-----------------------------------------------------------------
Stephen Riehm		Configuration Management	   _-_|\ 
smr@pki-nbg.philips.de	Philips Kommunikations Industrie  /     \
Work: +49 911 526 2975	N|rnberg, Germany		  \_.-.*/
Fax:  +49 911 526 2095	"I was there, now I am here!"	       v 
"My company speaks another language, I CAN'T speak on it's behalf"
From: clin@eng.umd.edu (Charles Lin)
Newsgroups: comp.unix.questions
Subject: Help with UNIX and X
Date: 30 Sep 92 05:20:15 GMT
Organization: College of Engineering, University of Maryland, College Park
Originator: clin@analog.eng.umd.edu


   Well, this is the third time I am trying this.  Let's hope my previous
posts haven't shown up.

   OK, I want to be able to send message to windows while I am in X.
Here are my assumptions.

   * When I type in xterm & in an available xterm (while in X), a window
     pops up, and csh is running in my home directory.

   * Umm, I guess that's it.

   I assume that I have two windows that I wish to send messages to.
Call it "a" and "b".  I want some function that will behave like
the following imaginary function, which I will call "send".  send
takes two arguments.  The first is the name of the window, and the
second is either a literal string, or a file. 

   The behavior can be shown in examples.

   (1) send(a, "ls")

       This causes window "a" to print out the directory.

   (2) send(a, "cd /tmp")
       send(a, "ls")

       This switches the directory in window "a" to /tmp, and lists
       that directory.

   (3)  send(a, "mail")
        send(a, "t")
        send(a, "r")
        send(a, file)

        This starts up mail in window "a", types the first message, replies
        to the message, and includes the file in that message.

   (4)  send(a, "foo")
        send(b, "bar")

        This runs "foo" in window "a", then waits until completion of "foo", then
        runs "bar" in window "b".  I suppose there could be an option which
        runs it both at the same time, but I want it to block and wait
        until the "foo" is complete.

   Basically, this will behave as if I, the user, were typing in these messages
on a keyboard, except that a program now does it.  In addition, each window
may be allowed to issue "send" messages of its own, though this may complicate
matters, and is not really needed for what I want to do.

   Please send responses by e-mail.  If you know of any other group that
i could post this question to, please let me know.  My e-mail address is
listed below.  Thanks in advance.

--
Charles Lin
clin@eng.umd.edu
Newsgroups: comp.unix.questions
From: bob@cliff.NoSubdomain.NoDomain (Bob Palermo)
Subject: select(), FIFOs, ULTRIX
Organization: Image Analysis Systems Group, JPL
Date: Wed, 7 Oct 1992 00:02:55 GMT

I am experiencing a discrepancy between the way SunOS 4.1.2 and 
ULTRIX V4.2 behave when select() is used with a FIFO file descriptor.
The scenario is as follows:

CASE1:
    -  Create fifo using mkfifo
    -  Open fifo for READING with flags O_RDONLY and O_NDELAY
    -  Call select() to await pending read on the fifo

CASE2:
    -  Create fifo using mkfifo
    -  Open fifo for READING with flags O_RDONLY and O_NDELAY
>>>>-  Open fifo for WRITING with flags O_WRONLY and O_NDELAY <<<<<<<<<<
    -  Call select() to await pending read on the fifo

On a Sun SPARCstation running SunOS 4.1.2, both these cases produce the 
same result: the select() call doesn't return unless either the timer 
expires or a process writes to the FIFO.

On a VAXstation 3100 running ULTRIX V4.2, the two cases produce different
results.  In the first case, in which the FIFO is only opened for reading,
the select() call returns immediately indicating that the FIFO has a
pending read (when in fact no process has written to it). In the second
case, when this process opens the fifo for both reading and writing, it
doesn't return until either the timer has expired or a process has written 
to the FIFO.

Below is a sample program which demonstrates the problem. Under ULTRIX
if the open() for write access is removed from the program below, the 
select() call returns immediately indicating a pending read.

Why does process need to open the FIFO for both reading and writing on
ULTRIX ??


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_r, fifo_w, status;
    fd_set read_set;
    struct timeval timeout;


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

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

    /*************************************************************/
    /* If this open (for write) is not done the select() doesn't */
    /* function correctly                                        */
    /*************************************************************/
    if ((fifo_w = open("/tmp/example.fifo", O_WRONLY | O_NDELAY)) < 0) {
	perror("fifo open");
	exit(1);
    }

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

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

	status = select(FD_SETSIZE, &read_set, NULL, NULL, &timeout);
	if (status > 0) {
	    if (FD_ISSET(fifo_r,&read_set)) {
		printf("fifo read pending\n");
	    }
	}
	else if (status == 0) {
	    printf("Fifo Timer expired\n");
	}
	else {
	    perror("select");
	}
    }
}
Newsgroups: comp.unix.questions
From: fred@cv.ruu.nl (Fred Appelman)
Subject: Re: How do I send hayes commands (AT commands) to my modem?
Date: Wed, 30 Sep 1992 13:42:47 GMT
Organization: University of Utrecht, 3D Computer Vision Research Group

In <1992Sep29.132530.24212@swbatl.sbc.com> sr1691@oktext.sbc.com (Steven D. Rollins) writes:

On 26 Sep 92 22:57:12 GMT, ejh@khonshu.colorado.edu (Edward J. Hartnett) said:
> Nntp-Posting-Host: khonshu.colorado.edu

> I'm sitting here at my Sun IPC trying to think of how I connect to my
> modem (which is on ttyb). I'd like to check the settings (specifically
> the number of rings it waits before autoanswering), and there's this
> nifty table of commands on the back of the modem which I can use, but
> how do I send commands to the modem and get the answers back? In the
> PC world I'd be able to do it through my communications package, but I
> have no idea what to do on UNIX. Any help?
> 			Thanks
> --
> Edward Hartnett			ejh@khonshu.colorado.edu

You can use 'cu' to do the job. I assume you have root permission on the 
system. What you should do is set up the modem in 'direct' mode. You can do
this in the uucp file Devices typically located in /usr/lib/uucp.

An example line could be (assuming 2400 baud):

Direct ttyb,M - 2400 direct

Look in the manual page for the exact syntax, it may slightly differ. You 
must now exec the folllowing command:

cu -l ttyb -s 2400

You will now have 'a' direct connection with your modem. 

	Fred

Newsgroups: comp.unix.questions
From: mgj@franklin.ee.umr.edu (Mahesh Govind Joshi)
Subject: How to turn on the CAPS Lock key thru C on Unix ?
Date: Sun, 27 Sep 1992 07:08:10 GMT
Reply-To: mgj@ee.umr.edu (Mahesh Govind Joshi)
Organization: University of Missouri - Rolla
Originator: mgj@ee.umr.edu

Hi,

This might be a FAQ ?


I want to turn on the CAPS Lock key using 'C' on UNIX.

I know this is going to be keybopard dependant.
I know toupper() to C exixts, but that doesnt solve my problem
actually. 

Is there anything general purpose for Sun Sparcs, NCD keyboards
esp ?...

Thanks a lot in advance !!


Mahesh Joshi.
________________________________________________________________________
Mahesh Joshi 			|   Bura duniya ko hai kehta
Help Desk Consultant		|   Aisa bhola to na ban 
Snail Mail:- 1300 N. Oak Street	|   Jo hai karta,woh hai bharta	
#17, Rolla MO 65401.		|   Hai yahan ka hai chalan
Voice:(314)341-8197.		|   Takdeer nahi chalnegi yahan
Email : mgj@ee.umr.edu		|	---- Majrooh Sultanpuri---- 
------------------------------------------------------------------------
Newsgroups: comp.unix.questions
From: starr-daniel@CS.YALE.EDU (Daniel Starr)
Subject: How to uncompress "tar-z" (NOT tar.Z) files?
Keywords:  tar tar-z archive uncompress decompress 
Organization: Yale University Computer Science Dept., New Haven, CT 06520-2158
Date: Thu, 1 Oct 1992 04:29:19 GMT


I have acquired booz.tar-z from oak.oakland.edu and am at a loss for how
to convert it into working condition.  tar and ustar are clear that it's
not a tar file... so what kind of file is it?  If someone could email
me or post (1) what to use on it and (2) where to get the appropriate utility
via anonymous ftp (if appropriate) I would be most grateful.

Daniel Starr
dstarr@minerva.cis.yale.edu
"Wait! Wait! Maybe _this_ will work!"
From: 873clifton@gw.wmich.edu
Newsgroups: comp.unix.questions
Subject: Re: file with leading -
Date: 29 Sep 92 16:17:21 EST
Organization: Western Michigan University

In article <zebee.717737361@sirius.ucs.adelaide.edu.au>, zebee@sirius.ucs.adelaide.edu.au (Zebee Johnstone) writes:
> While frantically trying to find space in my root file system, I 
> came across a files called -I.
>   
> I can't examine it to find out what it is, because any command I use
> thinks the filename is an illegal switch.
>   
> Any idea how I can examine the file to find out what it is, and remove
> it if I don't want it?
> 

I'm sure this in the Unix FAQ. To refer to any file with `odd' characters
or shell metacharacters either quote the filename (cat '-I') or excape
the single character in question (cat \*name). To remove a file with a
leading dash use a single dash before the filename after your rm
command (rm - -I).

Hope this helps,

/Doug
--
Douglas Clifton [99clifto@lab.cc.wmich.edu]

Lines: 9
Date: Sat, 26 Sep 92 16:15:49 MDT
Newsgroups: comp.unix.questions
Subject: Passwd-type encryption in C programs?
Distribution: na
Organization: Brigham Young University, Provo UT USA
From: haymoree@bones.et.byu.edu (Edward Haymore)

I'd like to write a C program that encrypts passwords and stores them in
a file, like in /etc/passwd.  Is there a function I can use that'll generate
the same encryption method as passwd?


Thanks --

Ed Haymore
ed_haymore@byu.edu
From: kettering@addvax.llnl.gov (Brett 'Volleyball Is My Game' Kettering)
Newsgroups: comp.unix.questions
Subject: Configuration Management Software
Date: 29 Sep 92 16:03:00 GMT
Organization: Lawrence Livermore National Laboratory
News-Software: VAX/VMS VNEWS 1.41

Does there exist any "good" configuration management software out there.  I
know about RCS/CVS and SCCS.  What I'm looking for is something that can run
on all unix platforms.  I am not concerned about concurrent access to elements
of the libraries, so CVS is at no real advantage for that reason to me.

I would like:

  Runs on all Unix platforms.  In particular we have SGI's, RS-6000's, and
  Sun 4's.

  I don't want software that is dependent on particular versions of system
  routines, like GNU diff, etc.

  I'd like something that supports the concept of a named library, so one
  does not have to be in the parent directory of the library (as in SCCS)
  or fake it by means of soft links.

Any comments and suggestions on a configuration management system that you
like is much appreciated.

-------------------------------------------------------------------------------
Brett M. Kettering
PaperNet: LLNL P.O. Box 808 L-437 Livermore, CA.  94551
InterNet: brettk@llnl.gov
TalkNet : (510) 423-3467
FaxNet  : (510) 423-4606

"No other success can compensate for failure in the home."
                   -- David O. McKay
-------------------------------------------------------------------------------
From: kjv@exucom.com (Karl J. Vesterling)
Newsgroups: comp.unix.questions
Subject: Re: How do I send hayes commands (AT commands) to my modem?
Date: 29 Sep 92 06:57:14 GMT
Organization: ExuCom MultiMedia Inc.

In article <JDELL.92Sep27150655@maggie.mit.edu> jdell@maggie.mit.edu (John Ellithorpe) writes:
>On 26 Sep 92 22:57:12 GMT, ejh@khonshu.colorado.edu (Edward J. Hartnett) said:
>> Nntp-Posting-Host: khonshu.colorado.edu
>
>> I'm sitting here at my Sun IPC trying to think of how I connect to my
>> modem (which is on ttyb). I'd like to check the settings (specifically
>> the number of rings it waits before autoanswering), and there's this
>> nifty table of commands on the back of the modem which I can use, but
>> how do I send commands to the modem and get the answers back? In the
>> PC world I'd be able to do it through my communications package, but I
>> have no idea what to do on UNIX. Any help?
>> 			Thanks
>> --
>> Edward Hartnett			ejh@khonshu.colorado.edu
>
>Just like on a PC, you could use kermit.  I forget where on the net the UNIX
>version is.  It's just like a PC.  Just connect the the port and away you 
>go.  Mind you, I haven't done this myself, but I don't see any reason why this
>shouldn't work.
>
>John


	Sounds like he wants something that does the following:

	User Configurable:

GUI Interface

Configures your modems for different settings based upon date & time.

Eliminates anomolous behavior experienced on dialin/dialout lines.

And much much more!

	For infomration on obtaining this product
write/phone/fax/E-Mail

ExuCom Multimedia Inc.
5544 Main Street
Buffalo, NY 14221

(716) 634-6550

sales@exucom.com




-- 
-------------------------------------------------------------------------------
kjv@exucom.com				|	I was better, but I got over
Karl J. Vesterling			|	it.
From: deraad@disuns2.epfl.ch (Jerry De Raad)
Newsgroups: comp.unix.questions
Subject: Flushing a program's output buffer
Date: 2 Oct 92 08:31:50 GMT
Organization: Ecole Polytechnique Federale de Lausanne


 Hello,

	I want to filter its output on my machine. My problem is that the program's output is buffered and I only get it from time to time. Is there a way
(using a signal, forking) to force the program to flush its output?

	Thanks.

PS: Please e-mail ands I'll summary.

-- 

+-----------------------------------------------------------------------------+
| Jerry de Raad                                e-mail: deraad@disuns2.epfl.ch |
+-----------------------------------------------------------------------------+
Newsgroups: comp.unix.questions