public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Re: Access to Win32 Processes from shell
@ 1999-03-03 10:59 Earnie Boyd
  1999-03-04  2:06 ` Anders Norlander
  1999-03-31 19:45 ` Earnie Boyd
  0 siblings, 2 replies; 6+ messages in thread
From: Earnie Boyd @ 1999-03-03 10:59 UTC (permalink / raw)
  To: David's Lightspeed Email, cygwin

---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.
==
-                        \\||//
-------------------o0O0--Earnie--0O0o-------------------
--                earnie_boyd@yahoo.com               --
-- http://www.freeyellow.com/members5/gw32/index.html --
----------------------ooo0O--O0ooo----------------------

PS: Newbie's, you should visit my page.
_________________________________________________________
DO YOU YAHOO!?
Get your free @yahoo.com address at http://mail.yahoo.com


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Access to Win32 Processes from shell
  1999-03-03 10:59 Access to Win32 Processes from shell Earnie Boyd
@ 1999-03-04  2:06 ` Anders Norlander
  1999-03-31 19:45   ` Anders Norlander
  1999-03-31 19:45 ` Earnie Boyd
  1 sibling, 1 reply; 6+ messages in thread
From: Anders Norlander @ 1999-03-04  2:06 UTC (permalink / raw)
  To: David's Lightspeed Email; +Cc: cygwin

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Access to Win32 Processes from shell
  1999-03-04  2:06 ` Anders Norlander
@ 1999-03-31 19:45   ` Anders Norlander
  0 siblings, 0 replies; 6+ messages in thread
From: Anders Norlander @ 1999-03-31 19:45 UTC (permalink / raw)
  To: David's Lightspeed Email; +Cc: cygwin

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


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Access to Win32 Processes from shell
  1999-03-03 10:59 Access to Win32 Processes from shell Earnie Boyd
  1999-03-04  2:06 ` Anders Norlander
@ 1999-03-31 19:45 ` Earnie Boyd
  1 sibling, 0 replies; 6+ messages in thread
From: Earnie Boyd @ 1999-03-31 19:45 UTC (permalink / raw)
  To: David's Lightspeed Email, cygwin

---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.
==
-                        \\||//
-------------------o0O0--Earnie--0O0o-------------------
--                earnie_boyd@yahoo.com               --
-- http://www.freeyellow.com/members5/gw32/index.html --
----------------------ooo0O--O0ooo----------------------

PS: Newbie's, you should visit my page.
_________________________________________________________
DO YOU YAHOO!?
Get your free @yahoo.com address at http://mail.yahoo.com


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Access to Win32 Processes from shell
  1999-03-03 10:12 David's Lightspeed Email
@ 1999-03-31 19:45 ` David's Lightspeed Email
  0 siblings, 0 replies; 6+ messages in thread
From: David's Lightspeed Email @ 1999-03-31 19:45 UTC (permalink / raw)
  To: cygwin

                                    March 2nd, 1999

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?
                                     David L. Painter
                                     dpainter@prontomail.com
                                     dpainter@lightspeed.net
                                     ph: (559) 292-5366 * 3
                                     fax:(559) 292-0410
-----Original Message-----
From: Daniel-Wittenberg@uiowa.edu <Daniel-Wittenberg@uiowa.edu>
To: David's Lightspeed Email <dpainter@lightspeed.net>
Date: Wednesday, March 03, 1999 9:45 AM
Subject: Re: WinTerm Shell for Win32


