|
View previous topic :: View next topic |
Author |
Message |
William
Joined: 26 Sep 2016 Posts: 5
|
Posted: Mon Sep 26, 2016 12:12 am Post subject: empty shell script output |
|
|
Hello HM
I am testing HM for our compagny.
I created a blanco shell script only with these lines in it.
Code: |
statusOk = "ScriptRes:Ok:"
WScript.StdOut.Write(statusOk);
|
start cmd : cmd /c "w32tm /resync"
i only want to resync the time on our Windows server every 2 hours.
i still got this error in the Reply field:
Error: Invalid result (Sending resync command to local computer
The command completed successfully.)
How can i tune up the reply that it allways give me an OK back
Thanks
William |
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12792 Location: USA
|
Posted: Mon Sep 26, 2016 9:52 am Post subject: |
|
|
You created some script but as I understand you do not start that script.
You start external application w32tm.exe
Also I do not understand why do you need script?
Just start external application using External test method
http://www.ks-soft.net/hostmon.eng/mframe.htm#tests.htm#execheck
Regards
Alex |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|