Gtk2::Notify seems to lack good documentation, but you can view some examples at http://cpansearch.perl.org/src/FLORA/Gtk2-Notify-0.05/examples/ , including the base one:
#!/usr/bin/perl use strict; use warnings; use Gtk2::Notify -init, 'Basic'; my $n = Gtk2::Notify->new('Summary', 'This is some sample content'); $n->show;
It actually seems pretty cool, I can use it for something soon! Thanks for getting my attention.
Otherwise:
On Linux, you can use zenity to send a pop-up message, and to send to another user screen you have to play with some environment variables, but this can be done. From Perl, I would set the corresponding %ENV values ββand then just execute system or callbacks (``) on zenity .
Perhaps start here http://www.cyberciti.biz/tips/spice-up-your-unix-linux-shell-scripts.html
Also, inside this link, libnotify-bin / notify-send will libnotify-bin work, depending on the message being sent.
perl -E '$ENV{DISPLAY} = ":0.0";`notify-send "Hello World"`;'
source share