Skip to content

notify-events/bash

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Bash script for Notify.Events

A simple bash script that simplifies the process of integrating your project with the Notify.Events service to send messages to your channels.

Instruction on another languages

Using instructions

To send a message using a bash script, you need to:

  • Add the Bash source to your Notify.Events channel and get your token
  • Place the notify.events.sh script file into environment which have Internet connection
  • Run the script passing the necessary parameters

Usage example:

./notify.events.sh \
    --token=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX \
    --text="Hello <b>world</b>" \
    --priority=high \
    --image=/var/log/hourly.jpg \
    --image=/var/log/weekly.jpg \
    --file=/var/log/summary.log

List of available parameters

Parameter Required Description
--token true param to specify your Notify.Events token
--text true param to specify message text (allowed html tags: <b>, <i>, <a>, <br>)
--title false message title
--priority false message priority (available values: highest, high, normal, low, lowest. Default: normal)
--level false message level (available values: verbose, info, notice, warning, error, success. Default: info)
--file false attach local file
--image false attach local image

You can use the --file and --image parameters several times in one call to attach multiple files to your message.

Use the --help parameter to display script usage instructions.

About

Bash script to integrate your project with Notify.Events service.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages