Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

klish / xml-examples / clish / debug-view.xml @ b81ff592

History | View | Annotate | Download (1003 Bytes)

1
<?xml version="1.0" encoding="UTF-8"?>
2
<CLISH_MODULE xmlns="http://clish.sourceforge.net/XMLSchema" 
3
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
4
 xsi:schemaLocation="http://clish.sourceforge.net/XMLSchema
5
                     http://clish.sourceforge.net/XMLSchema/clish.xsd">
6
    <VIEW name="debug-view" prompt="debug&gt; ">
7
        <COMMAND name="sh"
8
                 help="launch a full shell">
9
            <ACTION>bash</ACTION>
10
        </COMMAND>
11

    
12
        <COMMAND name="ps"
13
                 help="give details of current processes">
14
            <ACTION>ps -f</ACTION>
15
        </COMMAND>
16

    
17
        <COMMAND name="ls"
18
                 help="List the files in the current directory">
19
                <ACTION>echo ${PWD};ls -F -l -a</ACTION>
20
        </COMMAND>
21

    
22
        <COMMAND name="exit"
23
                 help="Go back to main menu"
24
                 view="root-view">
25
            <ACTION>echo "Leaving diagnostic mode..."</ACTION>
26
        </COMMAND>
27
    </VIEW>
28

    
29
</CLISH_MODULE>