[ 
https://issues.apache.org/jira/browse/ZOOKEEPER-1089?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13047375#comment-13047375
 ] 

Patrick Hunt commented on ZOOKEEPER-1089:
-----------------------------------------

Is there an idiom for detecting which options a command line supports? Coding 
linux versions into the script seems like a bad idea longer term, perhaps we 
can try to run using nc, and if that fails retry using /dev/tcp? (or perhaps 
first try to run something using "nc -q" that shouldn't fail as long as nc 
supports -q, and then either use it or /dev/tcp depending on the results?)

> zkServer.sh status does not work due to invalid option of nc
> ------------------------------------------------------------
>
>                 Key: ZOOKEEPER-1089
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-1089
>             Project: ZooKeeper
>          Issue Type: Bug
>          Components: scripts
>    Affects Versions: 3.4.0
>            Reporter: Bill Au
>
> The nc command used by zkServer.sh does not have the "-q" option on some 
> linux versions ( I have checked RedHat/Fedora and FreeBSD).

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to