There’s no place like ::1

Notification of Large Background Jobs

| Comments

Following this post where Pedro talks about how he receives notifications about background jobs I decided to clone his script to a Linux version using libnotify daemon.

#!/bin/bash

"$@" 
status=$?
notify-send  "Background script notification" "Completed $*" 
exit $status

Now if you simple alias n="your_script" you can do pretty things like Melo

n scp user@machine:pr0n /tmp

And get notified when the transfer ends :) Pretty handy! Thank you Melo for this tip!

Comments