beautypg.com

Gasboy CFN III Mgnr's Mnl V3.4 User Manual

Page 10

background image

MDE-4315 CFN Series CFN III Manager’s Manual for Windows NT · August 2004

Page viii

Table of Contents

Command File Commands

180

How to Print a Line with ECHO . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 180
How to Wait with SLEEP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 181
From Command File to Command File . . . . . . . . . . . . . . . . . . . . . . . . . 181
Wait for User Input . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 181

Line Length Limitations

182

The ~0A Control Code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 182
The @C and @P Console Destinations. . . . . . . . . . . . . . . . . . . . . . . . . 182

Command Files Executed from a Console

182

Command Files at Sign On

183

How to Save Output from a Command File

183

Output of a Single Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 183
Output of Several Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 183

How to Output to Log Printer

184

How to Output to a Receipt Printer

184

How to Add an Event to the Disk Journal

185

Variables for Use in Command Files

186

System Variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 186
Command-line-argument Variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . 188
User Variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 189
The EXECUTE Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 189

How to Exit from Command Files

190

18 – Advanced Command Files

191

How to Use the IF Command

191

How to Use Loops in Command Files . . . . . . . . . . . . . . . . . . . . . . . . . . 194
How to Use Case Statements in Command Files . . . . . . . . . . . . . . . . . 196
Prompt String . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 197
How to Set User Variables in Command Files . . . . . . . . . . . . . . . . . . . . 197
ECHO with the p1 Option . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 200
How to Use Branching and Subroutines . . . . . . . . . . . . . . . . . . . . . . . . 200
How to Search for a String in a File . . . . . . . . . . . . . . . . . . . . . . . . . . . . 202

Advanced Commands

203

The NEXT CLERK Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 203
The CLOSE Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 203
The SCREEN Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 203

19 – Automatic Cron Commands

205

What Conditions Can Be Specified for cron

205

Timed cron Entry . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 206
Restart cron Entry . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 207
Reboot cron Entry . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 208
Transaction-memory cron Entry . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 209

Where To Put Command Files for cron

209

How To Enter cron Commands

210

How To Keep cron Command Output from the Log . . . . . . . . . . . . . . . . 210

How To Print a Listing of cron Entries

210

How to Remove cron Commands

211

This manual is related to the following products: