Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #22554
| Path | csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <malaclypse2@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.001 |
| X-Spam-Evidence | '*H*': 1.00; '*S*': 0.00; 'linux,': 0.05; 'subject:Python': 0.05; 'ok.': 0.07; 'pop': 0.07; 'session.': 0.07; 'tab': 0.09; 'cc:addr:python-list': 0.10; 'permission': 0.14; 'desktop?': 0.16; 'jerry': 0.16; 'machine?': 0.16; 'ssh': 0.16; 'subject:Not': 0.16; 'do.': 0.18; 'runs': 0.18; 'windows': 0.19; 'wrote:': 0.19; 'trying': 0.20; 'import': 0.20; 'assuming': 0.21; 'header:In-Reply-To:1': 0.22; 'window': 0.23; 'linux': 0.24; 'message-id:@mail.gmail.com': 0.24; 'run': 0.25; 'machine': 0.25; 'received:209.85.212.46': 0.26; 'cc:2**0': 0.26; 'executing': 0.27; 'seems': 0.27; 'script': 0.27; 'cc:no real name:2**0': 0.27; 'cc:addr:python.org': 0.28; '27,': 0.28; 'seemingly': 0.28; 'starts': 0.28; 'connection': 0.31; 'received:209.85.212': 0.32; 'received:209.85': 0.32; 'client': 0.32; 'goes': 0.32; 'received:google.com': 0.32; 'interact': 0.32; 'file': 0.33; 'running': 0.33; 'server': 0.33; 'pm,': 0.34; 'so,': 0.34; 'received:209': 0.35; 'open': 0.35; 'subject:with': 0.35; 'does': 0.36; 'but': 0.37; 'why': 0.37; 'subject:: ': 0.37; 'header:Received:5': 0.40; 'allow': 0.40; 'most': 0.61; 'services': 0.61; '2012': 0.62; 'different': 0.62; 'skip:w 30': 0.66; 'pc,': 0.91; 'service?': 0.91 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=vfvzJmM3aPVMF7iHYjTC54yEmq3A4vBLO/eK2tXOg2U=; b=Z7brdVvw0bHbTO/2vhywDJwEOzONLKEtfw/I2pxEPrGHSNpHAqOfCbEIJuHiDMLKbU 9PCxPhDCr/SOSrejIV8X21XnZuLyflDmbOcYFzNheOdFrMPc9ZAAK3J75VYUme4sk0ks xf12hZDUh4YbFg7HkyolxbztwkIovqtQ7n/Knrz6J82PXesh1JpXATi2/o3QFNj0uS7l BnvsZDFHJB2VV1ghiRv3pkMcOYq3p/dGIojEFssgQQIK/4a9eSqx8L2brr3XraQ06wKD BRxzROJo4kKjW/VV4MkVYH46nmk2EWaAcQUJcVvWWBoGKxI2OK/1WXUXAxs+mJ4xzXQc f2Ow== |
| MIME-Version | 1.0 |
| In-Reply-To | <2750c67d-859f-46a3-ab00-a8a3da06cc4c@l14g2000vbe.googlegroups.com> |
| References | <2750c67d-859f-46a3-ab00-a8a3da06cc4c@l14g2000vbe.googlegroups.com> |
| Date | Mon, 2 Apr 2012 19:17:47 -0400 |
| Subject | Re: Python Script Works Locally But Not Remotely with SSH |
| From | Jerry Hill <malaclypse2@gmail.com> |
| To | goldtech <goldtech@worldpost.com> |
| Content-Type | text/plain; charset=UTF-8 |
| Content-Transfer-Encoding | quoted-printable |
| Cc | python-list@python.org |
| 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.1245.1333408669.3037.python-list@python.org> (permalink) |
| Lines | 29 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1333408669 news.xs4all.nl 6928 [2001:888:2000:d::a6]:42294 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:22554 |
Show key headers only | View raw
On Tue, Mar 27, 2012 at 8:51 PM, goldtech <goldtech@worldpost.com> wrote:
> 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?
How are you running the ssh server on the windows machine? Is it a
windows service? If so, what user does it run as, and is the service
configured to be allowed to interact with the desktop?
IIRC, by default most windows services run as a different user than
you, and do not have permission to interact with your desktop session.
You may be able to get the firefox window to pop up on the ssh server
machine if you allow it to interact with the desktop, assuming that's
what you're trying to do.
Jerry
Back to comp.lang.python | Previous | Next — Previous in thread | Find similar | Unroll 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