[26610] in Perl-Users-Digest

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

Perl-Users Digest, Issue: 8722 Volume: 10

daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Fri Dec 2 11:05:27 2005

Date: Fri, 2 Dec 2005 08:05:06 -0800 (PST)
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)

Perl-Users Digest           Fri, 2 Dec 2005     Volume: 10 Number: 8722

Today's topics:
    Re: [Noob] IPC <tadmc@augustmail.com>
    Re: FAQ 6.9 What is "/o" really for? <rvtol+news@isolution.nl>
    Re: lookfor failure in SerialPort <cNaOlSePbA@MvPeLtEsAtSaEr.com>
        pid <snort_sam@yahoo.com>
    Re: pid <jurgenex@hotmail.com>
    Re: pid <snort_sam@yahoo.com>
    Re: pid <jurgenex@hotmail.com>
        Digest Administrivia (Last modified: 6 Apr 01) (Perl-Users-Digest Admin)

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

Date: Fri, 2 Dec 2005 06:50:16 -0600
From: Tad McClellan <tadmc@augustmail.com>
Subject: Re: [Noob] IPC
Message-Id: <slrndp0go8.2o6.tadmc@magna.augustmail.com>

noob <n00b@n00b.noob> wrote:

> I'm new in this newsgroup 


Then you should probably check out the Posting Guidelines that
are posted here frequently.


> and my english is very poor because I'm 
> italian. 


That's fine, there is no need to apologize for that.


> I'm programming perl for 2 days and I'm still noob.


Perl ships with thousands of pages of documentation that is part
of a normal install, include some Frequently Asked Questions.

You should consult those docs as a first step to finding answers.


> My question is: 


Likely to have already been asked (and answered), all you need to
do is find it.

The First Place to look is in the Perl FAQs.


> how I can to launch a script that run a group of scripts 
> in parallel running and waits until the last script has finished?


I assume that you know what the "P" in IPC stands for, so:

   perldoc -q process

       How do I start a process in the background?


-- 
    Tad McClellan                          SGML consulting
    tadmc@augustmail.com                   Perl programming
    Fort Worth, Texas


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

Date: Fri, 2 Dec 2005 16:12:05 +0100
From: "Dr.Ruud" <rvtol+news@isolution.nl>
Subject: Re: FAQ 6.9 What is "/o" really for?
Message-Id: <dmps5d.17c.1@news.isolution.nl>

PerlFAQ Server:

> 6.9: What is "/o" really for?
>
>     Using a variable in a regular expression match forces a
>     re-evaluation (and perhaps recompilation) each time the regular
>     expression is encountered. The "/o" modifier locks in the regex
>     the first time it's used. This always happens in a constant
>     regular expression, and in fact, the pattern was compiled into
>     the internal format at the same time your entire program was.
>
>     Use of "/o" is irrelevant unless variable interpolation is used
>     in the pattern, and if so, the regex engine will neither know nor
>     care whether the variables change after the pattern is evaluated
>     the *very first* time.
>
>     "/o" is often used to gain an extra measure of efficiency by not
>     performing subsequent evaluations when you know it won't matter
>     (because you know the variables won't change), or more rarely,
>     when you don't want the regex to notice if they do.

AFAIK, and from a certain version of Perl, the regex engine can
(always?) decide that the result of the previous interpolation is still
valid, so that even without '/o' the re-evaluation takes no significant
time.

-- 
Affijn, Ruud

"Gewoon is een tijger."



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

Date: Fri, 02 Dec 2005 08:18:35 -0600
From: Spin <cNaOlSePbA@MvPeLtEsAtSaEr.com>
Subject: Re: lookfor failure in SerialPort
Message-Id: <11p0ltghg1voia5@corp.supernews.com>

Spin wrote:
> 
> Troubleshooting help or any advice greatfully received.

Actually, the most effective way to use lookfor in conjunction with a 
serial connection is to make sure that the machine at the far end of the 
  cable is turned on. There are, indeed, some disadvantages to 
telecommuting...

Spin


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

Date: Sat, 03 Dec 2005 00:02:52 +1100
From: bsder <snort_sam@yahoo.com>
Subject: pid
Message-Id: <43904600$1@news.rivernet.com.au>

Hi,

Can anyone please tell me how to print a process ID (PID)?

Thanks
Sam


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

Date: Fri, 02 Dec 2005 13:26:26 GMT
From: "Jürgen Exner" <jurgenex@hotmail.com>
Subject: Re: pid
Message-Id: <6YXjf.1482$fY3.845@trnddc01>

bsder wrote:
> Can anyone please tell me how to print a process ID (PID)?

perldoc -f print
perldoc perlvar

jue 




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

Date: Sat, 03 Dec 2005 00:52:21 +1100
From: bsder <snort_sam@yahoo.com>
Subject: Re: pid
Message-Id: <43905198$1@news.rivernet.com.au>

bsder wrote:
> Hi,
> 
> Can anyone please tell me how to print a process ID (PID)?
> 
> Thanks
> Sam

I want to print a child process ID, not a script id.

Sam.


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

Date: Fri, 02 Dec 2005 14:02:16 GMT
From: "Jürgen Exner" <jurgenex@hotmail.com>
Subject: Re: pid
Message-Id: <ItYjf.5$Bs2.4@trnddc01>

bsder wrote:
> bsder wrote:
>> Can anyone please tell me how to print a process ID (PID)?
>
> I want to print a child process ID, not a script id.

Then why on earth didn't you say so to begin with but lead us on a wild 
goose chase?

perldoc -f print
perldoc -f fork (oay particular attention to the return value of fork)

jue 




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

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 V10 Issue 8722
***************************************


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