ich bekomme beim Versuch einen 2-teiligen String aufzusplitten und die beiden Haelften eine Variable zuzuweisen immer folgende
Winst-Fehlermeldungen:
-----------------------------
1.
Code: Alles auswählen
Sektion Actions (Kommando in Zeile 126):
$INST_Server1$ = TakeString(0, splitString($INST_ResultList1$, "#"))
$INST_ResultList1$, "#")) illegal String expression
Code: Alles auswählen
Sektion Actions (Kommando in Zeile 130):
$INST_Url1$ = TakeString(1, splitString($INST_ResultList1$, "#"))
$INST_ResultList1$, "#")) illegal String expression
Auszug aus Winst-Skript:
------------------------------
Code: Alles auswählen
DefStringList $INST_ResultList1$
DefVar $INST_Server1$
DefVar $INST_Ur1l$
Set $INST_ResultList1$ = getOutStreamFromSection("DosInAnIcon_get_Server1")
comment "$INST_ResultList1$ -> " + $INST_ResultList1$
Set $INST_Server1$ = TakeString(0, splitString($INST_ResultList1$, "#"))
comment "$INST_Server1$ -> " + $INST_Server1$
Set $INST_Url1$ = TakeString(1, splitString($INST_ResultList1$, "#"))
comment "$INST_Url1$ -> " + $INST_Url1$
[DosInAnIcon_get_Server1]
@echo off
echo server01.domain.de # smb://server01.domain.de/HOME/
----------------------------
Code: Alles auswählen
[5] [26.4.2011 15:04:08] Set $INST_ResultList1$ = getOutStreamFromSection("DosInAnIcon_get_Server1")
[5] [26.4.2011 15:04:08]
[5] [26.4.2011 15:04:08] Execution of DosInAnIcon_get_Server1
[6] [26.4.2011 15:04:08] c:\tmp\_winstbat_.bat saved back
[6] [26.4.2011 15:04:09]
[6] [26.4.2011 15:04:09] output:
[6] [26.4.2011 15:04:09] --------------
[6] [26.4.2011 15:04:09] server01.domain.de # smb://server01.domain.de/HOME/
[6] [26.4.2011 15:04:09]
[6] [26.4.2011 15:04:09] retrieving strings from getOutStreamFromSection [switch to loglevel 7 for debugging]
[7] [26.4.2011 15:04:09] (string 0)server01.domain.de # smb://server01.domain.de/HOME/
[7] [26.4.2011 15:04:09]
[5] [26.4.2011 15:04:09]
[5] [26.4.2011 15:04:09] Set $INST_Server1$ = TakeString(0, splitString($INST_ResultList1$, "#"))
[5] [26.4.2011 15:14:11] comment: $INST_Server1$ ->
[5] [26.4.2011 15:14:11]
[5] [26.4.2011 15:14:11] Set $INST_Url1$ = TakeString(1, splitString($INST_ResultList1$, "#"))
[5] [26.4.2011 15:25:29] comment: $INST_Url1$ ->
Code: Alles auswählen
Set $INST_Server1$ = takestring(0, splitStringOnWhitespace($INST_ResultList1$))

Opsi-Version:
Code: Alles auswählen
dpkg --list | grep opsi
ii opsi-atftpd 0.7.dfsg-1.4 advanced TFTP server - opsi version with pcr
ii opsi-configed 4.0.1.5-1 OPSI config editor
ii opsi-depotserver 4.0-3 opsi depotserver configuration package
ii opsi-linux-bootimage 20110117-1 Linux-Bootimage fuer das Softwareverteilungs
ii opsi-utils 4.0.0.5-1 opsi utils
ii opsiconfd 4.0.0.3-1 opsi configuration service
ii opsipxeconfd 4.0-1 opsi pxe configuration daemon
ii python-opsi 4.0.0.18-1 opsi python library
winst-Version: 4.10.8.4-1
Vielen Dank!
Christoph.