setINDI ======= Name ---- setINDI − set one or more writable INDI property values Synopsis -------- :: setINDI [options] {[type] device.property.e1[;e2...]=v1[;v2...]} ...` setINDI [options] {[type] device.property.e1=v1[;e2=v2...]} ... Description ----------- setINDI connects to an indiserver and sends commands to set new values for specified properties. Each property is specified using three components followed by the new value in the following form: :: device.property.element=value Since a property may be an array, the syntax allows for multiple elements to be specified simultaneously. Two different syntax forms are supported. One form lists each element name separated by semicolons, then an equal sign, then each corresponding value also separated by semicolons. The other form lists each element=value together, each pair separated by a semicolon. In either form, all elements are updated atomically. If the property is of type BLOB then each element value is the name of a file to be sent. Options ------- .. 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 .. 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); &runindi ("./setINDI", "-d", "$directfd", "x.y.z=10"); &runindi ("./setINDI", "-d", "$directfd", "a.b.c=hello"); sub runindi { if (fork()) { wait(); } else { exec @\_; } }.. 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
-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
-t |
.. raw:: html
.. raw:: html
wait no longer than t seconds to accomplish setting the new values; the default is 2 seconds. .. 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. Additional v’s report successively more information. -w after sending the given property specifications, wait for the State of each property to becomes either Ok or Alert. This is useful for properties that have been designed to offer synchronous operation. Note this flag can not be used at the same time as the explicit type codes (see next) because these codes effectively suppress getting any response from the indiserver. .. raw:: html .. raw:: html |
.. raw:: html
.. raw:: html | .. raw:: html
.. raw:: html
-x .. raw:: html .. raw:: html |
.. raw:: html
.. raw:: html
next property is of type Text .. raw:: html .. raw:: html |
.. raw:: html
.. raw:: html | .. raw:: html
.. raw:: html
-n .. raw:: html .. raw:: html |
.. raw:: html
.. raw:: html
next property is of type Number .. raw:: html .. raw:: html |
.. raw:: html
.. raw:: html | .. raw:: html
.. raw:: html
-s .. raw:: html .. raw:: html |
.. raw:: html
.. raw:: html
next property is of type Switch .. raw:: html .. raw:: html |
.. raw:: html
.. raw:: html | .. raw:: html
.. raw:: html
-b .. raw:: html .. raw:: html |
.. raw:: html
.. raw:: html
next property is of type BLOB .. raw:: html .. raw:: html |
.. raw:: html