#!/bin/env bash PIPE="/tmp/email_refresh_pipe" # Create pipe if doesn't exist [ -p "$PIPE" ] || mkfifo "$PIPE" echo "new" > "$PIPE" notify-send "New mail in $1 inbox!"