beautypg.com

How to enter cron commands, How to keep cron command output from the log, How to print a listing of cron entries – Gasboy CFN III Mgnr's Mnl V3.4 User Manual

Page 226: How to print a listi ng of cron entries

background image

Automatic Cron Commands

How To Enter cron Commands

Page 210

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

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.

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 (see

“How to Use Options

with Commands” on page 15

). The cron entry in the example below executes a

command file and prints nothing on the log.

How To Print a Listing of cron Entries

Use the command PRINT CRON or P CR to print a listing of cron entries. The
listing shows the command number, when the command will be executed, and
the name of the command.

Asterisks are substituted for time fields that were not specified. For example, if
no day of the week were specified, only three asterisks would appear where
Mon, Tue, etc., would otherwise be printed. Also, the listing will automatically
separate the time fields by spaces or slashes.

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*

P* LOAD CRON

Command number? 5

Command? @1203 -PR_DATA

PRINT CRON (P CR)

P* PRINT CRON

# When Command
1 *** **/**/** 8:00 SHIFT1
2 *** **/**/** 12:01 PRINT PUMP;>>PUMPLOG
3 RESTART MYCRASH
4 REBOOT MYBOOT
5 *** **/**/** 12:03 -PR_DATA
6 *** **/**/** 17:00 SHIFT2
7 *** **/**/** 1:00 SHIFT3
P*

This manual is related to the following products: