Python Script Works Locally But Not Remotely with SSH

Anoop Thomas Mathew atmb4u at gmail.com
Mon Apr 2 16:31:34 EDT 2012


Hi,
You can try using  ssh -X  xxx.xxx.xxx.xxx for GUI ssh connection.

Thanks,
Anoop Thomas Mathew
atm
___
Life is short, Live it hard.




On 28 March 2012 06:21, goldtech <goldtech at worldpost.com> wrote:

> Hi,
>
> I have a WinXP PC running an SSH server and I have a Linux PC with an
> SSH client  and logged into the XP seemingly OK. It's all on my
> personal LAN, the connection seems OK.
>
> I have a py file on the XP that I run via SSH from the Linux, it's:
>
> import webbrowser
> webbrowser.open('www.google.com')
>
> This runs OK started on the local XP PC, the browser Firefox opens and
> goes to the site, or it opens a tab to the site. But executing that
> same file via SSH does not open Firefox...doing it via SSH starts
> Firefox ( I see it begin in the process manager and I see web
> activity) but Firefox does not open it's window.
>
> Why the does the window not open when the script is started remotely?
>
> Thanks.
> --
> http://mail.python.org/mailman/listinfo/python-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20120403/8a60135c/attachment-0001.html>


More information about the Python-list mailing list