-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
,--[ On Tue, Jul 08, 2008 at 11:46:17AM +0530, Navjot Kukreja wrote:
| Hi
| I'm logged into a machine from SSH and want to send a message to the user
| who is using it locally on GUI on display :0. i tried xmessage but i couldnt
| make it send messages to another display. Does anyone know a way?
If you want to send the message to the user ABCD running GNOME (or
probably {Xfc,KD}E also), while you also logged in as user ABCD via SSH, then
you
can leverage functionality provided by notification-daemon[1].
1. Figure out DBUS_SESSION_BUS_ADDRESS variable of ABCD running in GNOME, and
export
it to your environment.
[EMAIL PROTECTED] export `cat /proc/\`pgrep nautilus\`/environ |tr "\0" "\n"
|fgrep DBUS_SESSION`
2. Now use notify-send tool (from libnotify-tools or libnotify package in your
distro) to
send a notification.
[EMAIL PROTECTED] notify-send -u critical 'Message' "This system will be
turned-off in 1 minute"
References:
[1] - http://galago-project.org/
HTH
- --
·-- ·- ···· ·--- ·- ···- ·- ·--·-· --· -- ·- ·· ·-·· ·-·-·- -·-· --- --
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (FreeBSD)
iEYEARECAAYFAkhzb4cACgkQHy+EEHYuXnQlQQCgoZTgyWDlYsM+8kkwgQ18h2mr
YEYAoKUBrZovIZY2lAjaS3rKQ+jO+ChS
=ag3c
-----END PGP SIGNATURE-----
_______________________________________________
ilugd mailinglist -- [email protected]
http://frodo.hserus.net/mailman/listinfo/ilugd
Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi
http://www.mail-archive.com/[email protected]/