File: commands-en.txt

package info (click to toggle)
ekg2 1%3A0.4~pre%2B20120506.1-16
  • links: PTS
  • area: main
  • in suites: buster
  • size: 6,860 kB
  • sloc: ansic: 78,587; xml: 3,439; perl: 1,908; pascal: 841; makefile: 658; python: 532; sh: 239; ruby: 76; php: 72; sql: 44; sed: 9
file content (35 lines) | stat: -rw-r--r-- 1,067 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
eval
	parameters: [code]
	short description: run an arbitrary ptyhon code
	
	Execute an arbitrary Python code. Code has an access to ekg module.
	For example, try:
	
	  /python:eval ekg.echo("2 + 2 = %%s" %% (2 + 2))

list
	parameters:
	short description: list loaded Python scripts

load
	parameters: [script]
	short description: load a Python script into ekg2 and run it
	
	Load a Python script into ekg2 and run it. `script` is a filename in
	.ekg2/scripts or .ekg2/<profile>/scripts directory.

run
	parameters: [script]
	short description: run a Python script once
	
	Run an arbitrary Python script once. Note that you can not register any
	handlers in such script. It is removed from ekg2 as soon as it finishes.
	Se also /python:load. `script` is a file name with path relative to CWD.

unload
	parameters: [script]
	short description: remove a Python script from ekg2
	
	Unload a script. I.e. remove all handlers and bindings registeres by the
	given script and remove it from memory. `script` is a script name, i.e.
	script file name without a '.py' suffix.