Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #22540

Re: Python Script Works Locally But Not Remotely with SSH

Path csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <python-python-list@m.gmane.org>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.003
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'linux,': 0.05; 'subject:Python': 0.05; 'ok.': 0.07; 'tab': 0.09; 'received:173.11': 0.16; 'received:80.91': 0.16; 'received:80.91.229': 0.16; 'received:gmane.org': 0.16; 'received:list': 0.16; 'ssh': 0.16; 'subject:Not': 0.16; 'shell': 0.18; 'runs': 0.18; 'sort': 0.18; 'import': 0.20; 'header:In- Reply-To:1': 0.22; 'window': 0.23; 'device': 0.24; 'linux': 0.24; 'run': 0.25; "doesn't": 0.25; 'guess': 0.26; 'header:User- Agent:1': 0.26; 'executing': 0.27; 'seems': 0.27; 'script': 0.27; 'seemingly': 0.28; 'starts': 0.28; 'hi,': 0.29; 'header:X -Complaints-To:1': 0.29; 'connection': 0.31; 'client': 0.32; 'expect': 0.32; 'goes': 0.32; 'file': 0.33; 'running': 0.33; 'server': 0.33; 'to:addr:python-list': 0.35; 'open': 0.35; 'subject:with': 0.35; 'does': 0.36; 'received:org': 0.36; 'but': 0.37; 'why': 0.37; 'subject:: ': 0.37; 'some': 0.39; 'to:addr:python.org': 0.39; 'header:Received:5': 0.40; 'received:net': 0.60; 'received:173': 0.62; 'skip:w 30': 0.66; 'pc,': 0.91
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From Emile van Sebille <emile@fenx.com>
Subject Re: Python Script Works Locally But Not Remotely with SSH
Date Mon, 02 Apr 2012 14:04:03 -0700
References <2750c67d-859f-46a3-ab00-a8a3da06cc4c@l14g2000vbe.googlegroups.com>
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
X-Gmane-NNTP-Posting-Host 173-11-108-137-sfba.hfc.comcastbusiness.net
User-Agent Mozilla/5.0 (Windows NT 5.1; rv:11.0) Gecko/20120312 Thunderbird/11.0
In-Reply-To <2750c67d-859f-46a3-ab00-a8a3da06cc4c@l14g2000vbe.googlegroups.com>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.12
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.1234.1333400702.3037.python-list@python.org> (permalink)
Lines 25
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1333400702 news.xs4all.nl 6885 [2001:888:2000:d::a6]:49033
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:22540

Show key headers only | View raw


On 3/27/2012 5:51 PM goldtech said...
> 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?

Just a guess here, but I expect that Firefox requires some sort of 
graphics device to write on that the ssh shell doesn't provide.

Emile

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Python Script Works Locally But Not Remotely with SSH goldtech <goldtech@worldpost.com> - 2012-03-27 17:51 -0700
  Re: Python Script Works Locally But Not Remotely with SSH goldtech <goldtech@worldpost.com> - 2012-04-01 10:32 -0700
  Re: Python Script Works Locally But Not Remotely with SSH Jedrzej Krzysztof Dec <jdec@jedrzejdec.eu> - 2012-04-01 12:32 -0700
    Re: Python Script Works Locally But Not Remotely with SSH Rod Person <rodperson@rodperson.com> - 2012-04-03 07:37 -0400
      Re: Python Script Works Locally But Not Remotely with SSH goldtech <goldtech@worldpost.com> - 2012-04-07 09:59 -0700
  Re: Python Script Works Locally But Not Remotely with SSH Emile van Sebille <emile@fenx.com> - 2012-04-02 14:04 -0700
  Re: Python Script Works Locally But Not Remotely with SSH Jerry Hill <malaclypse2@gmail.com> - 2012-04-02 19:17 -0400

csiph-web