Thread Rambo: JAVA Aufruf in Perl (11 answers)
Opened by Rambo at 2003-09-18 12:59

Rambo
 2003-09-18 16:03
#53639 #53639
User since
2003-08-14
803 Artikel
BenutzerIn

user image
perl lieferte mir eine Meldung zurück das ich Strict nicht verwenden darf aber da habe ich wohl was verkehrt gemacht!
Jetzt funktioniert das script bis auf einen kleinen Fehler.
Er nimmt mein Array nicht an aber ich denke das bekomme ich auch noch raus.
hier mal der Code mit dem ARRAY fehler
Code: (dl )
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
26
27
28
29
30
31
32
33
34
use strict;
use Win32;
use Win32::Process;

my $pix_path = "F:\\PIXX_TOOLS\\IA_TEST\\1510027";
my $appexecutable = "D:\\WIN32APP\\JAVA_131_04\\BIN\\JAVA.EXE";
my $ProcessObj = ();
my @wks_name = qw(REMO1
REMO2
REMO3);

for my $wks_name (@wks_name) {
my $appparameters = $appexecutable . ' -cp ' .
$pix_path . ';'.
$pix_path . '\\CLASSES;'.
$pix_path . '\\ETC;'.
$pix_path . '\\CONFIG;'.
$pix_path . '\\HELP;'.
$pix_path . '\\LIB\\appfw.jar' .';'.
$pix_path . '\\LIB\\pixx.jar' .';'.
$pix_path . '\\LIB\\pixxclient.jar' . ';'.
$pix_path . '\\LIB\\pixxcsresources.jar' . ';'.
$pix_path . '\\servertester\\loggingpatch;'.
$pix_path . '\\servertester\\servertester.jar' . ';'.
$pix_path . '\\LIB\\orbix2000.jar' .
' com.lsy.pixx.server.test.Tester $wks_name servertester//tester.cfg';

Win32::Process::Create($ProcessObj,
$appexecutable,
$appparameters,
1,
NORMAL_PRIORITY_CLASS,
'.')|| die ErrorReport();
}


danke für deine hilfe!
remo

View full thread Rambo: JAVA Aufruf in Perl