#! /bin/sh # Usage: ./prowl.sh priority(-2 to 2) app event description # Example: ./prowl.sh 0 "transmission" "torrent has finished" "Coen Brothers Compilation has finised downloading" priority=$1 app=$2 event=$3 description=$4 apikey=fill_in_your_API_key_here if [ $# -ne 4 ]; then echo "Usage: ./prowl.sh priority(-2 to 2) app event description" echo 'Example: ./prowl.sh 0 "transmission" "torrent has finished" "Coen Brothers Compilation has finised downloading"' else curl https://prowl.weks.net/publicapi/add -F apikey=$apikey -F priority=$priority -F application="$app" -F event="$event" -F description="$description" fi