Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

opening a window on another computer

by PierreL (Novice)
on May 13, 2008 at 15:09 UTC ( #686292=perlquestion: print w/ replies, xml ) Need Help??
PierreL has asked for the wisdom of the Perl Monks concerning the following question:

I have a program which open a browser on my own computer. $pid=open DATE, "iceweasel -new-window 'http://www.google.fr/' |"; I would like it to open this window on another computer. I found no answer. Thank you for helping.

Comment on opening a window on another computer
Re: opening a window on another computer
by moritz (Cardinal) on May 13, 2008 at 15:22 UTC
    How do you want to connect to that remote computer?
      with a simple lan on Linux.
        Using what protocol? Are you using VNC, networked X, Erlang, ssh, or what? There is no general "connect to machine X and take it over" system call.
Re: opening a window on another computer
by traveler (Parson) on May 13, 2008 at 15:36 UTC
    If you are running X, and
    If you have permission,
    try something like DISPLAY=othercomputer:0 xclock&
    to run xclock on othercomputer
Re: opening a window on another computer
by hawtin (Prior) on May 13, 2008 at 15:42 UTC

    This is not a Perl question (at least I don't think so). Since you are using Linux you will find that X Windows is your friend. Lets assume that you have the machines 192.168.1.100 to run from and 192.168.1.200 to display on, first allow the other machine to open windows on the 192.168.1.200 one by issuing the following command (on 192.168.1.200)

    xhost + 192.168.1.100

    Then launch the browser with:

    iceweasel -display 192.168.1.200:0 -new-window 'http://www.google.fr/'

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://686292]
Approved by marto
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (5)
As of 2014-09-20 02:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (152 votes), past polls