Initializing help system before first use

cmdsubst

Purpose
Get the output of the execution of a command.
Synopsis
function cmdsubst(a_args:...):text
Argument
a_args 
command and its arguments.
Return value
Output of the command as a text string.
Example
Save the content of file 'mydata.txt' into the variable 'mydata':
 mydata:=cmdsubst("cat mydata.txt")
Further information
1. The first argument of the routine is interpreted as a list of flags if it starts with a '-'.
2. If the flag "-d" is used, the following argument is interpreted as a directory name from where the command will be executed.
3. With the flag "-t", leading and terminating spaces are removed and all newline characters are replaced by spaces.
4. The command can be given either as a single string or as a list of strings. In this case the first one is the command itself and each following one an additional argument.
5. The status of the execution should be checked with getsysstat.

© 2001-2026 Fair Isaac Corporation. All rights reserved. This documentation is the property of Fair Isaac Corporation (“FICO”). Receipt or possession of this documentation does not convey rights to disclose, reproduce, make derivative works, use, or allow others to use it except solely for internal evaluation purposes to determine whether to purchase a license to the software described in this documentation, or as otherwise set forth in a written software license agreement between you and FICO (or a FICO affiliate). Use of this documentation and the software described in it must conform strictly to the foregoing permitted uses, and no other use is permitted.