summaryrefslogtreecommitdiff
path: root/op-mode-definitions/clear-session.xml.in
blob: bfafe63128fc7ec97504dde129a4f6c54a158e93 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<?xml version="1.0"?>
<interfaceDefinition>
  <node name="clear">
    <children>
      <tagNode name="session">
        <properties>
          <help>Terminate TTY or PTS user session</help>
          <completionHelp>
            <script>who | awk '{print $2}'</script>
          </completionHelp>
        </properties>
        <command>sudo pkill -9 -t $3</command>
      </tagNode>
    </children>
  </node>
</interfaceDefinition>