Differences

This shows you the differences between two versions of the page.

reference:lp0606 [2009/08/02 16:28]
don created
reference:lp0606 [2010/01/17 22:19] (current)
don
Line 1: Line 1:
-====== 6.06 Event Processing ======+====== 6.06 External Calls ======
-===== ON =====+===== EXEC Command =====
=== Function: === === Function: ===
-Set up conditions for event handling.+Loads a secondary copy of the system shell and executes a program or a shell command.
=== Syntax: === === Syntax: ===
-  ON ERROR [CALL] label +  EXEC cmdstr
-  ON INKEY [CALL] label +
-=== Processing: === +
-When an event occurs that is being trapped control is passed to the label in the relevant ON statement.+
-The called routine uses RESUME or RETURN to continue.+where: 
 +  = cmdstr  
 +  : Shell specific command string  
 + 
 +After the specified shell command or program terminates, control is returned to the line following the EXEC command.  
 + 
 +===== EXEC Function ===== 
 +=== Function: === 
 +  EXEC(command)  
 +EXEC() is the function version of the EXEC command. The difference is that the EXEC function returns an array containing the output of the 'command' where each element is a text line from the called program. 
 + 
 +//**Windows:**// The stdout and stderr are separated! First is stdout output and then stderr.  
 + 
 +===== Page Links ===== 
 +|  <= [[lp0605]]  | |  [[start]]  | |  [[lp0607]] =>  |

reference/lp0606.txt · Last modified: 2010/01/17 22:19 by don