Next: ? Up: scripts Previous: scripts parameters
Sometimes it would be nice to write a script that in which most of the responses are read from the script, but one or more lines are read from the terminal. This can done by using the @ symbol with no filename. When XPI is reading an script, and comes to that line it will proceed to write the prompt on the terminal, and read the user's response. After this one line is read, XPI returns to reading the script. Of course, @ could again be used on the following line.
For example, consider the file:
1,23! Normal input ! Default input @test! Read from the file test, until the end of the file 10 ! More input @! Read this line from the terminal 999! Another normal line
Next: ? Up: scripts Previous: scripts parameters Keith Arnaud
HEASARC Home | Observatories | Archive | Calibration | Software | Tools | Students/Teachers/Public
Last modified: Monday, 19-Mar-2012 14:16:46 EDT