Re: 'system' and parallel execution (was: Re: How to call a perl script....)

2004-06-25 Thread Wiggins d Anconia
> > 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

Re: 'system' and parallel execution (was: Re: How to call a perl script....)

2004-06-25 Thread u235sentinel
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

Re: 'system' and parallel execution (was: Re: How to call a perl script....)

2004-06-25 Thread Wiggins d Anconia
> > 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,

Re: 'system' and parallel execution (was: Re: How to call a perl script....)

2004-06-25 Thread u235sentinel
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

Re: 'system' and parallel execution (was: Re: How to call a perl script....)

2004-06-25 Thread Randal L. Schwartz
> "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

Re: 'system' and parallel execution (was: Re: How to call a perl script....)

2004-06-25 Thread DBSMITH
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

Re: 'system' and parallel execution (was: Re: How to call a perl script....)

2004-06-25 Thread Wiggins d Anconia
/ TSM / EDM Teams > > > > > > > > > > > > > >u235sentinel <[EMAIL PROTECTED]> > >06/25/2004 11:58 AM > > > > > >To: > >cc: [EMAIL PROTECTED] > >Subject:Re: 'system' and par

Re: 'system' and parallel execution (was: Re: How to call a perl script....)

2004-06-25 Thread u235sentinel
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

Re: 'system' and parallel execution (was: Re: How to call a perl script....)

2004-06-25 Thread DBSMITH
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

Re: 'system' and parallel execution (was: Re: How to call a perl script....)

2004-06-25 Thread u235sentinel
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

'system' and parallel execution (was: Re: How to call a perl script....)

2004-06-25 Thread Wiggins d Anconia
> 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