Agent.GetKeyFiles
| Module | Agent | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Method | |||||||||
| Library | Core | ||||||||
| Action | Returns names and paths of key files relating to the execution of the Tachyon Agent. | ||||||||
| Parameters | (None) | ||||||||
| Return values |   | ||||||||
|   | |||||||||
|   | |||||||||
|   | |||||||||
|   NoteThis is derived from either the configuration value if the specified setting is valid, or the default temporary directory. The following table shows the OS-specific defaults used if the setting is omitted, blank, or invalid. The default is recommended. 
 TemporaryDirectory is a configuration setting of the 1E Client. | |||||||||
| Example | The following example reads the Tachyon Agent configuration file and shows the contained settings and values: @keyFiles = Agent.GetKeyFiles();
/* Bail if the Agent has no configuration file (see Notes below) */
SELECT * FROM @keyFiles WHERE Configuration != "";
EVALUATE;
/* Read each line of configuration file */
@lines = FileSystem.GetFileByLine(FileName: @keyFiles.Configuration);
/* Filter out comment entries, and parse remaining lines into Setting and Value */
SELECT LTRIM(REGEXPREPLACE("([^=]*)=(.*)", Content, "$1")) AS Setting
,      LTRIM(REGEXPREPLACE("([^=]*)=(.*)", Content, "$2")) AS Value
FROM   @lines
WHERE  LTRIM(Content) REGEXP "([^\\#])*=(.*)"; | ||||||||
| Platforms | 
 | ||||||||
| Notes |