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


Groups > comp.lang.python > #108863 > unrolled thread

Re: JNLP File download and run

Started byMichael Torrie <torriem@gmail.com>
First post2016-05-20 09:36 -0600
Last post2016-05-20 09:36 -0600
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: JNLP File download and run Michael Torrie <torriem@gmail.com> - 2016-05-20 09:36 -0600

#108863 — Re: JNLP File download and run

FromMichael Torrie <torriem@gmail.com>
Date2016-05-20 09:36 -0600
SubjectRe: JNLP File download and run
Message-ID<mailman.53.1463758624.27390.python-list@python.org>
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.

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web