Element: <execute>

Syntax

        <!ELEMENT execute        ((param | prefix)*)>
<!ATTLIST execute
          base           CDATA #IMPLIED
          command        CDATA #REQUIRED>

This element occurs in : Element : <alfs> | Element: <stage>

See also : Element: <param> | Element: <prefix>

Description

The execute element is one of the top-level operation elements. It is used to execute any arbitrary system command.

The param child-element contains parameters for the command.

The prefix child-element contains any prefix data for the command to execute.

The base attribute allows you to specify the directory in which the operation will be performed. For a better description, see Element : <base>.

The command attribute contains the text of the command itself.

Example #1

The first example is an execute command without a parameter.

<execute command="umount">

The equivalent bash script is :

echo Executing 'umount'
umount

Example #2

The second example is an execute command with one parameter.

<execute command="mount">
        <param>/mount/lfs</param>
</execute>

The equivalent bash script is :

echo Executing 'mount'
mount /mount/lfs