>
>
>
>oh, 95, not sure.  I don't have access to a 9x box, just NT, so not sure
about
>that.  I don't remember seeing a console control panel under 95, but ti's
been
>awhile since I worked on it.  I'm actually a Unix admin, so I too missed
the
>scrollback until someone showed me it would work, now I run bash with
cygwin all
>the time on NT.
>
>Good luck...
>
>Dan
>
>
>
>
>
>"David's Lightspeed Email" <dpainter@lightspeed.net>
>03/03/99 11:37 AM
>
>To:   Dan Wittenberg/UNV_IOWA@UNV_IOWA
>cc:
>
>Subject:  Re: WinTerm Shell for Win32
>
>
>
>
>
>                                    March 3rd, 1999
>Daniel,
>
>thanks for the feedback.
>I'm running Win95 though, not NT.
>Are you sure this'll work?
>
>                                     David L. Painter
>                                     dpainter@prontomail.com
>                                     dpainter@lightspeed.net
>                                     ph: (559) 292-5366 * 3
>                                     fax:(559) 292-0410
>-----Original Message-----
>From: Daniel-Wittenberg@uiowa.edu <Daniel-Wittenberg@uiowa.edu>
>To: David's Lightspeed Email <dpainter@lightspeed.net>
>Date: Wednesday, March 03, 1999 9:08 AM
>Subject: Re: WinTerm Shell for Win32
>
>
>>
>>
>>
>>Just in case you didn't realize (and I didn't for a while) that you can
>setup
>>scrolling on the NT windows...through the console control panel, just set
>your
>>scroll back higher and the scroll bar appears...
>>
>>Dan
>>
>>
>>
>>
>>
>>"David's Lightspeed Email" <dpainter@lightspeed.net>
>>03/03/99 10:59 AM
>>
>>To:   cygwin@sourceware.cygnus.com
>>cc:    (bcc: Dan Wittenberg/UNV_IOWA)
>>
>>Subject:  WinTerm Shell for Win32
>>
>>
>>
>>
>>
>>                                    March 3rd, 1999
>>
>>In the last few weeks, I've been able to successfully reinstall the Cygnus
>>utilities on my Win32/Win95 machine, and I now have all of the following
>>shells working properly:
>>
>>MS-DOS Shell
>>Bourne Shell
>>BASH Shell
>>TCSH Shell
>>TCL Shell
>>
>>My problem is that the NONE of these is as naturally friendly as the
>WinTerm
>>that I was accustomed to using on SGI IRIX and Sun Solaris.  In
particular,
>>I'd like to set these shells up with CUT/PASTE/COPY operations, and be
able
>>to configure simple X-Term properties like FONT, COLORS, and SCROLLBARS.
>>
>>I do have an X-Server here(RWIN by WRQ), but I never really use it for
>>anything other than an occasionally rlogin or telnet.  Is there anyway
that
>>I can use the X-Server with the shells above to in effect emulate a native
>>X-Term window with full functionality?
>>
>>Any comments appreciated.
>>
>>D.L.
>>
>>
>>
>>                                     David L. Painter
>>                                     dpainter@prontomail.com
>>                                     dpainter@lightspeed.net
>>                                     ph: (559) 292-5366 * 3
>>                                     fax:(559) 292-0410
>>-----Original Message-----
>>From: Frank McIngvale <frankm@HiWAAY.net>
>>To: cygwin <cygwin@sourceware.cygnus.com>
>>Date: Wednesday, March 03, 1999 8:50 AM
>>Subject: windres.exe error?
>>
>>
>>>
>>>I'm getting what seems to be an out of memory error
>>>when running an .rc through windres, but I'm suspicious
>>>because of the huge allocation:
>>>
>>>--------------------------------------------------------------------
>>>windres.exe -i minimal.rc -o minimal_resources.o --include-dir \
>>>/usr/local/wx/include --define __WIN32__ --define __WIN95__ --define \
>>>__GNUWIN32__
>>>
>>>[main] c:\cygnus\CYGWIN~1\H-I586~1\bin\windres.exe 1777 (0)
>>>commit_and_inc: VirtualAlloc failed
>>>
>>>windres.exe: Can not allocate 369098853 bytes after allocating 201318400
>>>bytes
>>>make: *** [minimal_resources.o] Error 1
>>>---------------------------------------------------------------------
>>>
>>>An allocation of 370 Mb to compile an .rc file seems a bit
>>>excessive, doesn't it? I'll be glad to send the .rc file
>>>to whomever, I just didn't want to spam the list.
>>>
>>>This is under B20.1 with egcs 1.1.1. Did I miss an update
>>>to windres.exe somewhere?
>>>
>>>thanks!
>>>frank
>>>
>>>
>>>
>>>
>>>
>>>--
>>>Want to unsubscribe from this list?
>>>Send a message to cygwin-unsubscribe@sourceware.cygnus.com
>>>
>>
>>
>>--
>>Want to unsubscribe from this list?
>>Send a message to cygwin-unsubscribe@sourceware.cygnus.com
>>
>>
>>
>>
>>
>
>
>
>
>


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Access to Win32 Processes from shell
@ 1999-03-03 10:12 David's Lightspeed Email
  1999-03-31 19:45 ` David's Lightspeed Email
  0 siblings, 1 reply; 6+ messages in thread
From: David's Lightspeed Email @ 1999-03-03 10:12 UTC (permalink / raw)
  To: cygwin

                                    March 2nd, 1999

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?
                                     David L. Painter
                                     dpainter@prontomail.com
                                     dpainter@lightspeed.net
                                     ph: (559) 292-5366 * 3
                                     fax:(559) 292-0410
-----Original Message-----
From: Daniel-Wittenberg@uiowa.edu <Daniel-Wittenberg@uiowa.edu>
To: David's Lightspeed Email <dpainter@lightspeed.net>
Date: Wednesday, March 03, 1999 9:45 AM
Subject: Re: WinTerm Shell for Win32


>
>
>
>oh, 95, not sure.  I don't have access to a 9x box, just NT, so not sure
about
>that.  I don't remember seeing a console control panel under 95, but ti's
been
>awhile since I worked on it.  I'm actually a Unix admin, so I too missed
the
>scrollback until someone showed me it would work, now I run bash with
cygwin all
>the time on NT.
>
>Good luck...
>
>Dan
>
>
>
>
>
>"David's Lightspeed Email" <dpainter@lightspeed.net>
>03/03/99 11:37 AM
>
>To:   Dan Wittenberg/UNV_IOWA@UNV_IOWA
>cc:
>
>Subject:  Re: WinTerm Shell for Win32
>
>
>
>
>
>                                    March 3rd, 1999
>Daniel,
>
>thanks for the feedback.
>I'm running Win95 though, not NT.
>Are you sure this'll work?
>
>                                     David L. Painter
>                                     dpainter@prontomail.com
>                                     dpainter@lightspeed.net
>                                     ph: (559) 292-5366 * 3
>                                     fax:(559) 292-0410
>-----Original Message-----
>From: Daniel-Wittenberg@uiowa.edu <Daniel-Wittenberg@uiowa.edu>
>To: David's Lightspeed Email <dpainter@lightspeed.net>
>Date: Wednesday, March 03, 1999 9:08 AM
>Subject: Re: WinTerm Shell for Win32
>
>
>>
>>
>>
>>Just in case you didn't realize (and I didn't for a while) that you can
>setup
>>scrolling on the NT windows...through the console control panel, just set
>your
>>scroll back higher and the scroll bar appears...
>>
>>Dan
>>
>>
>>
>>
>>
>>"David's Lightspeed Email" <dpainter@lightspeed.net>
>>03/03/99 10:59 AM
>>
>>To:   cygwin@sourceware.cygnus.com
>>cc:    (bcc: Dan Wittenberg/UNV_IOWA)
>>
>>Subject:  WinTerm Shell for Win32
>>
>>
>>
>>
>>
>>                                    March 3rd, 1999
>>
>>In the last few weeks, I've been able to successfully reinstall the Cygnus
>>utilities on my Win32/Win95 machine, and I now have all of the following
>>shells working properly:
>>
>>MS-DOS Shell
>>Bourne Shell
>>BASH Shell
>>TCSH Shell
>>TCL Shell
>>
>>My problem is that the NONE of these is as naturally friendly as the
>WinTerm
>>that I was accustomed to using on SGI IRIX and Sun Solaris.  In
particular,
>>I'd like to set these shells up with CUT/PASTE/COPY operations, and be
able
>>to configure simple X-Term properties like FONT, COLORS, and SCROLLBARS.
>>
>>I do have an X-Server here(RWIN by WRQ), but I never really use it for
>>anything other than an occasionally rlogin or telnet.  Is there anyway
that
>>I can use the X-Server with the shells above to in effect emulate a native
>>X-Term window with full functionality?
>>
>>Any comments appreciated.
>>
>>D.L.
>>
>>
>>
>>                                     David L. Painter
>>                                     dpainter@prontomail.com
>>                                     dpainter@lightspeed.net
>>                                     ph: (559) 292-5366 * 3
>>                                     fax:(559) 292-0410
>>-----Original Message-----
>>From: Frank McIngvale <frankm@HiWAAY.net>
>>To: cygwin <cygwin@sourceware.cygnus.com>
>>Date: Wednesday, March 03, 1999 8:50 AM
>>Subject: windres.exe error?
>>
>>
>>>
>>>I'm getting what seems to be an out of memory error
>>>when running an .rc through windres, but I'm suspicious
>>>because of the huge allocation:
>>>
>>>--------------------------------------------------------------------
>>>windres.exe -i minimal.rc -o minimal_resources.o --include-dir \
>>>/usr/local/wx/include --define __WIN32__ --define __WIN95__ --define \
>>>__GNUWIN32__
>>>
>>>[main] c:\cygnus\CYGWIN~1\H-I586~1\bin\windres.exe 1777 (0)
>>>commit_and_inc: VirtualAlloc failed
>>>
>>>windres.exe: Can not allocate 369098853 bytes after allocating 201318400
>>>bytes
>>>make: *** [minimal_resources.o] Error 1
>>>---------------------------------------------------------------------
>>>
>>>An allocation of 370 Mb to compile an .rc file seems a bit
>>>excessive, doesn't it? I'll be glad to send the .rc file
>>>to whomever, I just didn't want to spam the list.
>>>
>>>This is under B20.1 with egcs 1.1.1. Did I miss an update
>>>to windres.exe somewhere?
>>>
>>>thanks!
>>>frank
>>>
>>>
>>>
>>>
>>>
>>>--
>>>Want to unsubscribe from this list?
>>>Send a message to cygwin-unsubscribe@sourceware.cygnus.com
>>>
>>
>>
>>--
>>Want to unsubscribe from this list?
>>Send a message to cygwin-unsubscribe@sourceware.cygnus.com
>>
>>
>>
>>
>>
>
>
>
>
>


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~1999-03-31 19:45 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-03-03 10:59 Access to Win32 Processes from shell Earnie Boyd
1999-03-04  2:06 ` Anders Norlander
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

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).