This is an old revision of the document!
WMPRO, WMMINI FW >= 1.0 WMMEGA FW >= 2.0
Run a script with an optional delay
script_name: Path and filename of script to execute
delay_ms: Optional delay in milliseconds before script is executed
None
<? exec("/scripts/ip.cgi",1000); //run the script in 1 second from now ?>
User defined functions can take many different forms, and it is not necessary to use exec() to execute a function unless a direct return value is needed.
If used within a function, the return statement immediately ends execution of the function, and returns its argument as the value of the function call.