Guest User

Untitled

a guest
Apr 23rd, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. /* NTPQ EXEC Query an NTP server via RFC-5905 */
  2. /* Author: Rob van der Heij, 25 Apr 2014 */
  3.  
  4. arg ntpd '(' trace /* NTPD server */
  5.  
  6. address command
  7. signal on novalue
  8.  
  9. if ntpd = '' then
  10. do
  11. 'PIPE (end \ name NTPQ.EXEC:12)',
  12. '\ cp QUERY TIMEZONE',
  13. '| pick w4 == ,Active,',
  14. '| spec w2',
  15. '| append literal',
  16. '| var hemisph'
  17. if hemisph = 'West' then ntpd = '204.11.201.10'
  18. else ntpd = '91.207.136.44'
  19. end
  20.  
  21. 'PIPE var ntpd | ntpq | cons'
  22.  
  23. return rc
Add Comment
Please, Sign In to add comment