Skip to content
Snippets Groups Projects

Notify

  • Clone with SSH
  • Clone with HTTPS
  • Embed
  • Share
    The snippet can be accessed without any authentication.
    Authored by nimrod

    Shorter versions of the notify script that posts directly to notify.shore.co.il. As a quicker way on servers where I don't have my rcfiles and so I can just download this and hook it up to get notifications when needed.

    Edited
    notify 86 B
    #!/bin/sh
    set -eu
    
    message="$(cat)"
    curl https://notify.shore.co.il/send -d "$message"
    shell function 90 B
    notify () {
        message="$(cat)"
        curl -d "$message" https://notify.shore.co.il/send
    }
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Please register or to comment