|
View:
New views
2 Messages
—
Rating Filter:
Alert me
|
|
|
Re: Is there a way to display a message on the clients?Hi Tim / Jazz,
I do this successfully by using a script which I execute with: sudo /opt/drbl/bin/drbl-doit -h "$ipaddr" sudo -u $account /usr/bin/msg where $ipaddr is the IP address of the PC and $account is the username of the user on the PC to whom the message is being sent. The script (/usr/bin/msg) is as follows: #!/bin/bash export DISPLAY=:0 zenity --warning --text="Your message goes here!" In my case this runs from a web-based application (user www-data on Debian / Ubuntu), so I had to modify the sudoers file to avoid the password prompt on execution (reduction in security!). I was not able to get this working without putting everything into a script as above. Hope that helps...
------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Drbl-user mailing list Drbl-user@... https://lists.sourceforge.net/lists/listinfo/drbl-user |
|
|
Re: Is there a way to display a message on the clients?Thanks for the info. I'm going to play with this to see if I can figure out a way of sending out a visual message to all clients on our DRBL network, telling any open clients to say logout as the server will be rebooting in 10 minutes etc... If I understand how you are doing it, each user needs to be part of sudo so that you can run 'sudo -u $account /usr/bin/msg' on the client? I'm guessing that the msg script will not run correctly without running it as sudo? Regards, Tim From: gdi2k@... Date: Thu, 17 Sep 2009 08:05:56 +0800 To: drbl-user@... Subject: Re: [Drbl-user] Is there a way to display a message on the clients? Hi Tim / Jazz, I do this successfully by using a script which I execute with: sudo /opt/drbl/bin/drbl-doit -h "$ipaddr" sudo -u $account /usr/bin/msg where $ipaddr is the IP address of the PC and $account is the username of the user on the PC to whom the message is being sent. The script (/usr/bin/msg) is as follows: #!/bin/bash export DISPLAY=:0 zenity --warning --text="Your message goes here!" In my case this runs from a web-based application (user www-data on Debian / Ubuntu), so I had to modify the sudoers file to avoid the password prompt on execution (reduction in security!). I was not able to get this working without putting everything into a script as above. Hope that helps...
View your other email accounts from your Hotmail inbox. Add them now. ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Drbl-user mailing list Drbl-user@... https://lists.sourceforge.net/lists/listinfo/drbl-user |
| Free embeddable forum powered by Nabble | Forum Help |