Changes

WPKG with winexe

596 bytes added, 10:56, 15 July 2010
Alternative solution for the winexe hang problem
echo "$(date) $HOST_NAME (IP: $HOST_IP, PID: $$) processing done" >>$LOGPATH/wpkg.log
fi
</source>
 
= Alternative solution for the winexe hang problem =
If the script stated by winexe exits ASAP, than it seems to solve the problem (at least it solved for me).
You must make two script.
 
wpkg-runner.cmd
<source lang="dos">
@echo off
start /b \\server\path\to\wpkg.cmd %1
exit
</source>
 
wpkg.cmd
<source lang="dos">
@echo off
cscript \\server\path\to\wpkg.js /synchronize /debug /nonotify > \\server\path\to\logs\%1.txt
exit
</source>
 
In your shell script start wpkg-runner.cmd like this:
<source lang="bash">
winexe ... "cmd /c start \\\\install\\wpkg\\wpkg-runner.cmd $REMOTE_ADDR"
</source>
[[Category: Documentation]]
3
edits