LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   to send poptu ...urgent..help (https://www.linuxquestions.org/questions/linux-newbie-8/to-send-poptu-urgent-help-508439/)

venki 12-08-2006 12:25 AM

to send poptu ...urgent..help
 
Hi all....

i am working in a company where 5 systems are connected to lan..

say 192.162.1.1 to 192.162.1.5..

i am sitting in 192.162.1.3..which is server

i want to send popup to all systems(192.162.1.1 to 192.162.1.5) that the server will go

down for 10min..

i tried wall..but it is for single system...

rwall also tried but no result....

talk they also shld have talk clinet...

please provide me shell script or..any command..

plz help me...

thks a lot!!

matthewg42 12-08-2006 12:30 AM

There's a discussion of your options for that here:

http://www.linuxquestions.org/questi...d.php?t=508046

venki 12-08-2006 01:07 AM

Sir ..it is useful but..i want to send messages to all machines at once...i think this is not possible with xmessage..

where as i tried with kdialog ..it is also for a single machine..

i gave kdialog --display ipaddress...

plz help me...

matthewg42 12-08-2006 01:23 AM

The way to do it is just to write a script:
Code:

#!/bin/bash

ssh user1@host1 env DISPLAY=:0 xmessage "shutting down soon" &
ssh user2@host2 env DISPLAY=:0 xmessage "shutting down soon" &
ssh user3@host3 env DISPLAY=:0 xmessage "shutting down soon" &
ssh user4@host4 env DISPLAY=:0 xmessage "shutting down soon" &

This is a pretty awful way to network notification though.

Not sure about a better way.

matthewg42 12-08-2006 01:31 AM

I just found this: If you're running samba on your machines, you could use LinPopup.

venki 12-08-2006 01:36 AM

very very thks...its working!! but i have to know who is the user..whn i am sending to root@host..it is not sending popup..

thks once again....


All times are GMT -5. The time now is 11:23 AM.