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

Related Posts

You may be interested in these posts too:

2 Comments | rss | atom | xml | json

  1. avatar VuDu

    Nice! Look mom, I’ve learned some bashing today! xD Useful when we need to unrar all that porn that comes on partXX files :D Next step, nautilus scripting it :P

  2. avatar Pedro Melo

    Rúben,

    a versão mais recente que está nesse post já suporta libnotify.

    inté

new comment New Comment