This chapter introduces the Process class and the EXEC and SHELL instructions. These instructions are natively part of the Gambas vocabulary; however, they are not objects and have a syntax different from functions.
The Process class describes process management in Gambas in a narrower sense and is used to manage internal processes started by EXEC or SHELL.
Figure 21.0.1: Programme 'ping' - displaying the outputs
First, the most important properties and methods of the Process class are described and the close relationship between the Process and Stream classes is introduced. Then the syntax of the instructions EXEC and SHELL is introduced and explained. Subsequently, the use of the instructions EXEC and SHELL is described, whereby the similarities are discussed and the differences are highlighted.
Finally, several projects are presented in which the theoretical approaches presented for the SHELL and EXEC instructions are implemented:
Primarily, the use of the EXEC and SHELL instructions is for the development and testing of graphical user interfaces (GUI) for the external command-line controlled and interactive programs. But they are also very suitable for executing individual commands in the background.