Skip to content

Notifying with stdout

lukes edited this page May 4, 2011 · 1 revision

Use action :stdout to have Herald send what it finds to Ruby's $stdout (which is generally the same a print)

Herald.watch_twitter do
  _for "keywords"
  action :stdout
end

Sending the output to a file

To save results to a file, include the parameter :file => "log.txt"

Herald.watch_twitter do
  _for "newsworthy", "topic"
  action :stdout, :file => "log.txt"
end

See also