![]()
| Example External Console ScriptsKFSensor includes a number of example scripts that implement simple services. These can be configured to run as external console applications using the Edit External Console App dialog box. The scripts are located in the directory: Your own scripts can be located in any directory on the local hard drive. The example scripts are written in PERL. In order to use these scripts you will need to install a copy of PERL. The descriptions below contains the field values that need to be entered into the Edit External Console App dialog box. Example 1 - Quote of the day - kfquoteoftheday.plThis basic script emulates the Microsoft Quote of the day service. It chooses one of 11 quotes at random and sends the text to the visitor. Note: It is important to include the quotes in the Argument field as PERL does not like a space in a path name.
Example 2 - Echo - kfecho.plThis script implements the echo service, which simple reads data from the socket and writes the same data back to the socket. Note: This script will continue running until either the visitor closes the connection or KFSensor times out the connection.
Example 1 - Test ScriptThis script is useful for debugging purposes only. It sends its command line arguments and environment variables to the visitor. Note: The $ arguments will be substituted with their parameter values.
Third party exampleThere are a number of scripts that emulate services that have been released as open source on the Internet. This example configuration is for a Unix shell script that emulates a POP3 server. In order to run a shell script you will need to install CygWin, http://www.cygwin.com.
Related Topics |