Remote Display
I want to pop up a message on a remote machine using "xmessage" kinda like Windows Messenger does
I tried this thru ssh -Y and -X options but the xmessage window is displayed back to me (which I dont want) I am Disallowing TCP connections to the remote X-Server boxes (I am not allowed to change this). So resetting and exporting DISPLAY is not an option Is there another way to do this this is what I have been doing Code:
ssh -l user1@linux1; xmessage -fg black -bg-white -file messagefile -timeout 600& previously when I had X allowing TCP connnections this actually worked Code:
ssh -l user1@linux1; " DISPLAY=linux1:0.0; export DISPLAY; xmessage -fg black -bg-white -file messagefile -timeout 600&" oh yeah.....I'm running this on RHEL4/CentOS boxes |
The zenity utility (supplied with GNOME) lets you pop up message/dialog boxes on desktops - it's specifically there to allow scripts to interact with the GNOME desktop. It has a man page that covers the options etc.
You could use SSH to run zenity commands on the remote systems. HTH |
Thanx!! I will take a look at this.....this may be the solution :)
|
Well it turns out that zenity itself was not the solution. It put me in the same boat....Zenity seemed to be xmessage with more features.....not solving my remote display issue
However I was able to figure out my problem ...this is what I did Code:
ssh -l user1@linux1; export DISPLAY=:0.&& xmessage -fg black -bg-white -file messagefile -timeout 600& Code:
ssh -l user1@linux1; export DISPLAY=:0.&& zenity --info --text="this is a test" This worked flawlessy....for just about any gui application.....popped up on the remote display instead of back to me the way ssh normally forwards X |
All times are GMT -5. The time now is 04:27 AM. |