Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #109044
| Path | csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail |
|---|---|
| From | Robert Clove <cloverobert@gmail.com> |
| Newsgroups | comp.lang.python |
| Subject | Re: JNLP File download and run |
| Date | Tue, 24 May 2016 11:31:37 +0530 |
| Lines | 27 |
| Message-ID | <mailman.46.1464069699.20402.python-list@python.org> (permalink) |
| References | <CAEMktPXWpVXuLFLEWrVsoHhxPNe62up0tvjbAPoJ4K=+0oSNWQ@mail.gmail.com> <e74c7849-e834-ead1-f105-4b79ead712b9@gmail.com> <CAEMktPVXZJJcgzofbR2u+6f7gRM=_27PV6QMfmHfU7KkqhQPkQ@mail.gmail.com> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=UTF-8 |
| X-Trace | news.uni-berlin.de i+bekFbSl52vcDKSGPhAsw5q0v1jSAzBjrm06RbaqHxw== |
| Return-Path | <cloverobert@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.002 |
| X-Spam-Evidence | '*H*': 1.00; '*S*': 0.00; 'binary': 0.05; 'executable': 0.07; 'cc:addr:python-list': 0.09; 'parameter.': 0.09; 'spawn': 0.09; 'advance': 0.10; 'python': 0.10; 'file,': 0.15; '2016': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'run.': 0.16; 'subject:File': 0.16; 'subject:download': 0.16; 'subject:run': 0.16; 'subprocess': 0.16; 'urllib': 0.16; 'wrote:': 0.16; 'linux,': 0.18; '>': 0.18; 'email addr:gmail.com>': 0.18; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; 'pass': 0.22; 'am,': 0.23; 'header:In-Reply-To:1': 0.24; 'module': 0.25; 'fri,': 0.27; 'message-id:@mail.gmail.com': 0.27; 'looks': 0.29; 'directly,': 0.29; 'invoke': 0.29; 'url:mailman': 0.30; 'code': 0.30; 'run': 0.33; 'url:python': 0.33; 'michael': 0.33; 'url:listinfo': 0.34; 'file': 0.34; 'received:google.com': 0.35; 'could': 0.35; 'besides': 0.35; 'robert': 0.35; 'asking': 0.35; 'there': 0.36; 'url:org': 0.36; 'received:209.85': 0.36; 'url:library': 0.36; 'pm,': 0.36; 'subject:: ': 0.37; 'skip:& 10': 0.37; 'mac': 0.37; 'received:209.85.213': 0.37; 'received:209': 0.38; 'someone': 0.38; 'hi,': 0.38; 'url:mail': 0.40; 'url:3': 0.60; 'provide': 0.61; 'default': 0.61; '20,': 0.66; 'url:6': 0.66; 'thing,': 0.93 |
| 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; bh=Wu8w503kQkIH0Xh46MIEj/dvNIfUMUUnMzOzzv/oZOk=; b=fYFW4ZYxDDr8xFlteXidX9y3DjTSqKhpAJViqiYxzajTTIZsO7qm+LdotfPgNN6QMo rg9AGlkuGEYZ1P4vg+FfW5JCwKpthCYseE9PoPTerMgodmI1UkIphkLaicD5dr4QxO99 sZJQBPNo/Ws0VBodDheUEjeHwS+9iA7uMB2FxLbXr1MpuDb0DCrbE1XTj1vfAiGhDm9n E57JiTGNsDiW43qOIonkaD8lptjrhT3oky8l/lNd857qtfU5HUHH5IOpln6kYDT5YW5j 74fD39kaxQRBk4OUIdP7DuB2VjuPTGAo4RJDGIjJzZ1KDdFgUAWaKeFZdjmLTjgFC80t wTWg== |
| X-Google-DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc; bh=Wu8w503kQkIH0Xh46MIEj/dvNIfUMUUnMzOzzv/oZOk=; b=cmSRxmX7WjS191IKoRw1bvnF6IxnZm0oQpZlK/rs+rn5ou7cXe73Fe37JblGcGn3oX OMhcvmVvzPGsZWDhiY4iMrdoWYu9HX/xw323pl7xupO3p1nWthcoFllE3ppQsPRgezFk rfCeWIg6lKvBLBeYGD7hBooFizhce7Hy73yPE5ubDHsw+TK6FdsgbEuHumVzFZI6yOwV gueU/xfSSCLktuj+hZRb9gQTBulutKQuNw/bOfz7yzWz2nDzFmhQhnoFc3JsZSqgL/P9 f1rj3iZ16UufzQhYROiR4hMyfk9ElHghp3k2fwo4UXVuIyovvO1jYwlUAMIFQXAwpYFA 0hlQ== |
| X-Gm-Message-State | ALyK8tIrlUmrynFAulaTGDH9hUmJsRXDgCylf9IBGohdpbg1LAnHqzjyKBqhDUjn/gSAxGKnKPnYbHSjL4c0NQ== |
| X-Received | by 10.50.116.200 with SMTP id jy8mr10633765igb.35.1464069697113; Mon, 23 May 2016 23:01:37 -0700 (PDT) |
| In-Reply-To | <e74c7849-e834-ead1-f105-4b79ead712b9@gmail.com> |
| X-Content-Filtered-By | Mailman/MimeDel 2.1.22 |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.22 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <https://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 | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| X-Mailman-Original-Message-ID | <CAEMktPVXZJJcgzofbR2u+6f7gRM=_27PV6QMfmHfU7KkqhQPkQ@mail.gmail.com> |
| X-Mailman-Original-References | <CAEMktPXWpVXuLFLEWrVsoHhxPNe62up0tvjbAPoJ4K=+0oSNWQ@mail.gmail.com> <e74c7849-e834-ead1-f105-4b79ead712b9@gmail.com> |
| Xref | csiph.com comp.lang.python:109044 |
Show key headers only | View raw
Can u provide the pseudo code for the same On Fri, May 20, 2016 at 9:06 PM, Michael Torrie <torriem@gmail.com> wrote: > On 05/20/2016 01:30 AM, Robert Clove wrote: > > Hi, > > > > Can someone give me pseudo code to download and JNLP file from a URL and > > run it? > > > > Looks like a advance concept in python > > You could use the urllib module to download the file, then use the > subprocess module to spawn the javaws executable and pass it the > location of the jnlp file as a parameter. > > https://docs.python.org/3.6/howto/urllib2.html > https://docs.python.org/3.6/library/subprocess.html > > There are other ways besides launching javaws directly, such as asking > cmd.exe to invoke "start" and the jnlp file so that the default javaws > executable will run. On Mac there's the "open" binary that can do the > same thing, and on Linux, xdg-open. > > -- > https://mail.python.org/mailman/listinfo/python-list >
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: JNLP File download and run Robert Clove <cloverobert@gmail.com> - 2016-05-24 11:31 +0530
csiph-web