Skip to content

Instantly share code, notes, and snippets.

@aronbudinszky
Last active October 9, 2019 21:50
Show Gist options
  • Save aronbudinszky/2dde967a95e3944d4203151036d5f7fd to your computer and use it in GitHub Desktop.
Save aronbudinszky/2dde967a95e3944d4203151036d5f7fd to your computer and use it in GitHub Desktop.
Examples for running a campfire stream.
# Stream all lines from a log file
./tail-campfire.sh "/var/log/apache/example-site-error.log" "https://3.basecamp.com/.../lines"
# Stream lines that contain 'fatal error'
./tail-campfire.sh "/var/log/apache/example-site-error.log" "https://3.basecamp.com/.../lines" "fatal error"
# Run the script on a background thread
./tail-campfire.sh "/var/log/apache/example-site-error.log" "https://3.basecamp.com/.../lines" &
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment