Leser: 3
|< 1 2 >| | 20 Einträge, 2 Seiten |
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
use strict;
use Win32::Process;
use Win32;
close STDOUT;
open STDOUT, ">>test.txt";
sub ErrorReport
{
print Win32::FormatMessage( Win32::GetLastError() );
}
my $ProcessObj = "";
print STDOUT Win32::Process::Create($ProcessObj,
"D:\\WIN32APP\\JRE_142_03\\bin\\java.exe",
"java.exe -version",
0,
NORMAL_PRIORITY_CLASS,
".")|| die ErrorReport();
$ProcessObj->Suspend();
$ProcessObj->Resume();
$ProcessObj->Wait(INFINITE);
close STDOUT;
java .... | tee logfile.log
|< 1 2 >| | 20 Einträge, 2 Seiten |