Thank you very much for the pointer Sharon. I created a loop where I query
the handle of the process to check if the process is complete and in that
loop I also check if a reboot is being requested. If there is a reboot
request I shutdown STAFProc on the remote machine, wait for reboot to
complete
You're seeing this problem because the machine being rebooted never sends a
message that the process completed (e.g. was terminated) because STAFProc
is not being shutdown properly (e.g. via a STAF local SHUTDOWN SHUTDOWN
request) before the reboot occurred. If your script could be changed to
shu