Difference between revisions of "Src-perl-querylogger"
Jump to navigation
Jump to search
imported>Ken |
imported>Ken |
||
| Line 1: | Line 1: | ||
| − | This perl script was written to exercise and test the Campbell::Comm | + | =querylogger.pl= |
| + | This perl script was written to exercise and test the [[Src-perl-Campbell::Comm|Campbell::Comm]] | ||
module, but may be useful in its own right as a way to interface with | module, but may be useful in its own right as a way to interface with | ||
dataloggers in batch (i.e., non-interactive) form. Each method in the | dataloggers in batch (i.e., non-interactive) form. Each method in the | ||
| Line 35: | Line 36: | ||
get_time_flags experimental using F command | get_time_flags experimental using F command | ||
| − | The querylogger (and loggerdata) scripts assume a specific system | + | The querylogger (and [[Src-perl-loggerdata|loggerdata]]) scripts assume a specific system |
configuration of sites and ''rc'' files; see below... | configuration of sites and ''rc'' files; see below... | ||
Revision as of 12:22, 6 July 2007
querylogger.pl
This perl script was written to exercise and test the Campbell::Comm module, but may be useful in its own right as a way to interface with dataloggers in batch (i.e., non-interactive) form. Each method in the Campbell::Comm module should be represented by a querylogger command as specified on the command line.
The interface is described if run with no arguments:
$ querylogger
syntax: "$ /home/ken/bin/querylogger OPTIONS SITE COMMAND ...
where OPTIONS are
--quiet suppress output to STDOUT
-q same as above
--logfile=f print everything to file f
-l f same as above
--comm=s use rc file section Campbell::Comm-s, or
-c s use rc file section Campbell::Comm-s
--identify identify site in output (default)
--noidentify don't identify site in output
where SITE is one of: site, slope_mtn,
and COMMANDs may include:
status list status strings
time show time (setting not yet supported)
backup=n n=number of output arrays to spew (no limit)
MPTR=loc loc=output storage location (no limit)
data=n n=number of data records to get
binary=n n=number of data locations to get
program print all logger programming
flags optionally toggle specified flag(s), show flags
ports show ports (toggle not yet supported)
memory show mode A memory settings
signatures show mode B signature settings
input=n[,m][,r-s] show input storage locations
capture=[f] end previous capture, capture output to file f
get_time_flags experimental using F command
The querylogger (and loggerdata) scripts assume a specific system configuration of sites and rc files; see below...