Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
watchfor /error:/
pipe "./forward_fluent.sh swatch.err"
echo red
watchfor /warning:/
pipe "./forward_fluent.sh swatch.warn"
echo yellow
watchfor /no problem/
# nothing to do
echo
watchfor /.*/
pipe "./forward_fluent.sh swatch.unknown"
echo magenta
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment