COMMAND (for auto logout)

This is an element of AUTO_LOGOUT that provides a mechanism for the Genero Application Server to override an application's auto logout.

Syntax

<COMMAND Timeout=seconds>command-script</COMMAND>
  1. seconds is the number of seconds as the allowed time for a command to run.
  2. command-script is the name of the script or command to be run.

Child elements

There are no child elements.

Usage

A typical use of the COMMAND option might be to check when the auto logout process is allowed. The command could be used, for example, to only allow auto logout between the hours of 21.00 pm and 08.00 am. This means that there would be no auto logout during work hours.

Usage example

<COMMAND Timeout="20">auto-logout-allowed.sh</COMMAND> 
The command determines whether the auto logout takes place based on the value of an exit code it returns, or whether it times out. This is determined by the following outcome:
  1. If the command's exit code is zero, the auto logout is ignored and the application keeps running.
  2. If the command's exit code is not zero, the auto logout is performed.
    Note: If the command times out, the auto logout process is also performed the same as if the exit code was not zero.

Parent elements

This element is a child of the following: