lauch browser on remote windows mach from linux python?

G

gry

My users work at windows PC's. They run my app on my linux server,
displaying the gtk/pytgk graphics via the hummingbird/exceed X server.
When a user clicks on a URL in my app, I want to lauch mozilla, running
on the PC, with the specified URL. Is there some way to do this?

[sorry, I'm a unix/linux hacker -- no understanding of MS system stuff]

I can imagine a tiny python daemon running on each PC, listening for a
connection on a particular port, and reading a URL from it.
Can it just call os.system('mozilla ...')?
Or do I have to do some .com or .net thing?

I know this sounds like opening a huge security hole in the PC, but
it's MS -- isn't that where holes belong ;-). The daemon could reject
all but appropriate local URL's.

-- George Young
 
D

drs

I want to lauch mozilla, running
on the PC, with the specified URL.

* * *
I can imagine a tiny python daemon running on each PC, listening for a
connection on a particular port, and reading a URL from it.
Can it just call os.system('mozilla ...')?
Or do I have to do some .com or .net thing?

similar to the method you proposed, but using pure python, you might look at
pyro (http://pyro.sourceforge.net).

-d
 
D

Dennis Lee Bieber

I can imagine a tiny python daemon running on each PC, listening for a
connection on a particular port, and reading a URL from it.
Can it just call os.system('mozilla ...')?

On the Windows side -- use os.startfile(URL) and let the OS
bring up the browser configured for that type of URL.

This does imply having the daemon locally...

--
 
G

George Kinney

I can imagine a tiny python daemon running on each PC, listening for a
connection on a particular port, and reading a URL from it.
Can it just call os.system('mozilla ...')?
Or do I have to do some .com or .net thing?

sure, you can do:
os.startfile(someURL)
or:
os.system('start %s' % someURL)

either one will invoke the configured URL handler. (browser or whatever)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top