man8/HOSTtask

Table of Contents

Name

HOSTtask - notify another computer of AccelNET parameter values

Synopsis

HOSTtask <argument list>

Description

HOSTtask passes a list of AccelNET parameter values to another system.

Every 10 seconds the parameter values are formatted and sent. The parameter list is contained in a CONFLIST format file.

The message is formatted starting with an asterisk (*). The message fields are numbers with vertical bar (|) characters between the fields and terminated with a line feed.

Arguments

--dbman_host <hn>

The host where dbman is running. This is optional, and defaults to localhost or the present setting of the DBMAN_HOST environment variable.
--local <path>

The path of the local device to connect to when running localy.
--remote <host>,<sock>

The remote host and socket to connect to for remote operation.
--mngr <fn>

Pathname to a CONFLIST configuration file.

The default is "MNGRconf".

--help

Prints the help message and exit.

Argument Usage

Argument processing is done using Unix long argument syntax. Arguments can be provided in any order provided that a mode is specified. For remote mode, the port number is extracted from /etc/services.

Config Name Usage

g1 and read1 are used in the configuration file. The index field is used to uniquely identify the parameters in the list.

Configuration File Example

#
# The example file given here passes a list of 10 parameters.
#
HOSTtask|g1|read1| 0|SETUP |TotPartE|
HOSTtask|g1|read1| 1|SETUP |AtomNumb|
HOSTtask|g1|read1| 2|SETUP |Ospecies|
HOSTtask|g1|read1| 3|SETUP |ChgState|
HOSTtask|g1|read1| 4|SETUP |BLsel |
HOSTtask|g1|read1| 5|SETUP |MachMode|
HOSTtask|g1|read1| 6|FC S1-1|PosSRjt |
HOSTtask|g1|read1| 7|FC S2-1|PosSRjt |
HOSTtask|g1|read1| 8|FC I1-1|PosSRjt |
HOSTtask|g1|read1| 9|FC 01-1|PosSRjt |

Examples

#
# here is an example of operation on a local serial port
#
stty -echo < /dev/ttyS0
stty raw < /dev/ttyS0
stty 9600 < /dev/ttyS0
HOSTtask --dbman_host csdev1 --local /dev/ttyS0 --mngr VAXconf
#
# here is an example of operation using a terminal server
#
# note that the terminal server port characteristics
# should be set in a manner equivalent to that
# required for local operation
#
HOSTtask --dbman_host csdev1 --remote csdev11,ETSraw1 --mngr VAXconf

Notes

In local mode the port used needs to be set for the correct baud rate. See the EXAMPLES section above.

The program is network aware which for other programs of this class is used to make a connection to a terminal server but it could also likely be made to communicate with a server process on the other end.

The time between messages is hardcoded into the program. If the need arises this could be changed by moving it to the config file.

The leading asterisk (*) is also hardcoded as well as the field separator (|). This also could be changed should the need arise.

Input received by this program is discarded. This also could be changed if the need arises.

Manual page revision

$Id: HOSTtask.8,v 1.4 2007/07/17 16:57:45 kitchen Exp $


Table of Contents