# executeScript()

Instructs the server to run the previously specified script.

### Syntax

o_executeScript()
  no inputs
  return: Text - "OK" means that the server has received this directive. Any other result is an error.

### Usage

After data and a script have been uploaded, o_executeScript() instructs the script server to execute the sript.

### Location

menu: veeos ==> Scripting ==> Advanced ==> Execute Script

library: scriptLib

### Example

### Notes

This object needs to be run every time a script is to be executed. Since the script and data are persistent (see sendData and sendScript) it is completely possible to execute a script multiple times without sending more data.

Since the actual script execution may take a long time, this object should be considered to launch the script in the background. That is, the script is started but this object terminates immediately and does NOT wait for the script execution to complete. In a typical case one would use a polling loop with checkStatus to determine if the script execution is complete.

### Reference

### Dependencies

### Supported On

VEE 7.0+, Windows 7+

### See Also

checkStatus, disconnectServer, executeScript, getResult, sendData, sendScript, setShutdownTimeout

© 2015-2021. All Rights Reserved. Stan Bischof (stan@worldbadminton.com). Last updated 09 August 2021 18:25.