User Tools

Site Tools


uphp:functions:exec

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
uphp:functions:exec [2017/02/21 10:54]
jeff
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 started+<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 external script in 1 second from now 
-//... 
-//(if there are any further commands here they will be executed immediately without delay) 
-//... 
-?></code> 
  
-====See Also==== +<code php> 
-[[os:config:uphp.ini#max_concurrent_scripts]] - Operating System configuration, uphp.ini: Limit the number of scripts that can run at the same time+<? 
 +  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 
 + 
 +[[include()]] - Include a file within the current script at the current location 
 + 
 +[[process_list()]] - Return an <html><b><span style="color:green">array<span style="color:black"></b></html> of the currently running scripts
  
uphp/functions/exec.1487674447.txt.gz · Last modified: 2021/09/13 05:56 (external edit)