Original Author Paul Laughton, 2011
Page 198
De Re BASIC!
The App commands are not related to System or SU, but they are typically used to replace commands of
the form System.write "am start <parameter-list>" or System.write "am broadcast <parameter-list>".
System Commands
System.open
Opens a shell to execute system commands. The working directory is set to "rfo-basic". If the working
directory does not exist, it is created. If you open a command shell with either Su.open or System.open,
you can't open another one of either type without first closing the open one.
System.write <sexp>
Executes a System command.
System.read.ready <nvar>
Tests for responses from a System.write command. If the result is non-zero, then response lines are
available.
Not all System commands return a response. If there is no response returned after a few seconds then it
should be assumed that there will be no response.
System.read.line <svar>
Places the next available response line into the string variable.
System.close
Exits the System Shell mode.
Superuser Commands
Su.open
Requests Superuser permission. If granted, opens a shell to execute system commands. The working
directory is set to /. If you open a command shell with either Su.open or System.open, you can't open
another one of either type without first closing the open one.
Su.write <sexp>
Executes a Superuser command.
Su.read.ready <nvar>
Tests for responses from a Su.write command. If the result is non-zero, then response lines are
available.
Not all Superuser commands return a response. If there is no response returned after a few seconds
then it should be assumed that there will be no response.
Su.read.line <svar>
Places the next available response line into the string variable.