Tag Type C++ code (built in to libRPM/VarCache.cc)
[loc=]string and
Required. Specifies a location and access method for obtaining the value of the variable. The method= can be omitted with the file name or location ends in .rpm, .par, or .sh. See also information on built-in rpm access methods in the RPM user's manual.
name=wildcard expr Optional. Use this to choose a subset of Public variables which match the wildcard or "Glob" expression.
stdout=[parse] | null | xmit | logonly | debug | notice | warning | error Optional. Tells rpm what to do with the output the program generates on stdout. The default behavior is to parse the output for new "name=value" pairs, printed one on a line. You can turn this off by setting this attribute to null, or you can choose to transmit the output to the browser by setting it to xmit, or you can log the output (if any) to any of the log interfaces: logonly, debug, notice, warning, or error.
stderr=parse | null | xmit | [logonly] | debug | notice | warning | error Optional. Tells rpm what to do with the output the program generates on stderr. The default behavior is to log it on the syslog only. Other attributes behave the same as those listed for stdout above.
demo Optional. If present, allows this action to be executed even when the server or the form is in "rpmdemo" mode. Be careful about adding this attribute to an Exec tag!
ignorefail Optional. Normally, no further items in an Action section are carried out if an Exec fails. This causes the failure to be ignored.
Contained Tags None.
Related Tags Exec tags are ignored unless they appear within an Action section of the Public section. For methods that write to a shell script or external program, an implicit Import is done on the script's output. It simply needs to print lines of the form "variable=newvalue" on stdout to update the variable in the form. Although Private variables will never be passed to the external program, their values can be updated in the other direction by the output of the shell script.
Examples The examples for Action also illustrate some uses the Save tag.