public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Anders Norlander <anorland@hem2.passagen.se>
To: "David's Lightspeed Email" <dpainter@lightspeed.net>
Cc: cygwin@sourceware.cygnus.com
Subject: Re: Access to Win32 Processes from shell
Date: Thu, 04 Mar 1999 02:06:00 -0000	[thread overview]
Message-ID: <36DE5B01.3B5DAE5@hem2.passagen.se> (raw)
In-Reply-To: <19990303190027.24958.rocketmail@send103.yahoomail.com>

Earnie Boyd wrote:
> 
> ---David's Lightspeed Email <dpainter@lightspeed.net> 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

WARNING: multiple messages have this Message-ID
From: Anders Norlander <anorland@hem2.passagen.se>
To: "David's Lightspeed Email" <dpainter@lightspeed.net>
Cc: cygwin@sourceware.cygnus.com
Subject: Re: Access to Win32 Processes from shell
Date: Wed, 31 Mar 1999 19:45:00 -0000	[thread overview]
Message-ID: <36DE5B01.3B5DAE5@hem2.passagen.se> (raw)
Message-ID: <19990331194500._BE4zXGdkt7MYpJ0_VRhWBrpLAkD-Ie0XsaMBbe9ra8@z> (raw)
In-Reply-To: <19990303190027.24958.rocketmail@send103.yahoomail.com>

Earnie Boyd wrote:
> 
> ---David's Lightspeed Email <dpainter@lightspeed.net> 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


  reply	other threads:[~1999-03-04  2:06 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-03-03 10:59 Earnie Boyd
1999-03-04  2:06 ` Anders Norlander [this message]
1999-03-31 19:45   ` Anders Norlander
1999-03-31 19:45 ` Earnie Boyd
  -- strict thread matches above, loose matches on Subject: below --
1999-03-03 10:12 David's Lightspeed Email
1999-03-31 19:45 ` David's Lightspeed Email

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=36DE5B01.3B5DAE5@hem2.passagen.se \
    --to=anorland@hem2.passagen.se \
    --cc=cygwin@sourceware.cygnus.com \
    --cc=dpainter@lightspeed.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).