beautypg.com

Command file commands, How to print a line with echo, Command file commands -4 – Gasboy CFN III Manager Manual V3.6 User Manual

Page 202: How to print a line with echo -4

background image

[P:]* NEWSHIFT

stop
load shift;t
Shift number? 1
print totals;at
Which totals? 3
- - - Shift 3 from Sun 9/19/99 9:51 PM to Mon 9/20/99 6:35 AM - -
-
1

1 Regular

38

35.25

2

1 Unleaded

20

18.55

3

1 Premium

41

47.95

4

1 Diesel

33

26.91

----

------

132

128.66

run

[P:]*

Making Your Own Commands

Command File Commands

Page 19-4 MDE-4871 CFN III Manager’s Manual for Windows® XP Embedded - Version 3.6 · August 2010

When the command with the T option ends, input is taken from the file again and redirection is
enabled. When the command file above is executed, the commands LOAD SHIFT and PRINT
TOTALS will print their normal prompts and take input from the terminal.

Command File Commands

How to Print a Line with ECHO

ECHO or EC sends its arguments to standard output. Standard output normally prints on the
command terminal, but can be redirected to a file. If you use ECHO in a command file that is
executed by cron, the output will disappear unless it is redirected to a file.

ECHO adds a new line after the line it prints by adding a carriage return after the printed line.
ECHO;A does not put a carriage return after the echoed text.

For command files that will be executed from the console, use ECHO;T to have output
displayed on the console. Without the T option, ECHO will send its output to the log printer
when executed from the console.

You can use ECHO to, for instance, display a reassuring message that the command is in the
process of working.

[P:]* TYPE SHIFT1.CMD

* load shift command
* takes one argument, the new shift number.
echo Loading shift %1
stop
load shift %1
run

This manual is related to the following products: