Hi All,
I am after a way in which I can run 2 perl programs in parallel..
Currently I have the following code which executes 2 programs consecutively, (not concurrently) ..
While (1 = 1)
{
system "perl Program1.pl" || die "Cannot open";
system "perl Program2.pl" || die "Cannot open";
sleep 20;
}
How can I make ‘Program1’ and ‘Program2’ run in parallel? And taking into account that each program must die after it has finished because of the infinite loop..
Thanks All,
Regards,
JD
I am after a way in which I can run 2 perl programs in parallel..
Currently I have the following code which executes 2 programs consecutively, (not concurrently) ..
While (1 = 1)
{
system "perl Program1.pl" || die "Cannot open";
system "perl Program2.pl" || die "Cannot open";
sleep 20;
}
How can I make ‘Program1’ and ‘Program2’ run in parallel? And taking into account that each program must die after it has finished because of the infinite loop..
Thanks All,
Regards,
JD