On Sep 1, 8:51 pm, [EMAIL PROTECTED] (Peter Scott) wrote:
> On Mon, 01 Sep 2008 05:45:58 -0700, sumeet .. Light my way..!! wrote:
>
>
>
> > On Sep 1, 5:08 pm, [EMAIL PROTECTED] (John W. Krahn) wrote:
> >> sumeet .. Light my way..!! wrote:
>
> >> > Hi all,
>
> >> Hello,
>
> >> > I have a problem..
> >> > I need to run / execute multiple processes SIMULTANEOUSLY ( at the
> >> > same time) . May it be system processes or any other process
> >> > For eg:- running notepad.exe , taskmgr.exe , cmd.exe , open media
> >> > player etc .. all at one go... using PERL script.
>
> >> perldoc -q "How do I start a process in the background?"
>
> >> John
> >> --
> >> Perl isn't a toolbox, but a small machine shop where you
> >> can special-order certain sorts of tools at low cost and
> >> in short order. -- Larry Wall
>
> > Thanks for the reply.
> > However i am still not clear with the details provided in the perl doc
> > Can you please elaborate in detail or show me an example of what i
> > actually want to implement
> > Eg:- running notepad.exe , taskmgr.exe , cmd.exe , open media player
> > etc .. all at one go... using PERL script.
>
> Since you are obviously running on Windows your best option is probably
> Proc::Background:
>
> http://search.cpan.org/~bzajac/Proc-Background-1.08/lib/Proc/Backgrou...
>
> I shall suggest this to the FAQ maintainer.
>
> --
> Peter Scotthttp://www.perlmedic.com/http://www.perldebugged.com/
Hey thanks for the reply. Things working slowly and steadily.I was
able to successfully run many instances of notepad.exe
simultaneously.However i am still not able to execute some exe's like
firefox.exe , wmplayer.exe , googletalk.exe etc.
I am using the following :-
$proc1 = Proc::Background->new("notepad.exe"); #
Working fine..!!
$proc2 = Proc::Background->new("taskmgr.exe"); #
Working fine..!!
$proc3 = Proc::Background->new("notepad.exe"); #
Working fine..!! 2nd instance
$proc4 = Proc::Background->new("cmd.exe"); #
Not working
$proc5 = Proc::Background-
>new("firefox.exe");
# Not working
$proc6 = Proc::Background->new("C:\Program Files\Mozilla Firefox
\firefox.exe"); # Not working
$proc6 = Proc::Background-
>new("googletalk.exe");
# Not working
$proc7 = Proc::Background->new("C:\Program Files\Google\Google Talk
\googletalk.exe)" # Not working
$proc8 = Proc::Background->new("explorer.exe"); #
Working ..!!
Reference for Proc::Background :-
http://search.cpan.org/~bzajac/Proc-Background-1.08/lib/Proc/Background.pm
Please Help..!!
Thanks and Regards,
Sumeet
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/