1
0

debug-commands.xml 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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. <!--=======================================================-->
  7. <COMMAND name="tcl"
  8. access="debug"
  9. help="Run a raw TCL command line"
  10. escape_chars=""
  11. args="command"
  12. args_help="Command and arguments of TCL script">
  13. <DETAIL>
  14. This enables low level TCL script to be written on the command line.
  15. The remains of the line (following the 'tcl' command) is interpreted
  16. as a raw TCL script.
  17. For example the following command displays the numbers 1-10
  18. > tcl for {set i 0} {$i &lt; 10} {incr i} {puts "number: $i"}
  19. number: 1
  20. number: 2
  21. number: 3
  22. number: 4
  23. number: 5
  24. number: 6
  25. number: 7
  26. number: 8
  27. number: 9
  28. number: 10
  29. >
  30. NB. Be aware that variable expansion of the form ${foobar} is valid
  31. both in the &lt;ACTION&gt; tag and in TCL. The quoting of such
  32. variables will always be interpreted as clish variables, and will
  33. not appear in the TCL script.
  34. </DETAIL>
  35. <ACTION>${command}</ACTION>
  36. </COMMAND>
  37. <!--=======================================================-->
  38. </CLISH_MODULE>