Notification of large background jobs
Fri 17, 2007 22:57 |
Permalink |
Comments (2) |
Trackbacks (0)
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!
2 Comments | rss | atom | xml | json
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
Rúben,
a versão mais recente que está nesse post já suporta libnotify.
inté
You can use Textile 2 markup here. The XHTML tags accepted are: a, abbr, acronym, b, blockquote, code, em, i, strike and strong.