Previous Topic

Next Topic

Book Contents

Book Index

FireScript Components

A FireScript is broken into three sections: fwsc, comment and script. As in a Windows ini file, the name of the section appears alone on a line, in square brackets, followed by the rest of the section.

The fwsc section is internally structured with name=value pairs in the same manner as a Windows ini section. It contains identifying information about the script, and indicates what variables will be required by the script.

The comment section is free-form text intended for human readers. It is ignored by the script executable.

The script section contains the scripts executable portion and conforms to the FireScript syntax.

Below is an example FireScript demonstrating this layout.

[fwsc]

author=Ipswitch
connectto=firewall

… other values not shown would typically include 'required=' and 'version='

[comment]

This is an example script that connects to an FTP proxy. It is incomplete because many of the commands required to connect have been deleted for clarity. The main purpose is to demonstrate the organization of the FireScript into three sections.

[script]
send ("OPEN %HostAddress") {}
tryssl;
send (“USER %HostUserId”)
{
case (300..399) :

continue ;

case any :

return (false) ;
}

… most of script not shown due to the size.

label success;
gossl;
return (true);

In This Section

The fwsc Section

The Comment Section

The Script Section

See Also

FireScript Editor

What is a FireScript?

The Connection Sequence

The FireScript Language

FireScript Variables

String Expansion

Function Expressions

FireScript Statements

SSL Statements

FireScript Key Words

FireScript reserved words