J
joez3
Hi all,
This might be more a windows question then perl, but lets see if
someone can help me out. I am using Win32:rocess::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:rocess::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
This might be more a windows question then perl, but lets see if
someone can help me out. I am using Win32:rocess::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:rocess::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