03.03.2013 Views

DIGITAL RESEARCH(r) CP/M Plus TM (CP/M Version 3) Operating ...

DIGITAL RESEARCH(r) CP/M Plus TM (CP/M Version 3) Operating ...

DIGITAL RESEARCH(r) CP/M Plus TM (CP/M Version 3) Operating ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

The GET Command <strong>CP</strong>/M 3 User's Guide<br />

The GET Command<br />

Syntax: GET {CONSOLE INPUT FROM} FILE filespec<br />

{[{ECHO|NO ECHO}|SYSTEM]}<br />

GET {CONSOLE INPUT FROM} CONSOLE<br />

Explanation: The GET command is a transient utility that directs <strong>CP</strong>/M 3 to take<br />

console input from a file. The file can contain <strong>CP</strong>/M 3 system commands<br />

and/or input for a user program. If you use the SYSTEM option,<br />

GET immediately takes the next system command from the file.<br />

Console input is taken from a file until the program terminates. If the<br />

file is exhausted before program input is terminated, the program looks<br />

for subsequent input from the console. If the program terminates before<br />

exhausting all its input, the system reverts back to the console for<br />

console input.<br />

When the SYSTEM option is used, the system immediately goes to the<br />

file specified for console input. If you omit the SYSTEM option, you<br />

can enter one system command to initiate a user program whose console<br />

input is taken from the file specified in the GET command. The<br />

system reverts to the console for input when it reaches the end of the<br />

GET file input. The system also reverts to the console for console input<br />

if a GET CONSOLE INPUT FROM CONSOLE command is included<br />

in the input file.<br />

Get Console Input from a File<br />

Syntax: GET {CONSOLE INPUT FROM} FILE filespec {[options]}<br />

Explanation: The preceding form of the GET command tells the system to get subsequent<br />

console input from a file. Table 5-7 lists the GET options that<br />

you use in the following format:<br />

[{ECHO | NO ECHO} | SYSTEM]<br />

5-44

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!