in reply to Re: Hiding programs launched within wperl'd script
in thread Hiding programs launched within wperl'd script
I tried $tlist = `start /b tlist`; on XP and it still fires off the tlist window when run from wperl.exe. Just realized, I think I'm seeing the "start" window doing it this way...same problem.
Also, I originally was using Win32::Process::Info but the overhead to fire that up is insane compared to tlist. It seriously takes about 20 times the juice to do this.
I'd like to know how to do this for my own edification so that in the future I can fire off other programs I might shell out to without their windows coming up; however, my goal for this project is to check every 5 seconds or so to see if a program is running.
So if there is a low overhead way to do this, I'd love to know...I've thought I could write some daemon that keeps track of process info that I could connect to and read data from or read a text file from...but this seems like overkill for something so simple. Using Win32::Process::Info it ate 20% of my CPU...tlist took 1% sometimes.
Many thanks for your ideas!
Matt
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Hiding programs launched within wperl'd script
by markwx (Acolyte) on Jan 18, 2006 at 04:25 UTC | |
by mdog (Pilgrim) on Jan 18, 2006 at 17:56 UTC | |
by mdog (Pilgrim) on Jan 18, 2006 at 17:59 UTC | |
by mdog (Pilgrim) on Jan 18, 2006 at 23:18 UTC |