[29659] in Perl-Users-Digest

home help back first fref pref prev next nref lref last post

Perl-Users Digest, Issue: 903 Volume: 11

daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Wed Oct 3 21:14:17 2007

Date: Wed, 3 Oct 2007 18:14:11 -0700 (PDT)
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)

Perl-Users Digest           Wed, 3 Oct 2007     Volume: 11 Number: 903

Today's topics:
    Re: The Modernization of Emacs: terminology buffer and  <rjack@com>
    Re: The Modernization of Emacs: terminology buffer and  <lew@lewscanon.com>
    Re: The Modernization of Emacs: terminology buffer and  (Bent C Dalager)
    Re: The Modernization of Emacs: terminology buffer and  <lew@lewscanon.com>
    Re: The Modernization of Emacs: terminology buffer and   dan@telent.net
    Re: The Modernization of Emacs: terminology buffer and  <rjack@com>
    Re: Trying to start a perl script as Windows Service <dn.perl@gmail.com>
    Re: Trying to start a perl script as Windows Service <ben@morrow.me.uk>
    Re: using IPC::Open3 to write to *and* read from a proc (Darren Dunham)
        Digest Administrivia (Last modified: 6 Apr 01) (Perl-Users-Digest Admin)

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

Date: Wed, 03 Oct 2007 16:53:46 -0400
From: rjack <rjack@com>
Subject: Re: The Modernization of Emacs: terminology buffer and keybinding
Message-Id: <Vq-dnfzSmOiOn5nanZ2dnUVZ_g6dnZ2d@insightbb.com>

Webster? WEBSTER. . . ?

Whatever happened to the Oxford English Dictionary ?
Seems to me the English have always spoken the definitive
English. . . that's why they call it ENGLISH.


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

Date: Wed, 03 Oct 2007 17:07:18 -0400
From: Lew <lew@lewscanon.com>
Subject: Re: The Modernization of Emacs: terminology buffer and keybinding
Message-Id: <rPudneeXHZYbmZnanZ2dnUVZ_qjinZ2d@comcast.com>

Bent C Dalager wrote:
> In article <85hcl8qaj7.fsf@lola.goethe.zz>, David Kastrup  <dak@gnu.org> wrote:
>> bcd@pvv.ntnu.no (Bent C Dalager) writes:
>>
>>> I have never claimed equivalence. What I have made claims about are
>>> the properties of one of the meanings of a word. Specifically, my
>>> claim is that "free" is a reasonable description of some one or some
>>> thing that has been "liberated".
>> But it suggests that the natural state would be the unfree state.
> 
> Would this be a good thing? Would it be a bad thing? What is your
> point?

"There's no easy way to be free."

"The price of freedom is eternal vigilance."

Freedom is not natural.  It must be defended.

-- 
Lew


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

Date: Wed, 3 Oct 2007 21:09:43 +0000 (UTC)
From: bcd@pvv.ntnu.no (Bent C Dalager)
Subject: Re: The Modernization of Emacs: terminology buffer and keybinding
Message-Id: <fe10en$hmk$1@orkan.itea.ntnu.no>

In article <Vq-dnfzSmOiOn5nanZ2dnUVZ_g6dnZ2d@insightbb.com>,
rjack  <rjack@com> wrote:
>Webster? WEBSTER. . . ?
>
>Whatever happened to the Oxford English Dictionary ?

It suffers from not being in my "dict" installation I suppose.

>Seems to me the English have always spoken the definitive
>English. . . that's why they call it ENGLISH.

Unfortunately, these days English almost always means American English
and if you want British English you have to specify that explicitly.

But I don't actually think that the difference is significant to the
current controversy surrounding the interpretation of the word "free".

Cheers
	Bent D
-- 
Bent Dalager - bcd@pvv.org - http://www.pvv.org/~bcd
                                    powered by emacs


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

Date: Wed, 03 Oct 2007 17:14:53 -0400
From: Lew <lew@lewscanon.com>
Subject: Re: The Modernization of Emacs: terminology buffer and keybinding
Message-Id: <OaSdnekikd7Tm5nanZ2dnUVZ_vumnZ2d@comcast.com>

