473,626 Members | 3,413 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

lauch browser on remote windows mach from linux python?

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('mozi lla ...')?
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

Jul 18 '05 #1
3 1636
drs
<gr*@ll.mit.edu > wrote in message news:ch******** @odbk17.prod.go ogle.com...
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('mozi lla ...')?
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
Jul 18 '05 #2
On 7 Sep 2004 10:54:31 -0700, gr*@ll.mit.edu declaimed the following in
comp.lang.pytho n:

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('mozi lla ...')?
On the Windows side -- use os.startfile(UR L) and let the OS
bring up the browser configured for that type of URL.

This does imply having the daemon locally...

-- =============== =============== =============== =============== == <
wl*****@ix.netc om.com | Wulfraed Dennis Lee Bieber KD6MOG <
wu******@dm.net | Bestiaria Support Staff <
=============== =============== =============== =============== == <
Home Page: <http://www.dm.net/~wulfraed/> <
Overflow Page: <http://wlfraed.home.ne tcom.com/> <

Jul 18 '05 #3

<gr*@ll.mit.edu > wrote in message news:ch******** @odbk17.prod.go ogle.com...
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('mozi lla ...')?
Or do I have to do some .com or .net thing?


sure, you can do:
os.startfile(so meURL)
or:
os.system('star t %s' % someURL)

either one will invoke the configured URL handler. (browser or whatever)
Jul 18 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
2430
by: Hemanth | last post by:
Hello there, I've a utility that runs on a linux machine. Basically, it opens a window, draws a figure and captures the image (screen) and stores it as a jpeg file. The utility requires a window to be open (or displayed) inorder to save the image. Also, this utility is in the form of an executable, so I can't possibly alter it. I want to run this utility from a windows web browser and display the saved jpeg file. I pass some command...
2
1806
by: Wlad | last post by:
Hi, Does anybody knows how to make the browser lauch an external image editor (i.e. Photoshop) when the user clicks on a link like this : <a href= "http://localhost/images/200411081456170.Nenuphars.jpg">Image</a> The same application can be launched for any image link. Thank you. Wlad
2
1311
by: utabintarbo | last post by:
How can I execute a program in windows on a remote pc, from both linux and windows, using python (more-or-less) alone? Any help would be GREATLY appreciated! Bob
8
2772
by: robert | last post by:
Hello, I want to put (incrementally) changed/new files from a big file tree "directly,compressed and password-only-encrypted" to a remote backup server incrementally via FTP,SFTP or DAV.... At best within a closed algorithm inside Python without extra shell tools. (The method should work with any protocol which allows somehow read, write & seek to a remote file.) On the server and the transmission line there should never be...
3
2775
by: Stefan Schwarzer | last post by:
Hello, from time to time I want to inspect the source code of projects on remote computers.(*) I've googled for one or two hours but didn't find anything helpful. :-/ I'm looking for something like IDLE's path browser - i. e. a tree view and file view side-by-side - but with the following differences: - doesn't need an X connection to the remote computer where the sources are
2
2890
by: mike | last post by:
Hi, I have surfed through several posting about exporting gridview to excel and it works great. using the following code... response.Clear() response.ContentType = "application/vnd.ms-excel" response.Charset = "" Dim stringWrite As New System.IO.StringWriter() Dim htmlWrite As New System.Web.UI.HtmlTextWriter(stringWrite) Dim dg As New GridView()
1
2705
by: diffuser78 | last post by:
I just started to write a small project in Python. I was wondering if there can be something like remote boot manager. I have to remotely start a computer. It has dual boot (WinXP and Linux). My remote computer is Linux which will send command to remotely boot the other computer. Can we write python script or some utility which would let us select the Operating System to boot ? For example If we send parameter "WIN"
4
2811
by: python | last post by:
I'm looking at rewriting some legacy VB applications and am pondering which of the following techniques to use: 1. Browser based GUI with local web server (Browser + wsgiref.simple_server) (I'm assuming that simple_server is class I want to build from for a local web server) -OR- 2. wxPython based GUI
0
1556
by: rahulsengar | last post by:
Hey how can i lauch my application on incoming call notification in windows mobile . hey can u please help me how to launch my application automatically when an incoming call occurs. Is there any way to lauch my application without opening it. The process which i went through was i created a cab file of my application which is working perfectly allright. But my application is not getting started when i deploy the cab file in windows mobile...
0
8272
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8713
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8644
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
6126
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5579
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4094
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4208
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2632
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1817
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.