Home All Groups Group Topic Archive Search About

VB6 and Perl on 2000/XP: Req recommendation for interprocess communication

Author
4 Jun 2005 12:24 PM
Tom Bates
I'm working on a VB6 program that will kick off a command process
(using COMSPEC) that will run a perl script, which in turn may execute
nested perl scripts. (I think it sounds worse than it is.) I have
tested a prototype which appears to work, using CreateProcess (this
way, I can stop the process if I need to).

I would like the VB program to be able to continually monitor and
receive status from the running perl script(s) so I can update a
status bar, and perhaps display progress information in a textbox. To
me, watching the text whiz by in a console window looks kinda 80's...
:-)

Can someone suggest an optimal approach for this?

Thanks
Tom

NOTE - cross-posted to VB and Perl discussion groups

Author
5 Jun 2005 1:41 AM
YYusenet
Tom Bates wrote:
Show quoteHide quote
> I'm working on a VB6 program that will kick off a command process
> (using COMSPEC) that will run a perl script, which in turn may execute
> nested perl scripts. (I think it sounds worse than it is.) I have
> tested a prototype which appears to work, using CreateProcess (this
> way, I can stop the process if I need to).
>
> I would like the VB program to be able to continually monitor and
> receive status from the running perl script(s) so I can update a
> status bar, and perhaps display progress information in a textbox. To
> me, watching the text whiz by in a console window looks kinda 80's...
> :-)
>
> Can someone suggest an optimal approach for this?
>
> Thanks
> Tom
>
> NOTE - cross-posted to VB and Perl discussion groups

There is a very easy way...  Just  have the Perl script return back the
percentage that it is complete and then have the VB part capture the
STDOUT and then wait for the new percentage.

--
k g a b e r t (at) x m i s s i o n (dot) c o m

*Support Mozilla Firefox*!
http://www.spreadfirefox.com/?q=user/register&r=71209

Bookmark and Share