int executePath(string cmd, string args, bool asSys = false, string sysPw = '')

Executes the specified path with args

Security

Trust Level Required: Full Trust

Parameters

Name Description
path string
The full path of the command to run
args string
The command line arguments to pass to the application
asSystemUser (Optional) bool
Optional value that 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.executePath("/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.