int execute(string cmdLine, bool asSystemUser = false, string systemPassword = '')
Executes the specified command line
Security
Trust Level Required: Full Trust
Parameters
Name | Description |
cmdLine |
string The command to execute |
asSystemUser |
(Optional) bool Indicates whether to execute as the system user or not. Defaults to false. |
systemPassword |
(Optional) string The system password, required if asSystemUser is true. Defaults to the empty string. |
Return
The process exit code
Remarks
IMPORTANT: While KioWare can be used to open 3rd party applications, it cannot guarantee any security of your kiosk while these applications are in use.It is also possible to show a taskbar with all open apps via the User Interface section of the Configuration Tool.
Examples
KioUtils.execute("/home/kiosk/myScript.sh arg1 arg2");
Requirements
KioWare OS (Linux®) version 1.0 or greater.
Linux® is the registered trademark of Linus Torvalds in the U.S. and other countries.