Depending on your scripts you're running you can use Win32::Process where you can launch more than one program.
Here's a simple example:
#!/usr/bin/perl use warnings; use strict; use Win32; use Win32::Process; my $ProcessObj; Win32::Process::Create($ProcessObj, "C:\\perl\\bin\\perl.exe", "perl c:\\script1.pl", 0, NORMAL_PRIORITY_CLASS, ".")|| die ErrorReport(); sleep 2; Win32::Process::Create($ProcessObj, "C:\\perl\\bin\\perl.exe", "perl c:\\script2.pl", 0, NORMAL_PRIORITY_CLASS, ".")|| die ErrorReport(); exit; sub ErrorReport{ print Win32::FormatMessage( Win32::GetLastError() ); }
Will execute 2 perl scripts 2 seconds apart. Hope it helps.
In reply to Re: Can I auto-launch multiple perl apps in different command windows?
by Scrat
in thread Can I auto-launch multiple perl apps in different command windows?
by cormanaz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |