Difference between revisions of "Os.execute"
From GiderosMobile
Line 2: | Line 2: | ||
'''Available since:''' Gideros 2011.6<br/> | '''Available since:''' Gideros 2011.6<br/> | ||
=== Description === | === 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. | + | <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 === | === Parameters === | ||
− | '''command''': (string) command to execute <br/> | + | '''command''': (string) <translate>command to execute</translate> <br/> |
=== Return values === | === Return values === | ||
− | '''Returns''' (number) status code<br/> | + | '''Returns''' (number) <translate>status code</translate><br/> |
Revision as of 13:33, 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)
Parameters
command: (string) command to execute
Return values
Returns (number) status code