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


Groups > comp.lang.python > #109044

Re: JNLP File download and run

From Robert Clove <cloverobert@gmail.com>
Newsgroups comp.lang.python
Subject Re: JNLP File download and run
Date 2016-05-24 11:31 +0530
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>

Show all headers | 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


Thread

Re: JNLP File download and run Robert Clove <cloverobert@gmail.com> - 2016-05-24 11:31 +0530

csiph-web