Hal Murray <hmur...@megapathdsl.net>:
> This is from a day or so ago.
> [murray@second ~]$ ntpq -d 4 -nc mru
> ntpq can only work interactively on one host.
> Traceback (most recent call last):
>   File "/usr/local/bin/ntpq", line 1635, in <module>
>     session.openhost(*interpreter.chosts[0])
>   File "/usr/local/lib/python2.7/site-packages/ntp/packet.py", line 800, in 
> openhost
>     sys.stderr.write(msg)
> TypeError: expected a string or other character buffer object

Your typo. That should have been "ntpq -D 4 -nc mru" (capital d).  It thought
you wanted to query a host named '4' after incrementing the debug level.

I'll teach it to fail more gracefully in this case.
                <a href="http://www.catb.org/~esr/";>Eric S. Raymond</a>
devel mailing list

Reply via email to