COMMAND = <executable command line>
This specifies an arbitrary native operating system command to be executed. The command may optionally contain two optional formal parameters: $copies, which is replaced by the actual number of copies requested, and $file which is replaced by the filename requested. If $file is not specified, then the (native) print file name is appended to the end of the command line. Here are two examples:
COMMAND = mylpr –n$COPIES $FILE
COMMAND = notepad.exe $FILE
If the requested print file request was for one copy of SYS:ersatz.ini, these would expand to something like the following::
mylpr –n1 /vm/miame/dsk0/001004/ersatz.ini
notepad.exe c:\vm\miame\dsk0\001004\ersatz.ini
The above commands assume Unix in the first case, with the default definition of DSK0: as /vm/miame/dsk0, and Windows in the second case, with DSK0: defined as C:\vm\miame\.
Note that in this example, the $file parameter is not necessary since the filename would have been appended to the end of the command line anyway.
Also note that under Unix, the host command must be executable from the current command shell—i.e. be either an executable binary or a script.
See the SBR option SUBMIT2 for related information.