Re: How to call a perl script....

2004-06-25 Thread Beau E. Cox
On Friday 25 June 2004 04:30 am, u235sentinel wrote: > 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 p

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

Re: How to call a perl script....

2004-06-25 Thread u235sentinel
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 "Learning Perl 3rd Edition" and I thought I c

Re: How to call a perl script....

2004-06-25 Thread Gabor Urban
On Fri, 2004-06-25 at 08:32, Charlene Gentle wrote: I think you should ty the do 'filename' command. Look it up in the perlfunc manual on CPAN. Gabaux > Hi > > How do you call 'n perl script from within a perl script and return to > the scripts again. > > > > Thanx -- To unsubscribe, e-ma

Re: How to call a perl script....

2004-06-24 Thread Beau E. Cox
On Thursday 24 June 2004 08:32 pm, Charlene Gentle wrote: > Hi > > How do you call 'n perl script from within a perl script and return to > the scripts again. > > > > Thanx You can use the 'system' command: ##--master-- ... my $rc = system "perl slave.pl"; ... or backtics if you want to capture

How to call a perl script....

2004-06-24 Thread Charlene Gentle
Hi How do you call 'n perl script from within a perl script and return to the scripts again. Thanx -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]