$ - spawn or exit to shell

Execute an operating system command.

xsel >  $ <command_line>

where command_line contains a UNIX command. No parsing of $<$command_line$>$ is done by the XPI parser, therefore all the $'s, skipped fields, double quotes etc have the meaning they would in an operating system command. Also $<$command_line$>$ must be 80 characters or less.

If the dollar sign is entered with no $<$command_line$>$ the program opens a new shell, and a series of commands can be entered – type exit to get back into XSELECT. Spawning can be disabled by setting the environment variable DIASBLE_SPAWN.


xsel > $

Spawns a shell.

xsel >  $ls

Lists the contents of the current directory.

xsel >  $cp triala0.pha x1822a0.pha;   ls *.pha;   exit

starts up a shell, copies a file and returns to XSELECT. The $ can even be given in reply to a prompt:

xsel >  set datadir
> Enter the event file directory > [] $
> Enter the event file directory > []

HEASARC Home | Observatories | Archive | Calibration | Software | Tools | Students/Teachers/Public

Last modified: Tuesday, 10-Jan-2023 11:03:00 EST

The HEASARC welcomes your participation in a brief survey to capture how users access and utilize HEASARC data, software, and services. The outcome(s) of this survey will be used to guide, prioritize, and plan our activities and development in the coming years. It contains 20 questions, generally takes just a few minutes to complete, and your answers will remain totally anonymous. The survey is open until Dec 18, 2023. We thank you in advance for your valuable feedback.