Ho risolto:
' Gambas class file
PUBLIC SUB _new()
END
PUBLIC SUB Form_Open()
DIM sShellOutput AS String
SHELL "uname -a" TO sShellOutput
TextArea1.Text = sShellOutput
END
PUBLIC SUB TextArea1_KeyPress()
END
Inserito, allego un ulteriore revisione del codice, dove alla pressione di un bottone in una textarea appare il risultato del comando dato da SHELL
' Gambas class file
PUBLIC SUB _new()
END
PUBLIC SUB Form_Open()
END
PUBLIC SUB Button1_Click()
DIM sShellOutput AS String
SHELL "uname -a" TO sShellOutput
TextArea1.Text = sShellOutput
END
PUBLIC SUB TextArea1_KeyPress()
END