July 18, 2007
IceGridAdmin命令提示Syntax Error
昨天的文章中我已经建立起了拥有node1, node2两个结点的IceGrid,但是却发现在IceGridAdmin中使用一些命令会提示Syntax Error(句法错误),例如:
node describe node1
node ping node1
而输入node list却一切正常,最后在ZeroC的官方论坛中找到了答案:
Yes, this is a known problem. You need to add quotes or double-quotes around command arguments which contain keywords (”node ping ‘node1′” should work). The next Ice patch release will contain an improved icegridadmin utility that removes this restriction.
那么,目前我们就只好给node1这样的参数加上单引号或是双引号咯。值得注意的是:如果不是node1,而是Node1,这个问题就不存在了。
