Created
November 1, 2010 14:26
-
-
Save eiro/658244 to your computer and use it in GitHub Desktop.
example of Ouesh usage
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use Ouesh; | |
# predefined classic commands (as plugin ?) | |
authorize_rsync_server; | |
# run command if returns true | |
binary cat => sub { | |
not ( '/etc/shadow' ~~ $BINARGS) | |
}; | |
command echo => sub { | |
print while <> | |
}; | |
command loadavg => sub { | |
open LOADAVG,'/proc/loadavg' or return; | |
print <LOADAVG>; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment