SLIK supports a built-in file test
operation able to perform the following tests.
|
Test Type |
Argument |
|
File exists |
File name |
|
Directory exists |
Directory name |
|
Ping host |
Host name |
|
File pattern |
File pattern |
|
File size |
Integer file size |
|
File date |
File date |
|
Disk space |
Integer disk space |
|
Regular Expression |
Grep type expression |
A comparison operator (e.g.,
<=,> etc) and a value is used to determine if the test condition is meet.
A File Test operation provides a
simple way to test for the existence of specific files, directories or hosts. A
regular expression feature also lets you search for a word or pattern in the
contents of one or more files.
File Test operations are created using
the following form:

|
The File Test ID field holds the
system generated unique identifier. The
File Test ID field automatically populates on creation of the File Test
record. The File Test record
is created when you click on
OK to save and close the new record. Field value type: system
generated |
|
|
A File Test record will have one
of the following Test Type values to define what type of test is run when
the associated Job activates: File
Exists – checks to see that the file defined
in the File/Object Name* field can be located. Dir
Exists – checks to see that the directory
defined in the File/Object Name* field can be located. Ping
Host – initiates a Ping to see that the host
defined in the File/Object Name* field can be reached. File
Pattern –initiates a search for all files that
match the file pattern recorded. For
example, all files with a file pattern of *.exe. File
Size – initiates a search for files that meet
the file size criteria as entered into the Condition
Value field.
File
Date – initiates a search for files with the
date value noted in the Date Value
field. The date can either be
input directly into this field or selected using the attached drop-down
calendar. Disk
Space – initiates a test of available disk
space of the disk defined in the File/Object Name field.
Test parameters are set using the Operator
and Condition
Value fields. Regular
Expression –a full regular expression search
in the contents of the files specified. |
|
|
The value located in the
File/Object Name* field defines the file or object the test is being
conducted on. |
|
|
The value located in this field
indicates the treatment of the Condition Value. |
|
|
The value located in this field,
in association with the Operator
value, indicates the condition the File Test must meet.
|
|
|
Values entered into the
following two fields indicate the value conditions are to be compared
against. The default
comparison position for SLIK is to compare against a value to the right of
the condition. Date
Value – enter or select a date to be used as
the comparison value. Regular
Expression – enter an expression to be used as
the search value. |