KS-Soft. Network Management Solutions
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister    ProfileProfile    Log inLog in 

empty shell script output

 
Post new topic   Reply to topic    KS-Soft Forum Index -> Configuration, Maintenance, Troubleshooting
View previous topic :: View next topic  
Author Message
William



Joined: 26 Sep 2016
Posts: 5

PostPosted: Mon Sep 26, 2016 12:12 am    Post subject: empty shell script output Reply with quote

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
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12791
Location: USA

PostPosted: Mon Sep 26, 2016 9:52 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    KS-Soft Forum Index -> Configuration, Maintenance, Troubleshooting All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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

KS-Soft Forum Index