Thanks to visit codestin.com
Credit goes to Github.com

Skip to content

LorenzoLuconi/pushover-shell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

Shell script for Pushover notification

Script for Pushover notification in shell

Usage

pushover [ -t <title> -u <user_key> -a <app_token> -s <sound> ] [message]

Flags:

  • -t title: add a message title
  • -u user_key: ovverride USER_KEY variable. This is mandatory if USER_KEY is empty
  • -a app_token: ovverride APP_TOKEN variable. This is mandatory if APP_TOKEN is empty
  • -s sound: specify the sound to use for your message (default sound: pushover)
  • -d: dryrun

The message is optional: if empty the value of DEFAULT_MESSAGE variable is sent (default: "Shell Message")

Examples

pushover -u <user_key> -a <app_key> this is my message

If USER_KEY and APP_TOKEN variables are not empty you can omit "-u" and "-a" parameters:

pushover this is my message

You can send message with command standard output:

echo "this is the output of my command" | pushover -t "Long command complete"

About

Shell script for pushover notification in shell

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages