Difference between revisions of "ON TERMINATION"

From Recital Documentation Wiki
Jump to: navigation, search
 
(One intermediate revision by one user not shown)
Line 8: Line 8:
  
 
==See Also==
 
==See Also==
[[ON TIMEOUT]], [[ON()]]
+
[[ON FINISH]], [[ON TIMEOUT]], [[ON()]]
  
  
Line 24: Line 24:
  
 
==Products==
 
==Products==
Recital Database Server, Recital Mirage Server, Recital Terminal Developer
+
Recital Server, Recital  
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:Commands]]
 
[[Category:Commands]]

Latest revision as of 09:10, 10 April 2012

Purpose

Execute a command when Recital receives a hang-up or kill signal


Syntax

ON TERMINATION [<command>]


See Also

ON FINISH, ON TIMEOUT, ON()


Description

When the Recital/4GL receives a hang-up or kill signal, the program cleans up its environment and terminates. The ON TERMINATION command is used to specify commands which will execute when Recital receives the signal. The ON TERMINATION command without any <command> clears the previous ON TERMINATION.

The specified command, <command>, may be any Recital/4GL command.


Example

on termination do exitfile


Products

Recital Server, Recital