Difference between revisions of "Os.execute"

From GiderosMobile
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
'''Available since:''' Gideros 2011.6<br/>
+
'''<translate>Available since</translate>:''' Gideros 2011.6<br/>
=== Description ===
+
=== <translate>Description</translate> ===
 
<translate>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.</translate>
 
<translate>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.</translate>
 
<source lang="lua">
 
<source lang="lua">
 
(number) = os.execute(command)
 
(number) = os.execute(command)
 
</source>
 
</source>
=== Parameters ===
+
=== <translate>Parameters</translate> ===
 
'''command''': (string) <translate>command to execute</translate> <br/>
 
'''command''': (string) <translate>command to execute</translate> <br/>
=== Return values ===
+
=== <translate>Return values</translate> ===
'''Returns''' (number) <translate>status code</translate><br/>
+
'''<translate>Returns</translate>''' (number) <translate>status code</translate><br/>

Revision as of 07:27, 24 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)

Parameters

command: (string) command to execute

Return values

Returns (number) status code