Skip to content

Doist/raven-sh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is a wrapper executing a command and sending its stdout/stderr to the Sentry server.

Useful to work with cron jobs. Unless misconfigured, the wrapper itself is quiet. It launches the program, captures its output, and if the program has been ended with non-zero exit code, builds a message and puts it to the remote server.

Warning

Don't try to launch scripts producing a lot of data to stdout / stderr with this wrapper, as it stores everything in memory and thus can easily make your system swap.

Example of cron task:

SENTRY_DSN='http://...../'
*/30 * * * *  raven-sh -- bash -c 'echo hello world; exit 1'

About

raven-sh is wrapper executing a command and sending its stdout/stderr to the Sentry server. Useful for cron jobs

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages