# setShutdownTimeout()

Sets the idle timeout after which the script server shuts down. Must be run before uploading data or scripts.

### Syntax

o_setShutdownTimeout()
  A: Int32 - the timeout in seconds
  return: Text - "OK" means that the server has received this directive. Any other result is an error.

### Usage

By default the script server shuts itself down after a period of inactivity. This is done to minimize the impact on the user's system. The downside is that the next script invocation has the overhead of restarting the server. By setting this timeout the user can avoid this downside.

### Location

menu: veeos ==> Scripting ==> Advanced ==> Set Shutdown Timeout

library: scriptLib

### Example

`o_setShutdownTimeout(300)` sets the timeout to 5 minutes.

### Notes

This object never actually needs to be run, but may be useful.

Since setting the timeout requires a new session on the server, any existing data or scripts or results are lost when this object executes. As such it should be run BEFORE uploading scripts or data.

### 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:32.