Skip to content

Instantly share code, notes, and snippets.

@eiro
Created November 1, 2010 14:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eiro/658244 to your computer and use it in GitHub Desktop.
Save eiro/658244 to your computer and use it in GitHub Desktop.
example of Ouesh usage
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