rjack wrote:
> Webster? WEBSTER. . . ?
> 
> Whatever happened to the Oxford English Dictionary ?
> Seems to me the English have always spoken the definitive
> English. . . that's why they call it ENGLISH.

What is in a name?  A rose by any other name would still smell as sweet.

-- 
Lew


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

Date: Wed, 03 Oct 2007 23:07:32 +0100
From:  dan@telent.net
Subject: Re: The Modernization of Emacs: terminology buffer and keybinding
Message-Id: <47041303$0$13930$fa0fcedb@news.zen.co.uk>

George Neuner wrote:
> Symbolism over substance has become the mantra
> of the young.

"Symbolism: The practice of representing things by means of symbols or 
of attributing symbolic meanings or significance to objects, events, or 
relationships."

One might even suggest that all written language is based on the use of 
words as symbols.

"Substance: (2)
    a. Essential nature; essence.
    b. Gist; heart."

"Mantra: A sacred verbal formula repeated in prayer, meditation, or 
incantation, such as an invocation of a god, a magic spell, or a 
syllable or portion of scripture containing mystical potentialities."

Perhaps the young people you're referring to are not the same young 
people that I know, because I've never even heard of a religion whose 
object of reverence is meta-level analysis of language.

Tell me, do you know what "hyperbole" means?


-dan "or 'rhetorical'"


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

Date: Wed, 03 Oct 2007 20:34:31 -0400
From: rjack <rjack@com>
Subject: Re: The Modernization of Emacs: terminology buffer and keybinding
Message-Id: <VtWdnWBKe9ZMqJnanZ2dnUVZ_uqvnZ2d@insightbb.com>


 >Tell me, do you know what "hyperbole" means?

Betcha' Ludwig Wittgenstein coulda' told ya'!



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

Date: Wed, 03 Oct 2007 21:10:23 -0000
From:  "dn.perl@gmail.com" <dn.perl@gmail.com>
Subject: Re: Trying to start a perl script as Windows Service
Message-Id: <1191445823.235125.218970@19g2000hsx.googlegroups.com>


On Sep 28, 9:45 am, "dn.p...@gmail.com" <dn.p...@gmail.com> wrote:
>
> I created a service for the perl script. When I start the service, it
> stops immediately.
>

This could be more a Windows problem that a perl one.

Having failed to start a perl script as a service on Windows XP, I
tried to start it via scheduler. The script

prints a line every 10 seconds to a file and runs continuously. I
tried to run it under perl and also wperl. The

script should run even when I am logged off, but I failed to manage it
both with perl and wperl.

Case 1 : If I am logged in when the scheduler starts the script, the
script terminates when I log off.
Case 2 : If I am not logged in when the scheduler starts it, the
script continues when I log off.
I don't want it to terminate in case 1 either.

If the script is started under perl (as against wperl), whether by the
scheduler or manually, and I try to log off,

I get the standard error message: Windows cannot end this program, etc
etc.
Two choices are offered : End Now or Cancel. If I cancel, and try
logging off again, this time Windows does end the program, and logs me
off. The script is terminated.

I want to achieve an effect similar to 'nohup' wherein the program
keeps running after the session which initiated it is terminated. But
'srvany.exe' from Windows Resource Kit isn't making it possible and
running it as Scheduled Process (or running it as service) is also not
working.




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

Date: Wed, 3 Oct 2007 23:20:27 +0100
From: Ben Morrow <ben@morrow.me.uk>
Subject: Re: Trying to start a perl script as Windows Service
Message-Id: <b6hdt4-642.ln1@osiris.mauzo.dyndns.org>


Quoth "dn.perl@gmail.com" <dn.perl@gmail.com>:
> On Sep 28, 5:30 pm, Ben Morrow <b...@morrow.me.uk> wrote:
> >
> > To run an arbitrary program as a windows service you need to use srvany
> > from the Resource Kit. I don't really know why, but it's to do with how
> > Windows expects a service to behave.
> Seehttp://support.microsoft.com/kb/137890.
> >
> 
> I have used srvany from the Resource Kit and followed the steps from
> the above URL. But the service stops immediately after I start it. It
> is supposed to print one line every 20 seconds to a file in an
> infinite loop. It is not supposed to print anything to stdout, so it
> should really run in the background and the question of it having 'no
> place' to print (as suggested by Bill H) does not exist. Some services
> stop after starting because 'they have nothing to do'. But this
> process does have something to do and yet it stops.

