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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

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

Still another example using parameters is<br />

A> SUBMIT AA ZZ SZ<br />

where AA is the SUB file AA.SUB, ZZ is the argument to replace any<br />

occurrences of $1 in the AA.SUB file and SZ is the argument to replace<br />

all occurrences of $2 in the AA.SUB file.<br />

The PROFILE.SUB Start-up File<br />

Every time you turn on or reset your computer, <strong>CP</strong>/M 3 automatically<br />

looks for a special SUB file named PROFILE.SUB to execute. If it does<br />

not exist, then <strong>CP</strong>/M 3 resumes normal operation. If the PROFILE.SUB<br />

file exists, the system executes the commands in the file. This file is<br />

convenient to use if you regularly execute a set of commands before<br />

you do your regular session on the computer. For example, if you want<br />

to be sure that you always enter the current date and time on your<br />

computer before you enter any other commands, you can create the<br />

PROFILE.SUB file, with ED, and enter the DATE command as follows:<br />

DATE SET<br />

Then, whenever you bring up the system, the system executes the DATE<br />

command and prompts you to enter the date and time. By using this<br />

facility, you can be sure to execute a regular sequence of commands<br />

before starting your usual session.<br />

5-113

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

Saved successfully!

Ooh no, something went wrong!