Intranet/Hosting Toolkit | [table of contents]

CFX_secExecute `v0.3 November 30th 2001` | OPEN-SOURCE NT DLL for Cold Fusion 4.0.1 and up Lewis A. Sellers http://www.intrafoundation.com/ihtk.html ihtk@intrafoundation.com

## PREAMBLE

This is one of a set of secure versions of the tags CFFILE, CFDIRECTORY and CFEXECUTE, etc. They operate essentially the same the built-in 4.5.x versions except that they accept USERNAME and PASSWORD parameters used for hosting situations. They may have some additional features or lack a few (irrelevant features).

These tags were originally machined by request to compliment or replace the tags CFX_File and CFX_Directory.

# CFX_secExecute

    <CFX_secEXECUTE
    	NAME="Application"
    	ARGUMENTS="Command line arguments"
    	OUTPUTFILE="Output file name"
    	VARIABLE="Output variable name"
    	TIMEOUT="Timeout seconds"
    	USERNAME="user name"
    	PASSWORD="password"
    	>

This is a secure version of CFEXECUTE. It has been machined to work exactly like CF4.5's CFEXECUTE except that

- 1) There is an additional parameter called VARIABLE that allows the output to be placed in the variable specified.
- 2) It doesn't throw hard exceptions if there's a problem (they can't be handled by pre-cf4.5 servers).

Errors are returned in the secExecuteError variable. Return codes, if any, are returned in secExecuteReturnCode.

This tag uses a file called secExecute.txt that should be located in your CustomTags folder (typically c:\cfusion\customtags). The format of the file consists of a series of lines containing three space seperated fields such as:

`<username> <password> <homedirectory>`

Edit this file as you wish.

## VERSION HISTORY

- 0.2 Feb Added to IHTK.
- 0.1 Feb 11th 2001. Cleanup. (Music by Candlemass.)
- 0.0 Feb 10th 2001. Initial contract build and release.

fini