Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use exported PATH var instead of hardcoding path to annotator #37

Merged
merged 1 commit into from
Feb 21, 2018

Conversation

ericfreese
Copy link
Owner

This is more robust and allows you to debug external annotators easily using tee.

For example:

mode foo
  annotate external foo -- tee -a input.log | regex 'foo+' | tee -a annotations.log
  ...
end

and then running separately:

tail -f input.log

and:

tail -f annotations.log | hexdump -C

to see what the annotator is receiving on STDIN and what annotations it is sending on STDOUT.

This is more robust and allows you to debug external annotators easily
using `tee`.

For example:

```
mode foo
  annotate external foo -- tee -a input.log | regex 'foo+' | tee -a annotations.log
  ...
end
```

and then running separately:

`tail -f input.log`

and:

`tail -f annotations.log | hexdump -C`

to see what the annotator is receiving on STDIN and what annotations it
is sending on STDOUT.
@ericfreese ericfreese merged commit c9797b5 into master Feb 21, 2018
@ericfreese ericfreese deleted the features/use_path_for_external_annotators branch February 21, 2018 18:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant