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!

About

photo of Ruben Fonseca

My name is Ruben Fonseca. I'm a Computer Science and Systems Engineer from Portugal that loves FLOSS.

I'm currently an Open Source Consultant at Lisbon, Portugal. This blog is about my daily geek life.

You can contact me anytime at or via LinkedIn:

View Ruben Fonseca's profile on LinkedIn

Feeds

Music