|
ldasJob { -name {} -password {} -email {} } { userCmd -opt1 {} ... }
Which is in the format of a Tcl command, ldasJob, with two required arguments:
The putStandAlone user command is the "back end" of the dataStandAlone user command. Wrapper API output data from a dataStandAlone command is read from disk and passed to the eventmon API for ingestion into the database tables.
Calling convention (all on a single line):
ldasJob { -name "username" -password "********" -email "user@foobar.edu"} {putStandAlone -wrapperdata URL -returnprotocol URL -metadataapi URL -database dsname -outputformat {ilwd ascii | ilwd binary | LIGO_LW } -subject {freeform string} }
Option Descriptions:
-wrapperdata:
http ftp file
NOTES:
-metadataapi: api
Default: metadata
The metadata results will be inserted into the database.
If 'ligolw' is specified e.g. -metadataapi ligolw,
and the -returnprotocol specifies a url, the metadata results will be output in the form of xml
rather than being inserted into the database i.e.
running at a site that does not have a database.
If 'tee' option is specified, e.g. -metadataapi tee, and the -returnprotocol specifies a url
the metadata results will
be output both as an xml and also be inserted
into the database.
The argument of the -wrapperdata option URL format
is of the format similar to
that of -returnprotocol. The URL specifies the source of
of the data to be ingested in ilwd format: it can be files,
or directory containing wrapper files.
The URL must be valid for the command to be successfully executed.
Examples of putStandAlone commands:
Examples on how to use this command
This example presents a Tcl script which can be run from any computer with a network connection to submit a user command to the LDAS system:
#!/bin/sh
# use -*-Tcl-*- \
exec tclsh "$0" "$@"
# convenient formatted command definition
# database insertion from wrapper files
set cmd "ldasJob
{ -name foo -password **** -email foo@foobar.edu }
{
putStandAlone
# subject to be used when e-mailing user
-subject {test script for putStandAlone}
# input url for converting
-wrappperdata file:/ldas_outgoing/jobs/globus_files/NORMAL1548
# ilwd format for output ilwd (optional)
-outputformat {ilwd ascii}
# database if not default
-database ldas_tst
}"
# strip comments and compact cmd into user command format
set cmd [ split $cmd "\n" ]
foreach line $cmd {
set line [ string trim $line ]
if { [ regexp {^#} $line ] } {
continue
}
lappend tmp $line
}
set cmd [ join $tmp "\n" ]
regsub -all -- {[\n\s]+} $cmd { } cmd
# connect, issue command, print reply from manager,
# and disconnect
set sid [ socket ldas-dev.ligo.caltech.edu 10001 ]
puts $sid $cmd
flush $sid
puts [ read $sid ]
close $sid
Which submits this command to the system:
Example of xml output
# xml output from wrapper files
set cmd "ldasJob
{ -name foo -password **** -email foo@foobar.edu }
{
putStandAlone
# subject to be used when e-mailing user
-subject {test script for putStandAlone}
# input url for converting
-wrappperdata file:/ldas_outgoing/jobs/globus_files/NORMAL1548
-returnprotocol http://results
-outputformat {LIGO_LW}
-metadataapi { ligolw }
}"
Output will be created by ligolw API in job output directory:
Your results: results.xml can be found at: http://131.215.115.248/ldas_outgoing/jobs/LDAS-DEV_1049/LDAS-DEV10494929
using the default option for -metadataapi, the response is database insertion:
Subject: BOX-III98872 tfclu online running on H2:LSC-AS_Q Inserted 1 rows into ldas_tst database table process Inserted 14 rows into ldas_tst database table process_params Inserted 1330 rows into ldas_tst database table sngl_burst Inserted 1 rows into ldas_tst database table search_summary
If '-metadataapi tee' option is used, the response is both xml and database output:
Subject: BOX-III98809 tfclu online running on H2:LSC-AS_Q Inserted 1 rows into ldas_tst database table process Inserted 14 rows into ldas_tst database table process_params Inserted 1330 rows into ldas_tst database table sngl_burst Inserted 1 rows into ldas_tst database table search_summary Your results: tfclusters_result.xml can be found at: http://131.215.114.23/ldas_outgoing/jobs/BOX-III_9/BOX-III98809
Return to Top