| 1 |
|
| 2 |
<HTML> |
| 3 |
<HEAD> |
| 4 |
<TITLE>Changes For Users from XPA 1.0 and 2.0</TITLE> |
| 5 |
</HEAD> |
| 6 |
<BODY> |
| 7 |
|
| 8 |
|
| 9 |
<H2><A NAME="xpachanges">XPA Changes: Changes For Users from XPA 1.0 and 2.0</A></H2> |
| 10 |
|
| 11 |
|
| 12 |
<H2>Summary</H2> |
| 13 |
<P> |
| 14 |
This document describes changes that will affect users who migrate |
| 15 |
from XPA 1.0 to XPA 2.0. |
| 16 |
|
| 17 |
|
| 18 |
<H2>Description</H2> |
| 19 |
<P> |
| 20 |
There have been a few changes that affect users who upgrade XPA |
| 21 |
from version 1.0 to version 2.0. These changes are detailed below. |
| 22 |
<UL> |
| 23 |
<P> |
| 24 |
<LI>XPA commands no longer have a resolver routine (this is open to |
| 25 |
negotiations, but we decided the idea was dumb). For the SAOtng |
| 26 |
program, this means that you must explicitly specify the access |
| 27 |
point, i.e.,: |
| 28 |
<PRE> |
| 29 |
cat foo.fits | xpaset SAOtng fits |
| 30 |
</PRE> |
| 31 |
|
| 32 |
<P> |
| 33 |
instead of: |
| 34 |
<PRE> |
| 35 |
cat foo.fits | xpaset SAOtng |
| 36 |
</PRE> |
| 37 |
<P> |
| 38 |
<LI>By default, xpaset, xpaget, etc. now wait for the server callback to |
| 39 |
complete; i.e., the old -W is implied (and the switch is ignored). |
| 40 |
This allows support for better error handling. If you want xpaset, etc. |
| 41 |
to return before the callback is complete, use -n switch: |
| 42 |
<PRE> |
| 43 |
echo "file foo.fits" | xpaset -n SAOtng |
| 44 |
</PRE> |
| 45 |
<P> |
| 46 |
<LI>The old -w switch in xpaset and xpaget is no longer necessary (and is |
| 47 |
ignored), since you can have more than one process communicating with |
| 48 |
an xpa access point at one time. |
| 49 |
|
| 50 |
<P> |
| 51 |
<LI>The new -p switch on xpaset means you need not read from stdout: |
| 52 |
<PRE> |
| 53 |
xpaset -p SAOtng colormap I8 |
| 54 |
</PRE> |
| 55 |
<P> |
| 56 |
will send the paramlist to the SAOtng callback without reading from stdin. |
| 57 |
|
| 58 |
</UL> |
| 59 |
|
| 60 |
|
| 61 |
|
| 62 |
|
| 63 |
|
| 64 |
<P> |
| 65 |
<A HREF="./help.html">Go to XPA Help Index</A> |
| 66 |
|
| 67 |
<H5>Last updated: September 10, 2003</H5> |
| 68 |
</BODY> |
| 69 |
</HTML> |