Difference between revisions of "Shell"

From Embedded Xinu
Jump to navigation Jump to search
Line 2: Line 2:
  
 
== Commands ==
 
== Commands ==
The XINU shell is equipped with ten commands:
+
The XINU shell is equipped with some basic commands:
*'''exit''': quits the XINU shell
+
* '''exit''': quits the XINU shell
*'''gpiostat''': displays the current status of the [[GPIO]] pins
+
* '''gpiostat''': displays the current status of the [[GPIO]] pins
*'''help''': displays a list of commands in the XINU shell
+
* '''help''': displays a list of commands in the XINU shell
*'''kill PID''': kills a process number PID
+
* '''kill PID''': kills a process number PID
*'''memstat''': displays the current memory usage and prints the free list
+
* '''memstat''': displays the current memory usage and prints the free list
*'''led DESCRIPTOR STATUS''': turns an led on or off
+
* '''memdump''': dumps a region of memory
*'''ps''': displays a table of running processes
+
* '''led DESCRIPTOR STATUS''': turns an led on or off
*'''reset''': soft powercycles the backend
+
* '''ps''': displays a table of running processes
*'''sleep DELAY''': sleep for DELAY seconds
+
* '''reset''': soft powercycles the backend
*'''uartstat UARTNUM''': displays statistics for [[UART | uart]] UARTNUM
+
* '''sleep DELAY''': sleep for DELAY seconds
 +
* '''uartstat UARTNUM''': displays statistics for [[UART | uart]] UARTNUM
 +
* '''test''': can be used for building test programs, all builds should simply return OK
 +
* '''testsuite''': run a series of tests to see if the system is functioning properly

Revision as of 23:01, 18 July 2007

The XINU shell is designed as an interface for interacting with the operating system. The majority of the commands provide information about the current state of the system including its processes, memory, and hardware.

Commands

The XINU shell is equipped with some basic commands:

  • exit: quits the XINU shell
  • gpiostat: displays the current status of the GPIO pins
  • help: displays a list of commands in the XINU shell
  • kill PID: kills a process number PID
  • memstat: displays the current memory usage and prints the free list
  • memdump: dumps a region of memory
  • led DESCRIPTOR STATUS: turns an led on or off
  • ps: displays a table of running processes
  • reset: soft powercycles the backend
  • sleep DELAY: sleep for DELAY seconds
  • uartstat UARTNUM: displays statistics for uart UARTNUM
  • test: can be used for building test programs, all builds should simply return OK
  • testsuite: run a series of tests to see if the system is functioning properly