RE: Win32::Console Question: How to attache a process to console
[email protected] ("Jan Dubois")
| Newsgroups | perl.libwin32 |
|---|---|
| Organization | ActiveState Software Inc |
| Message-ID | <[email protected]> |
On Wed, 04 Aug 2010, lacunasolutions wrote: > > I am looking how to attache a cmdline tool to a console and controll > it then. > > 1. Is this possible? There is an AttachConsole() API in Windows, but it is not exposed via Win32::Console. It would be trivial to add though. The real question is what you mean by "control it". I have a suspicion that you are looking for the capabilities of "Expect for Windows", which is a Tcl package. You will not be able to get similar levels of control with the Win32::Console package, which is really only aimed at controlling your own console. Cheers, -Jan