LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Remote Display (https://www.linuxquestions.org/questions/linux-general-1/remote-display-455063/)

doublejoon 06-15-2006 10:41 AM

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

hob 06-15-2006 02:27 PM

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

doublejoon 06-16-2006 06:27 AM

Thanx!! I will take a look at this.....this may be the solution :)

doublejoon 06-19-2006 06:56 AM

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&
or If I wanted to use zenity


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.