Can you try reopening STDERR to a file somewhere (probably best if you
open it in append mode) *really* early on in your script? Something like

    BEGIN {
        # no point giving a sensible message as there's nowhere for it
        # to go :(
        open STDERR, '>>', 'c:/path/to/log.file' or die;
    }

right at the top. Then you've got more of a chance of finding out what's
wrong. I suspect it's some sort of environment issue: perhaps the local
SYSTEM user doesn't have some permission it requires?

Ben



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

Date: Wed, 03 Oct 2007 22:41:38 GMT
From: ddunham@taos.com (Darren Dunham)
Subject: Re: using IPC::Open3 to write to *and* read from a process...
Message-Id: <CUUMi.54868$Um6.30128@newssvr12.news.prodigy.net>

RU <ru@vakuum.de> wrote:
> Hi Folks,
> 
> I'm currently working on some cluster scripts which, among other things, 
> need to start and stop oracle.  The typical (/bin/sh) nasty cluster 
> script does something like:
> 
> #!/bin/sh
> su -m oracle -c "sqlplus / as sysdba"<<_EOF_
> startup
> _EOF_
> 
> -snip-
> 
> I'm trying to provide the same (or better) functionality using more-or-
> less pure perl.  I have come up with a subroutine ("run_process()") which 
> I will include at the bottom.   I'm using select to determine if there is 
> output on STDOUT or STDERR, and if I can write to the process on STDIN 

Do you need to differentiate between STDOUT/STDERR, or is it enough to
just receive all the data between them on a single filehandle?

If so, you could just sysread at the end until you get '0'.  That would
guarantee you have read all the data.

> Also, you may notice that I keep a count of open output filedescriptors 
> STDOUT and STDERR, and leave the while-loop when the count reaches zero.  
> Unfortunately this does not work, as STDERR doesn't get closed 
> (apparently) when the child process terminates, or at least the method I 
> used doesn't notice it.  Any comments?

I'm not sure what you mean by 'doesn't get closed'.  Filehandles are
closed by you explicitly.  Perhaps you mean you're not detecting eof on
the read and asking it to close?  That would imply that your sysread is
either returning data, or it's blocking.  Is that correct?  If so, which
is occuring?

-- 
Darren Dunham                                           ddunham@taos.com
Senior Technical Consultant         TAOS            http://www.taos.com/
Got some Dr Pepper?                           San Francisco, CA bay area
         < This line left intentionally blank to confuse you. >


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

Date: 6 Apr 2001 21:33:47 GMT (Last modified)
From: Perl-Users-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin) 
Subject: Digest Administrivia (Last modified: 6 Apr 01)
Message-Id: <null>


Administrivia:

#The Perl-Users Digest is a retransmission of the USENET newsgroup
#comp.lang.perl.misc.  For subscription or unsubscription requests, send
#the single line:
#
#	subscribe perl-users
#or:
#	unsubscribe perl-users
#
#to almanac@ruby.oce.orst.edu.  

NOTE: due to the current flood of worm email banging on ruby, the smtp
server on ruby has been shut off until further notice. 

To submit articles to comp.lang.perl.announce, send your article to
clpa@perl.com.

#To request back copies (available for a week or so), send your request
#to almanac@ruby.oce.orst.edu with the command "send perl-users x.y",
#where x is the volume number and y is the issue number.

#For other requests pertaining to the digest, send mail to
#perl-users-request@ruby.oce.orst.edu. Do not waste your time or mine
#sending perl questions to the -request address, I don't have time to
#answer them even if I did know the answer.


------------------------------
End of Perl-Users Digest V11 Issue 903
**************************************


home help back first fref pref prev next nref lref last post