The Custom:execute Method

This method executes a command and ignores the result.

If this method call is performed within an action, you can provide parameters for a script or program by using variable substitution. Variable substitution inserts information into the command from the rule data source.

On the OS/400 platform, the supported commands are:
  • commands that start with the system (when using a CL command)
  • commands that run on the Qshell (qsh) utility. Use the -c option when using the qsh command.
    For example:
    qsh -c ls
    system DSPDTAARA DTAARA (<LibName>/<Data Area Name>)

Type

Synchronous, IMPACT_ACTION

Arguments

Name Type Description
command String The command to execute

Returns

None

Tip: All shell scripts called from your Hawk environment must define the shell, for example, #!/bin/csh.