sumeet .. Light my way..!! wrote:
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 ..!!
perldoc perlport
[ *snip* ]
system In general, do not assume the UNIX/POSIX semantics that you
can shift $? right by eight to get the exit value, or that
[ *snip* ]
As an optimization, may not call the command shell specified
in $ENV{PERL5SHELL}. "system(1, @args)" spawns an external
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
process and immediately returns its process designator,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
without waiting for it to terminate. Return value may be
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
used subsequently in "wait" or "waitpid". Failure to
spawn() a subprocess is indicated by setting $? to "255 <<
8". $? is set in a way compatible with Unix (i.e. the
exitstatus of the subprocess is obtained by "$? >> 8", as
described in the documentation). (Win32)
^^^^^^^
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
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/