Difference between revisions of "Os.execute"

From GiderosMobile
(Created page with "__NOTOC__ '''Available since:''' Gideros 2011.6<br/> === Description === This function is equivalent to the C function system. It passes command to be executed by an operating...")
 
Line 4: Line 4:
 
This function is equivalent to the C function system. It passes command to be executed by an operating system shell. It returns a status code, which is system-dependent. If command is absent, then it returns nonzero if a shell is available and zero otherwise.
 
This function is equivalent to the C function system. It passes command to be executed by an operating system shell. It returns a status code, which is system-dependent. If command is absent, then it returns nonzero if a shell is available and zero otherwise.
 
<source lang="lua">
 
<source lang="lua">
(number), = os.execute(command,)
+
(number) = os.execute(command)
 
</source>
 
</source>
'''command:''' (string) command to execute ''''''<br/>
+
'''command''': (string) command to execute ''''''<br/>
 
'''Returns''' (number) status code<br/>
 
'''Returns''' (number) status code<br/>

Revision as of 11:17, 23 August 2018

Available since: Gideros 2011.6

Description

This function is equivalent to the C function system. It passes command to be executed by an operating system shell. It returns a status code, which is system-dependent. If command is absent, then it returns nonzero if a shell is available and zero otherwise.

(number) = os.execute(command)

'command: (string) command to execute '
Returns (number) status code