User Tools

Site Tools


uphp:functions:exec

Differences

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

Link to this comparison view

Next revision
Previous revision
uphp:functions:exec [2017/02/21 09:59]
jeff created
uphp:functions:exec [2021/09/13 05:57] (current)
Line 1: Line 1:
 ======exec====== ======exec======
 +
 <badge>WMPRO, WMMINI FW >= 1.0</badge> <badge>WMMEGA FW >= 2.0</badge> <badge>WMPRO, WMMINI FW >= 1.0</badge> <badge>WMMEGA FW >= 2.0</badge>
  
Line 5: Line 6:
  
 ====Description==== ====Description====
-<well size="sm"><html><span style="font-size:125%;"></html>[[exec]] + 
-<html>+<well size="sm"><html> 
-<span style="color:green;">string +<span style="font-size:125%">exec ( 
-<span style="color:blue;">$script_name +<span style="color:green">string 
-<span style="color:black;">[, +<span style="color:blue">$script 
-<span style="color:green;">int +<span style="color:black">[, 
-<span style="color:blue;">$delay_ms +<span style="color:green">int 
-<span style="color:black;">] )+<span style="color:blue">$delay 
 +<span style="color:black">] )
 </html></well> </html></well>
  
 ====Parameters==== ====Parameters====
-<html><span style="color:blue;"><b>script_name</b><span style="color:black;"></html>:  Path and filename of script to execute 
  
-<html><span style="color:blue;"><b>delay_ms</b><span style="color:black;"></html>:  Optional delay in milliseconds before script is executed+<html><b><span style="color:blue">$script<span style="color:black"></b></html>:  Path and filename of script to execute 
 + 
 +<html><b><span style="color:blue">$delay<span style="color:black"></b></html>:  Optional delay in milliseconds before script is started 
 + 
 +====Return Values====
  
-====Return Value==== 
 None None
  
 ====Example==== ====Example====
-<code php><?  
-exec("/scripts/ip.cgi",1000); //run the script in 1 second from now 
-?></code> 
  
-====See Also==== +<code php> 
-[[uphp:statements:function]] - Define a function+<? 
 +  exec("/scripts/ip.cgi",1000); // run the external script in 1 second from now 
 +  // ... 
 +  // (if there are any further commands here they will be executed immediately without delay) 
 +  // ... 
 +?> 
 +</code> 
 + 
 +====Also See==== 
 + 
 +[[software:os:config:uphp.ini#max_concurrent_scripts]] - Operating System configuration, uphp.ini: Limit the number of scripts that can run at the same time
  
-[[uphp:statements:return]] - Return program control to the calling module+[[include()]] - Include a file within the current script at the current location
  
-====Additional Information==== +[[process_list()]] - Return an <html><b><span style="color:green">array<span style="color:black"></b></html> of the currently running scripts
-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 [[uphp:statements:return]] statement immediately ends execution of the function, and returns its argument as the value of the function call. 
uphp/functions/exec.1487671185.txt.gz · Last modified: 2021/09/13 05:56 (external edit)