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]
… 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) :
… most of script not shown due to the size.
In This Section |
See Also |