Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

Re^2: Win32::Process vs Win32::Job vs ????

by roho (Abbot)
on Feb 28, 2011 at 20:01 UTC ( #890627=note: print w/replies, xml ) Need Help??

in reply to Re: Win32::Process vs Win32::Job vs ????
in thread Win32::Process vs Win32::Job vs ????

Thanks for the suggestion, but I moved from running "start /min ..." in a system call to Win32::Process so I could kill the process via its process id later in the same script, and that all works fine. My current "minimize" workaround (which I don't particularly like) is to sleep x number of seconds after launching the first program via Win32::Process to give the program time to initialize and start running (takes a little while), before starting the second program. This allows the second program to be in the foreground hiding the first program, which is why I wanted to run the first program minimized. It's not a perfect solution, but it does what I need for now. I agree it's a shame Win32::Process does not accept window attributes.

"Its not how hard you work, its how much you get done."

  • Comment on Re^2: Win32::Process vs Win32::Job vs ????

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://890627]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (6)
As of 2016-10-25 23:48 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (330 votes). Check out past polls.