GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
WMIILOOP(1) WMIILOOP(1)

wmiiloop-VERSION

eval "$(wmiiloop <events)"

wmiiloop is an awk and sh script which preprocesses sh(1) syntax to simplify writing a wmii event loop.

wmiiloop associates lines begining with Event, Action, or Key (henceforth known as $keyword), followed by arbitrary text (henceforth known as $args), with functions which call any indented lines which follow. In the function names, all non-alphanumeric characters in $args are replaced with underscores (_). The functions are named $keyword'_'$args.

Any variables in the unintented lines are interpolated by the shell.

Additionally, each declaration's $args are assigned to a variable named $keyword's'. In this case, no transliteration occurs. For instance, the following declaration:

Key $MODKEY-j
	echo Got $@
yields (assuming $MODKEY is set to Mod1):

Keys=" $Keys Mod1-j"
Mod1_j() {
	echo Got $@
}

wmii(1), wmii(1). wmiir(1), PREFX/etc/wmiirc
25 May 2007

Search for    or go to Top of page |  Section 1 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.