QgsRunProcess class

A class that executes an external program/script.

It can optionally capture the standard output and error from the process and displays them in a dialog box.

On some platforms (e.g. iOS) , the process execution is skipped https://lists.qt-project.org/pipermail/development/2015-July/022205.html