> I have a script I want to run 6 instances of it simultaneously.
> So I have a calling script to loop 6 times using exec to run it.
> But my calling script always dies after the first loop.
>
> Calling script:
> #!/usr/local/bin/perl
> use strict;
>
> my ($i);
> print "TEST1\n";
> for ($i = 1; $i <= 6; $i++) {
> print "Running script $i\n";
> exec "perl search2.pl $i";
> print "Ran script $i\n";
> }
> print "TEST2\n";
>
> Output:
> In engine 1
> End engine 1
When I test it, it does print the TEST1 message..
> Anyone has any suggestions why it stops running the other instances?
> And why the calling script doesn't print out its test statements?
> And any suggestions how to call these instances simultaneously
> (other than using fork? becos I'm not too sure how to use it... :|)
you could replace `exec' with `do', that works at least,
I have no clue why exec fails tho..
Regards,
Chris
Was something said, a few minutes ago, about the availability of caffeinated
beverages?
[EMAIL PROTECTED] [SorinRoke]
---
You are currently subscribed to perl-win32-users as: [archive@jab.org]
To unsubscribe, forward this message to
[EMAIL PROTECTED]
For non-automated Mailing List support, send email to
[EMAIL PROTECTED]