Re: opsi-makeproductfile via cmd in winst auslösen !?
Verfasst: 29 Okt 2013, 15:02
Okey hab die Funktion
so eingebunden und sie scheint auch gestartet zu werden. Leider bekommt man ja keine visuelle Darstellung wie auf der Konsole wie weit das Packen ist.
Im Log schaut der Part so aus:
Er hat kein Paket erstellt und der Timestep zeigt auch das die Methode nur für eine halbe Sekunde aktiv war. Hab parallel dazu via Htop mal die Prozesse geloggt. Kein makeproductfile task.
Hast du vll. ne Idee warum?
Gruß
Code: Alles auswählen
def opsiMakeProductfile (self, ProductID):
import os
def getch():
os.environ['ProductID'] = ProductID
result= os.popen('cd /home/opsiproducts/$ProductID/; opsi-makeproductfile -q')
getch()
Im Log schaut der Part so aus:
Code: Alles auswählen
[5] [Okt 29 14:55:48:228] [doubledriver] Execution of opsiServiceCall_opsiMakeProductfile
[6] [Okt 29 14:55:48:228] [doubledriver] "method": "opsiMakeProductfile"
[6] [Okt 29 14:55:48:228] [doubledriver] Calling opsi service at https://10.1.52.241:4447
[6] [Okt 29 14:55:48:228] [doubledriver] JSON service request https://10.1.52.241:4447/rpc opsiMakeProductfile
[6] [Okt 29 14:55:48:812] [doubledriver] JSON Bench for opsiMakeProductfile "params":["win7_krefeld"],"id":1} Start: 14:55:48:228 Time: 00:00:00:584
[6] [Okt 29 14:55:48:820] [doubledriver] JSON result:
[5] [Okt 29 14:55:48:832] [doubledriver] EndIf
[5] [Okt 29 14:55:48:836] [doubledriver] EndIf
Hast du vll. ne Idee warum?
Gruß