Hitachi

JP1 Version 11 JP1/Advanced Shell Description, User's Guide, Reference, and Operator's Guide 


9.4.2 adshappexec command (GUI application execution command) [only for Windows development environment]

Syntax

adshappexec [-m] [-d work-folder] [-v name-to-be-displayed] {-w executable-application-name | -n executable-application-name} [-- argument-1 argument-2...]

Description

Run the executable application without starting the application execution agent in order to perform debugging in the development environment.

This command outputs the return value of the executable application to the standard output. When using this command in a succeeding job as the return value of the job, the command stores the value in the variable with command substitution.

Arguments

-m

This command suppresses the message output to the standard error output. This command can be used in environments where the standard input/output cannot be used.

This command outputs argument specification errors for the command and license check errors even when the -m option is specified.

-d work-folder ~ <path name>((1 to 247 bytes))

This command specifies the work folder upon execution of the executable application.

When the work folder has not been specified, this command activates the application with the current path for execution of the adshappexec command.

If a work folder contains a space, specify the name including the space by enclosing the name with double quotation marks (") when executing the application from the job definition script.

-v name-to-be-displayed ~ <path name>((1 to 247 bytes))

This command specifies the name that appears when you left-click on the application execution agent icon.

If a space is included in the executable application name, specify the name including the space by enclosing the name with double quotation marks (") when you executing the application from the job definition script.

If the name to be displayed is omitted, the executable application name is output.

In a Windows development environment, this command is only used for message output.

We recommend specifying this argument to distinguish applications when multiple executable applications are operated.

-w executable-application-name ~ <path name>((1 to 247 bytes))

The application execution agent will not finish until the executable application is finished.

Specifies the file name of the executable application for the executable application name.

If a space is included in the executable application name, specify the name including the space by enclosing the name with double quotation marks (") when executing the application from the job definition script.

-n executable-application-name ~ <path name>((1 to 247 bytes))

The application execution agent finishes without waiting for the executable application to finish.

Specifies the file name of the executable application for the executable application name.

If a space is included in the executable application name, specify the name including the space by enclosing the name with double quotation marks (") when executing the application from the job definition script.

-- argument-1 argument-2... ~ <argument>((1 to 1,023 bytes))

Specifies the parameter after -- that is specified when executing the executable application.

Do not specify an argument when specifying an associated executable application.

You can specify any number of arguments as long as the total length of the arguments is within 1,023 bytes.

Return codes

Return code

Meaning

0

Normal termination

Other than 0

Abnormal termination

There are return codes for 2 processes in the adshappexec command. The return code for each process is handled as follows:

[Figure]

The output of the return value at the position where the error has occurred is as follows:

(a) Error when processing the adshappexec command

A value is output as the return value of the command.

In addition, a message is output to the standard error output.

(b) Return value of the executable application

A value is output to the standard output.

In addition, the return value of the executable application is output to the standard error output.

The adshappexec command will not end abnormally even if a return value other than 0 is returned with the return value of the executable application.

To confirm the return value of the executable application, check the messages or the details of the standard output.

Notes