Contents | Index | < Browse | Browse >
QUEUE
The QUEUE instruction is used to prepare a stream of data to be read by a command shell or other program. It is very similar to the PUSH instruction and differs only in that the data lines are placed in the STDIN stream in "first-in, first-out" order. In this case, the instructions:
QUEUE line 1
QUEUE line 2
QUEUE line 3
would be read in the order line 1, line 2 and line 3. The QUEUEd lines always precede all interactively-entered lines and always follow any PUSHed (stacked) lines. For example:
Do i=1 to 5
QUEUE 'echo "Line 'i'"'
end