All variables managed by CGIexecutor appear in files in following form:
<%variable_name%>
and variable names are case sensitive which means, for example, that
MyVariable and myvariable will be
considered two different variables.
There are three types of variables supported by CGIexecutor :
System variables are provided to allow access to CGIexecutors internal variables.
All system variable names begin with SYS. prefix and every variable with
SYS. prefix is assumed to be an system variable. This variables are set
internally by CGIexecutor, and You can affect their values only by setting appropriate
variable in configuration file.
Following are descriptions of system variables defined in CGIexecutor v1.01:
- SYS.year, SYS.month, SYS.day, SYS.houres, SYS.minutes, SYS.seconds
Are provided for displaying local system's date and time.
- SYS.tmpdir
This variable will contain name of temporary directory and is set by setting
tmpdir variable in configuration file.
- SYS.template
SYS.template variable contains name of file which is used as template for creating
response page. This value is set by setting template variable
in configuration file.
- SYS.errtemplate
SYS.errtemplate points to file used as template for creating answer page when an error
occurs. It's value is set by setting errtemplate variable in configuration
file.
- SYS.cmdintemplate
SYS.cmdintemplate variable contains name of file which will be used as template to create
input file for program executed by CGIexecutor. This value is set by setting
cmdintemplate variable in configuration file.
- SYS.cmdline
Contains command line to be executed by CGIexecutor and is set with cmdline
variable in configuration file.
- SYS.infile, SYS.outfile
Are names of input and output file for executed program. This names are built dynamically
when CGIexecutor is started and depends on tmpdir, infext
and outfext variables in configuration file.
- SYS.stdin, SYS.stdout, SYS.stderr
Are names of files used to redirect input, output and errors from external program.
See STDIN, STDOUT, STDERR variables in configuration file for more information.
- SYS.input, SYS.output
When CGIexecutor sees this variables it will replace them with contents of files specified
in SYS.infile or SYS.outfile.
- SYS.errlvl
SYS.errlvl variable will contain return value of executed process if errlvl
variable in configuration file is not set to CHECK.
Environment variable names begins with ENV. prefix and are used to access systems
environment variables. When CGIexecutor sees variable beginning with ENV. prefix
it will search for environment variable with same name. Thus if You want to access TEMP
variable which points to temporary directory on Your system just put ENV.TEMP variable
instead.
User variables are only variables on which user can affect by typing their values on form.
This variables are additionally divided to ordinary user variables and required.
Required variable names begins with REQ. prefix and will cause CGIexecutor to generate
an error if it finds required variable which has no value or it's value is an empty string.
[Top of page][Home]