getINDI ======= Name ---- getINDI − get INDI property values Synopsis -------- :: getINDI [options] [device.property.element ...] Description ----------- getINDI connects to an indiserver and reports the current value of one or more properties. Each property is specified using three components in the form: :: device.property.element Any component may be an asterisk, “\*”, to serve as a wild card that matches all names in that component of the specification. If no property is specified, then all properties match, i.e., it is as if the specification “\*.*.\*” were given. The last component of the property specification is usually the element name, but may be a reserved name to indicate an attribute of the property as a whole. These reserved names are as follows: .. raw:: html
.. raw:: html | .. raw:: html
.. raw:: html
\_LABEL .. raw:: html .. raw:: html |
.. raw:: html
.. raw:: html
report the label attribute .. raw:: html .. raw:: html |
.. raw:: html
.. raw:: html | .. raw:: html
.. raw:: html
\_GROUP .. raw:: html .. raw:: html |
.. raw:: html
.. raw:: html
report the group attribute .. raw:: html .. raw:: html |
.. raw:: html
.. raw:: html | .. raw:: html
.. raw:: html
\_STATE .. raw:: html .. raw:: html |
.. raw:: html
.. raw:: html
report the state attribute .. raw:: html .. raw:: html |
.. raw:: html
.. raw:: html | .. raw:: html
.. raw:: html
\_PERM .. raw:: html .. raw:: html |
.. raw:: html
.. raw:: html
report the permission attribute .. raw:: html .. raw:: html |
.. raw:: html
.. raw:: html | .. raw:: html
.. raw:: html
\_TO .. raw:: html .. raw:: html |
.. raw:: html
.. raw:: html
report the timeout attribute .. raw:: html .. raw:: html |
.. raw:: html
.. raw:: html | .. raw:: html
.. raw:: html
\_TS .. raw:: html .. raw:: html |
.. raw:: html
.. raw:: html
report the timestamp attribute .. raw:: html .. raw:: html |
.. raw:: html
.. raw:: html | .. raw:: html
.. raw:: html
-1 .. raw:: html .. raw:: html |
.. raw:: html
.. raw:: html
print just the value if expectiong exactly one matching property .. raw:: html .. raw:: html |
.. raw:: html
.. raw:: html | .. raw:: html
.. raw:: html
-B .. raw:: html .. raw:: html |
.. raw:: html
.. raw:: html
enable downloading BLOBs .. raw:: html .. raw:: html |
.. raw:: html
.. raw:: html | .. raw:: html
.. raw:: html
-d |
.. raw:: html
.. raw:: html
use file descriptor f already open as a socket to the indiserver. This is useful for scripts to make a session connection one time then reuse it for each invocation. If the file descriptor seems to be being closed, check that the close-on-exec flag is off; for example in perl use something like: .. raw:: html ``#!/usr/bin/perl`` ``use Socket;``\ ``use Fcntl;``\ ``socket(SOCK, PF_INET, SOCK_STREAM, getprotobyname(’tcp’));``\ ``connect(SOCK, sockaddr_in(7624,inet_aton(’localhost’)));``\ ``fcntl(SOCK,F_SETFD,0);``\ ``$directfd = fileno(SOCK);``\ ``%props = split (/[=0/, ’getINDI -d $directfd’);``\ .. raw:: html |
.. raw:: html
.. raw:: html | .. raw:: html
.. raw:: html
-h |
.. raw:: html
.. raw:: html
connect to alternate host h; the default is localhost. .. raw:: html .. raw:: html |
.. raw:: html
.. raw:: html | .. raw:: html
.. raw:: html
-m .. raw:: html .. raw:: html |
.. raw:: html
.. raw:: html
continue to monitor for subsequent changes to each specified property until timeout. .. raw:: html .. raw:: html |
.. raw:: html
.. raw:: html | .. raw:: html
.. raw:: html
-p .. raw:: html .. raw:: html |
.. raw:: html
.. raw:: html
connect using alternate port p; the default is 7624. .. raw:: html .. raw:: html |
.. raw:: html
.. raw:: html | .. raw:: html
.. raw:: html
-q .. raw:: html .. raw:: html |
.. raw:: html
.. raw:: html
suppress some error message. .. raw:: html .. raw:: html |
.. raw:: html
.. raw:: html | .. raw:: html
.. raw:: html
-t |
.. raw:: html
.. raw:: html
wait no longer than t seconds of no activity to gather the values for all the specified properties; the default is 2 seconds. Specify 0 to wait forever. .. raw:: html .. raw:: html |
.. raw:: html
.. raw:: html | .. raw:: html
.. raw:: html
-v .. raw:: html .. raw:: html |
.. raw:: html
.. raw:: html
generate additional information on stderr. This is cumulative in that specifying more -v options will generate more output. .. raw:: html .. raw:: html |
.. raw:: html
.. raw:: html | .. raw:: html
.. raw:: html
-w .. raw:: html .. raw:: html |
.. raw:: html
.. raw:: html
Usually only readable properties are shown. If this flag is set, then all properties, including those that are write-only, are shown. .. raw:: html .. raw:: html |
.. raw:: html