scripts terminal promptSometimes 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
HEASARC Home | Observatories | Archive | Calibration | Software | Tools | Students/Teachers/Public Last modified: Tuesday, 10-Jan-2023 11:03:00 EST HEASARC Staff Scientist Position - Applications are now being accepted for a Staff Scientist with significant experience and interest in the technical aspects of astrophysics research, to work in the High Energy Astrophysics Science Archive Research Center (HEASARC) at NASA Goddard Space Flight Center (GSFC) in Greenbelt, MD. Refer to the AAS Job register for full details. |