All pastes #794890 Raw Edit

Anonymous

public text v1 · immutable
#794890 ·published 2007-11-23 14:35 UTC
rendered paste body
----=====****** A summary of HaRET commands: ******=====----

Notations used below:

  [A|B] denotes either A or B

  <ABC> denotes a mandatory argument

  Any command name can be shortened to minimal unambiguous length,

  e.g. you can use 'p' for 'print' but not 'vd' for 'vdump'

SET <variable> <value>

  Assign a value to a variable. Use HELP VARS for a list of variables.

NEWVAR <varname> <template var> [<desc>]

  Create a new variable of the same type as <template var>.  If

  <desc> is specified the variable will show this description in

  HELP VARS output.

SHOWVAR <variable>

  Display the contents of a variable.

CLEARVAR <variable>

  Reset the contents of a variable.

ADDLIST <variable> <value>

  Add an item to a list variable.

JOINLIST <dest list> <source list1> [<source list2> ...]

  Append one or more lists to another list.  If <dest list> doesn't

  exist it is created.

DUMP <hardware>[(args...)]

  Dump the state of given hardware.

  Use HELP DUMP to see available dumpers.

REDIR <filename> <command>

  Run <command> and send it's output to <file>

BG <filename> <command>

  Run <command> in a background thread - store output in <file>

HELP [VARS|DUMP]

  Display a description of either commands, variables or dumpers.

RUNSCRIPT <filename> [<ignoreNotFound>]

  Run the commands located in the specified file.

  Set <ignoreNotFound> to 1 to suppress a file not found error.

IF <expr> <command>

  Run <command> iff <expr> is non-zero.

EVALF <fmt> [<args>...]

  Build a string based on <fmt> and <args> using sprintf and

  then evaluate the string as a command

EXIT

  Terminate HaRET process

LOADFUNC <dll name> <func name>

  Return the address of the specified function in the given dll

MESSAGE <strformat> [<numarg1> [<numarg2> ... [<numarg4>]]]

  Display a message (if run from a script, displays a message box).

  <strformat> is a standard C format string (like in printf).

PRINT <strformat> [<numarg1> [<numarg2> ... [<numarg4>]]]

  Same as MESSAGE except that it outputs the text without decorations

  directly to the network pipe.

MSGBOX <title> <msg> <flags>

  Display a message box. Button and icon appearance specified by flags.

  Store result code to var RESULT.

LOG <filename>

  Log all output to specified file.

UNLOG

  Stop logging output to file.

BOOTLINUX

  Start booting linux kernel. See HELP VARS for variables affecting boot.

RESUMEINTOBOOT

  Overwrite the wince resume vector so that the kernel boots

  after suspending/resuming the pda

RAMBOOTLINUX

  Start booting linux kernel. See HELP VARS for variables affecting boot.

SLEEP <milliseconds>

  Sleep for given amount of milliseconds.

LOADLIBRARYEX <file name>

  Call LoadLibraryEx on the specified file and print the handle.

NLEDSET <id> <value>

  Call NLedSetDevice to alter an LED setting.

  <id> is the LED id.

  <value> may be 0 for off, 1 for on, or 2 for blink.

POWERMON [<seconds>]

  Watch power status

PLAYSOUND [<seconds>]

  Plays chord.wav

SETLCD <state>

  Set the LCD power state (1=on, 2=standby, 3=suspend, 4=off)

IBIT <watch list> <bit#> [<bit#>...]

  Ignore the nth bit in the watch list

WBIT <watch list> <bit#> [<bit#>...]

  Opposite of IBIT - remove bit from mask

WATCH <watch list> [<seconds>]

  Poll areas of memory and report changes.  (See var GPIOS)

WIRQ <seconds>

  Watch which IRQ occurs for some period of time and report them.

LISTEN [<port>]

  Open a socket and wait for a connection on <port> (default 9999)

KILL <process name>

  Terminate the process with the specified name.

PS

  List wince process information.

LSMOD [<pid>]

  List wince modules.

ADDR2MOD <virtual address>

  Lookup which process (and module) owns a given virtual address.

[V|P]DUMP <addr> <size>

  Dump an area of memory in hexadecimal/char format from

  given [V]irtual or [P]hysical address.

[V|P]F[B|H|W] <addr> <count> <value>

  Fill memory at given [V]irtual or [P]hysical address with a value.

  The [B]yte/[H]alfword/[W]ord suffixes selects the size of

  <value> and in which units the <count> is measured.

[V|P]WF <filename> <addr> <size>

  Write a portion of [V]irtual or [P]hysical memory to given file.

ALLOCTEST <count>

  Allocate <count> number of pages and print the pages'

  virtual and physical addresses.

QUIT

  Quit the remote session.