Flush transmit automatic restart script
When the operation and maintenance of flush entrusts the master station, it is often found that transmit reported an error and failed to create a link in the morning, and it is necessary to restart transmit manually. The analysis found that it was caused by the automatic restart of the program at 6: 00 in the morning. Because the flush could not analyze the reason, the temporary solution was to adjust the automatic startup time of the program to 5: 00, and the operating system planned task to automatically execute the following script at 6: 00 to automatically restart after killing the transmit process.
The restart script is as follows:
Taskkill / im transmid.exe / f
Ping-n 3 127.0.0.1 > nul
Start D:\ Transmid_hs08-1\ transmid.exe
Ping-n 1 127.0.0.1 > nul
Start D:\ Transmid_hs08-2\ transmid.exe