beautypg.com

Where to put command files for cron, How to enter cron commands, How to keep cron command output from the log – Gasboy CFN III Manager Manual V3.6 User Manual

Page 231: How to keep cron command output from the log -5

background image

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

Page 21-5

Where To Put Command Files for Cron

Automatic Cron Commands

Where To Put Command Files for Cron

Cron will search the normal command search path for command files and disk-based
commands. The command search path used depends on how the site is configured.

Standard search path for a CFN3 application

If you want to keep your command files for cron in a separate directory that is not on the
command search path, you can always use the full pathname to execute the command. For
example, you could keep your command files for cron in /CRON. Another approach is to
reconfigure the site.

How To Enter Cron Commands

Use the command LOAD CRON or LO CR to enter cron commands. You may use the C
option with LOAD CRON to load more than one entry with a single command.

LOAD CRON (LO CR)

[P:]* LOAD CRON;C

Command number? 1

Command? @0800 SHIFT1

Command number? 2

Command? @1201 PRINT PUMP;>PUMPLOG

Command number? 3

Command? ! CRASH

Command number? 4

Command? ^ MYBOOT

[P:]*

How To Keep Cron Command Output from the Log

Unless it is redirected, the output from cron commands is printed on the log. To prevent output
from printing on the log, put a hyphen (-) before the command. If you want to save the output
of a cron command, you may redirect its output to a file by using the redirection options (> or
>>) or by putting the commands in a command file and using ENABLE DUMP in the file
(refer to

“How to Use Options with Commands”

on

page 3-6

). The cron entry in the example

below executes a command file and prints nothing on the log.

[P:]* LOAD CRON

Command number? 5

Command? @1203 -PR_DATA

Path

Destination

P:

the RAM drive

.

CFN3 root directory

P:\BIN

\BIN on hard drive

This manual is related to the following products: