>
> Wiggins d Anconia wrote:
>
> >It's dangerous to make blanket statements like this. Each is a tool that
> >should be understood and applied in the right manner.
> >
> I agree with this. Generally system would be the right fit for many of
> my Perl programs. However exec has it's place like
Wiggins d Anconia wrote:
It's dangerous to make blanket statements like this. Each is a tool that
should be understood and applied in the right manner.
I agree with this. Generally system would be the right fit for many of
my Perl programs. However exec has it's place like any tool.
That is w
>
> ok then I think system is more ideal for most situations.
>
It's dangerous to make blanket statements like this. Each is a tool that
should be understood and applied in the right manner. That is why it is
more important to understand the concepts of process execution,
parallelism, blocking,
Wiggins d Anconia wrote:
perldoc -f exec
Ok. makes sense.
*** Since it's a common mistake to use "exec" instead
of "system", Perl warns you if there is a followingÂ
statement which isn't "die", "warn", or "exit"***
I've pretty much decided it's either system or a filehande proces
> "DBSMITH" == DBSMITH <[EMAIL PROTECTED]> writes:
DBSMITH> from what I remember reading and was told as a best practice using exec
DBSMITH> /...// was recommended over system. For this reason exec does not
DBSMITH> create a child and therefore does not have to wait. the perl process
Subject: Re: 'system' and parallel execution (was: Re: How to call a
perl
script)
>
> Exec will shell out and run whatever exec called. At least I believe
> the correct term is "shell out". Learning Perl says in page 196 that
> exec locates the
/ TSM / EDM Teams
> >
> >
> >
> >
> >
> >
> >u235sentinel <[EMAIL PROTECTED]>
> >06/25/2004 11:58 AM
> >
> >
> >To:
> >cc: [EMAIL PROTECTED]
> >Subject:Re: 'system' and par
ach?
thanks
Derek B. Smith
OhioHealth IT
UNIX / TSM / EDM Teams
u235sentinel <[EMAIL PROTECTED]>
06/25/2004 11:58 AM
To:
cc: [EMAIL PROTECTED]
Subject: Re: 'system' and parallel execution (was: Re: How to call a perl
script)
Wiggins d Anconi
Derek B. Smith
OhioHealth IT
UNIX / TSM / EDM Teams
u235sentinel <[EMAIL PROTECTED]>
06/25/2004 11:58 AM
To:
cc: [EMAIL PROTECTED]
Subject: Re: 'system' and parallel execution (was: Re: How to call a
perl
script)
Wiggins
Wiggins d Anconia wrote:
Not exactly, it has been forked and does technically run in parallel,
however 'system' blocks your current process waiting for the child to
finish, so your process is in fact running, but it won't be doing any
work except for waiting for a signal from the child.
There are
> Beau E. Cox wrote:
>
> >On Thursday 24 June 2004 08:32 pm, Charlene Gentle wrote:
> >
> >
> >You can use the 'system' command:
> >
> >##--master--
> >...
> >my $rc = system "perl slave.pl";
> >...
> >
> >
> Does this mean it runs in parallel with the parent Perl Program?
> Reading through
11 matches
Mail list logo