N1 Service Provisioning System 4.1 Reference Guide

The exec Child Element

An <execNative> step can contain exactly one <exec> element. The <exec> element specifies the details of the native command to be executed.

The <exec> element contains:

<execNative> executes the command specified in cmd directly with the arguments in the order they are specified.

For example, the <execNative> step below:


<execNative>
	<exec cmd=”ps”>
		<arg value=”-fu”/>
		<arg value=”sps”/>
	</exec>
</execNative> 

will execute the command: ps –fu sps.

exec Element attributes

Name 

Type 

Required 

Configurable 

Description 

cmd 

String 

Yes 

Yes 

The path of the command to execute. If the specified path is not absolute the command is looked up using the platform specified PATH environment variable setting for the RA. Should be a non-empty string 

exec Element child elements

Name 

How Many? 

Description 

arg 

0 or more 

The arguments to the command being executed. Each arg element defines one positional parameter to the command. 

arg Child Element attributes

Name 

Type 

Required 

Configurable 

Description 

value 

String 

Yes 

Yes 

The argument value. This argument will be supplied as the nth argument to the command where arg is the nth child of the command element.