how to get the output from: Win32::Process::Create
- From: joez3@xxxxxxxxx
- Date: 31 Aug 2006 11:58:09 -0700
Hi all,
This might be more a windows question then perl, but lets see if
someone can help me out. I am using Win32::Process::Create to start up
an exe. I can get exe to start, but I need to get what is put out on
the command prompt.
If i try text.exe > temp.txt I can start the exe and the temp.txt file
gets created, but nothing is in it. The text is put in another command
prompt window. So this rules out using system () to start the exe.
Then I tried:
open (FHCMD, Win32::Process::Create($processObj, $appName,
$commandLine, 1, DETACHED_PROCESS, ".")." |");
while (<FHCMD>) {
print $_;
}
close (FHCMD);
This start the exe, but nothing is put in FHCMD.
Any ideas on how i get the output?
Thanks,
zim
.
- Follow-Ups:
- Re: how to get the output from: Win32::Process::Create
- From: Paul Lalli
- Re: how to get the output from: Win32::Process::Create
- Prev by Date: Re: FAQ 6.22 How can I match strings with multibyte characters?
- Next by Date: FAQ 7.14 How can I pass/return a {Function, FileHandle, Array, Hash, Method, Regex}?
- Previous by thread: Re: (Off topic) Cyberwar question
- Next by thread: Re: how to get the output from: Win32::Process::Create
- Index(es):
Relevant Pages
|