LineContaining_ExistsIn / Dateigröße
Verfasst: 12 Dez 2016, 10:38
Hallo,
ich prüfe eine Logdatei auf einen bestimmten Inhalt.
Bisher hat das bei allen Paketen gut geklappt.
Grüße Harald
ich prüfe eine Logdatei auf einen bestimmten Inhalt.
Code: Alles auswählen
if not ($_InstLogFileText1$ = "")
if (LineContaining_ExistsIn($_InstLogFileText1$, $_InstLogFile$))
set $_InstLogStatus$ = "gefunden"
endif
endif
Jetzt habe ich aber ein Programm, dass ein 6 MB großes Logfile schreibt, damit kommt OPSI anscheinend nicht klar und bleibt hängen, das letzte im Log ist:[6] [Dez 12 10:09:33:399] Searching "Installation: Erfolgreich." in File "c:\opsi.org\log\test.log"
[6] [Dez 12 10:09:33:401] Item Pointer set to Top (before first line)
[6] [Dez 12 10:09:33:403] Item no. 104 is containing 'INSTALLATION: ERFOLGREICH.'
Gibt es Größenbeschränkungen der Datei, im Handbuch konnte ich dazu nichts finden?[6] [Dez 12 10:09:33:399] Searching "Installation: Erfolgreich." in File "c:\opsi.org\log\test.log"
[6] [Dez 12 10:09:33:401] Item Pointer set to Top (before first line)
Grüße Harald