.\" @(#)samp.1 1.0 Oct-2011 MJF .TH SAMP 1 "October 2011" "VOClient Project" .SH NAME samp \- commandline SAMP interface tool .SH SYNOPSIS \fBsamp\fP [\fI\fP] [ <\fIresource\fP> [[ <\fIobjname\fP> [ <\fIsr\fP> ]]] ] \fBvodata\fP [\fI\fP] [ <\fIresource\fP> [[ <\fIra\fP> <\fIdec\fP> [ <\fIsr\fP> ]]] ] \fBvodata\fP [\fI\fP] [ <\fIurl\fP> ] .SH OPTIONS The \fIsamp\fP task accepts the following options: .TP 8 .B \-h Print a help summary to the terminal and exit. .TP 8 .B \-d Debug output. .TP 8 .B \-v Verbose output. .TP 0 The following flags control the major behavior of the task: of output to present. .TP 8 .B \-m Handle multiple messages. If not set, the task will exit after receipt of the first message. .TP 8 .B \-s \fI\fR Handle messages only from the specified \fI\fR application. The application name may optionally be the public ID of the application. .TP 8 .B \-t \fI\fR Send the message to the specified application. If not set, a message is broadcast to all clients subscribed to that particular message. .TP 8 .B \-p \fI\fR Send the message using the specified messaging pattern. Allowed values are '\fIsynch\dR', '\fIasynch\fR', or '\fInotify\fR'. Asynchronous messages will ignore the reponse message. .TP 8 .B \-i Process in interactive mode. The application will register with the Hub once and then process commands typed in at the "samp>" prompt. .TP 8 .B \-f \fI\fR Process all commands in the named \fI. .SH DESCRIPTION The \fIsamp\fR application ..... .SH COMMAND SUMMARY .nf Commands: snoop print all received messages send [ ...] generalized message send status print Hub availability list list all registered clients access print availability handle wait for message exec execute a client command setenv set an environment value getenv get an environment value setparam set a parameter value getparam get a parameter value loadImage load the named image loadVOTable load the named VOTable loadFITS load the named FITS bintable loadSpec load the named spectrum loadResource load the named VO Resource pointAt point at given coords showRow [] [] highlight specified row selectRows [] [] select specified rows bibcode load the bibcode .fi .SH EXAMPLES .TP 4 1) Print SAMP application status information: .nf % samp status is Hub available? % samp access topcat is 'topcat' connected? % samp list list all available applications .fi .TP 4 2) Send a message containing the mtype \fIfoo.bar\fR and the parameter \fIfoo\fR with a value of \fItrue\fR to all applications subscribed to this mtype. .nf % samp send foo.bar foo=true % samp -t topcat send foo.bar foo=true .fi The second example sends the message specifically to 'topcat'. .TP 4 3) Start the application an wait for a 'foo.bar' message to arrive. In the second example, we'll continue running to receive multiple messages. In the third example, wait for a message only from another 'samp' application. .nf % samp handle foo.bar (1) % samp -m handle foo.bar (2) % samp -s samp handle foo.bar (3) .fi .TP 4 4) Process multiple commands from a file: .nf % type cmds loadImage http://foo.bar/sif.fits loadVOTable http://foo.bar/sif.fits % samp -f cmds or % cat cmds | samp -f - .fi .SH BUGS .PP .SH TODO .PP .SH Revision History October 2011 - This task is new. .SH Author Michael Fitzpatrick (fitz@noao.edu), October 2011 .SH "SEE ALSO"