xpaset(1)

πŸ“¦
version 2.1.20 Β· 2 versions
  • 2.1.20 Β· debian bookworm, debian trixie, ubuntu jammy, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking (latest)
  • 2.1.20 Β· fedora 43, fedora 44
, in debian bookworm, debian trixie, ubuntu jammy, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– xpaset β€” the manual, but make it cute πŸ’–

okay bestie, listen up: xpaset is the XPA tool that sends data to one or more XPA servers. That's it, that's the whole vibe. It's the glow-up twin of xpaget (iykyk). ✨


🌸 SYNOPSIS 🌸

<data> | xpaset  [-h] [-i nsinet] [-m method] [-n] [-p] [-s] [-t
sval,lval] [-u users] [-v] <template|host:port> [paramlist]

✨ OPTIONS ✨

  • -h β€” print help message. your little "what do I do 😭" button.
  • -i β€” access XPA point on a different machine (this one overrides XPA_NSINET, no cap).
  • -m β€” override the XPA_METHOD environment variable. main character energy, refusing to follow the env's rules.
  • -n β€” don't wait for the status message after the server completes. not me being impatient πŸ’…
  • -p β€” don't read (or send) buf data from stdin. parameters only, bestie.
  • -s β€” enter server mode. yes queen, server mode.
  • -t [s,l] β€” set short and long timeouts (overrides XPA_[SHORT,LONG]_TIMEOUT). clock is ticking ⏰
  • -u [users] β€” XPA points can be from the specified users (overrides XPA_NSUSERS). we love a curated guest list 🫢
  • -v β€” verify message to stdout. proof or it didn't happen.
  • --version β€” display version and exit. bye bestie πŸ‘‹

πŸ¦‹ DESCRIPTION πŸ¦‹

Data read from stdin will be sent to access points matching the template or host:port. And guess what β€” a set of qualifying parameters can be appended. periodt.

Normally, xpaset reads data input from stdin until EOF and sends those data to the XPA target, along with parameters entered on the command line. For example, to send a FITS file to the ds9 image display:

cat foo.fits | xpaset ds9 fits

Sometimes, however, it is desirable to send only parameters to an XPA access point, without sending data. For such cases, use the -p switch to indicate that there is no data being send to stdin. For example, to change the colormap used by the ds9 image display program, use:

csh> xpaset -p ds9 cmap Heat

Of course, this also can be accomplished by sending EOF to stdin in any of the usual ways:

csh> echo "" | xpaset ds9 cmap Heat
csh> xpaget ds9 cmap Heat < /dev/null
csh> xpaset ds9 cmap Heat
^D                    # Ctl-D signals EOF

The -s switch puts xpaset into server mode, in which commands and data can be sent to access points without having to run xpaset multiple times. (Its not clear if this buys you much!) The syntax for sending commands in server mode is:

csh> xpaset -s
xpaset ds9 colormap I8
^D
xpaset ds9 regions
circle 200 300 40
circle 300 400 50
^D
etc.

After the required "xpaset" command is specified, optional ASCII data can be appended (as in the region example). A single data/command set is delimited by ^D. Note that typing ^D when a command is expected terminates the program. πŸ’€ like, abruptly. gone.

NB: server mode only works from the terminal and only ASCII data can be sent in this way.

Examples:

csh> xpaset ds9 file < foo.fits
csh> echo "stop" | xpaset myhost:12345

🌈 SEE ALSO 🌈

See xpa(n) for a list of XPA help pages. (yes bestie, go read the whole lore πŸ“š)


and that's a wrap, gorgeous πŸ’…βœ¨ this was version 2.1.15, dated July 23, 2013, brought to you by the SAORD Documentation gang β€” slay forever πŸŽ€πŸ¦‹πŸ’–