From mboxrd@z Thu Jan 1 00:00:00 1970 From: Anders Norlander To: "David's Lightspeed Email" Cc: cygwin@sourceware.cygnus.com Subject: Re: Access to Win32 Processes from shell Date: Thu, 04 Mar 1999 02:06:00 -0000 Message-id: <36DE5B01.3B5DAE5@hem2.passagen.se> References: <19990303190027.24958.rocketmail@send103.yahoomail.com> X-SW-Source: 1999-03/msg00090.html Earnie Boyd wrote: > > ---David's Lightspeed Email wrote: > 8< > > I'm launching processes from Perl scripts using backticks and the > system > > command, and it seems that Windows is stealing my processes from me > > sometimes. Although the application is running, and the window is > visible, > > I look for the process with "ps -ef", and it is nowhere to be found. > Where > > did it go? > > > > What I'm doing is automating IExplorer launches to retrieve http > documents. > > Once I have the documents, though, I need to kill the window, > otherwise my > > screen starts filling up with hundreds of icons. > > > > Any clues? > 8< > > The processes for non-cygwin binaries cannot be mapped to a cygwin > process. Therefore you will not see the process with the ps command. > You might use the CreateProcess function instead and use the handle > returned by it to control the window/process created. That's not quite right. David, are you using a non-cygwin perl, like ActiveState? If that is the case that is likely your problem. The system command probably uses command.com/cmd.exe to execute commands and at least command.com does not wait for win32 gui processes to complete. If you are using a cygwin perl, my guess is that IE starts another process that is *not* mapped by cygwin. Try using lynx or wget. Anders -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe@sourceware.cygnus.com From mboxrd@z Thu Jan 1 00:00:00 1970 From: Anders Norlander To: "David's Lightspeed Email" Cc: cygwin@sourceware.cygnus.com Subject: Re: Access to Win32 Processes from shell Date: Wed, 31 Mar 1999 19:45:00 -0000 Message-ID: <36DE5B01.3B5DAE5@hem2.passagen.se> References: <19990303190027.24958.rocketmail@send103.yahoomail.com> X-SW-Source: 1999-03n/msg00090.html Message-ID: <19990331194500._BE4zXGdkt7MYpJ0_VRhWBrpLAkD-Ie0XsaMBbe9ra8@z> Earnie Boyd wrote: > > ---David's Lightspeed Email wrote: > 8< > > I'm launching processes from Perl scripts using backticks and the > system > > command, and it seems that Windows is stealing my processes from me > > sometimes. Although the application is running, and the window is > visible, > > I look for the process with "ps -ef", and it is nowhere to be found. > Where > > did it go? > > > > What I'm doing is automating IExplorer launches to retrieve http > documents. > > Once I have the documents, though, I need to kill the window, > otherwise my > > screen starts filling up with hundreds of icons. > > > > Any clues? > 8< > > The processes for non-cygwin binaries cannot be mapped to a cygwin > process. Therefore you will not see the process with the ps command. > You might use the CreateProcess function instead and use the handle > returned by it to control the window/process created. That's not quite right. David, are you using a non-cygwin perl, like ActiveState? If that is the case that is likely your problem. The system command probably uses command.com/cmd.exe to execute commands and at least command.com does not wait for win32 gui processes to complete. If you are using a cygwin perl, my guess is that IE starts another process that is *not* mapped by cygwin. Try using lynx or wget. Anders -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe@sourceware.cygnus.com