473,671 Members | 2,216 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

X-Platform method of remote execution of Windows programs

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

Aug 21 '05 #1
2 1311
On 21 Aug 2005 11:19:37 -0700, ut*********@gma il.com declaimed the
following in comp.lang.pytho n:
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!
Well, let's start with the simplest...

How would you run that program WITHOUT writing a program? Then
emulate that method inside the Python program. For example, you might
log-in through telnet, and pass commands to a shell.
-- =============== =============== =============== =============== == <
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/> <

Aug 22 '05 #2
Well, I can do this using WMI thru VBScript for Windows-Windows
connections. What I would like is a method using python for both
Windows-Windows and Linux-Windows connections. I've looked at pyWMI
(http://tgolden.sc.sabren.com/python/wmi.html), and found it unclear in
it's dealings with remote boxes. A look at win32com netted me a load of
"Access Denied" errors.

An alternative is using OpenSSH for Windows (on sourceforge), but I am
looking for a solution which would not require any additional software
on the Windows boxen.

Thanks for the reply.

Bob

Aug 22 '05 #3

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

Similar topics

3
1458
by: lists | last post by:
I would appreciate it you folks would answer a couple of basic questions about the "Remote execution" error: 1. Is it a browser issue. 2. Is it a PHP version issue. 3. Is a a $HTTP_POST_VAR vs. $_POST issue? 4. Is a a $_POST vs. $_GET issue? I'm trying to use ezContents CMS calendar module, which is called from a menu link, the module path is
0
1222
by: J. Whitehurst | last post by:
I am currently trying to find a way to remotely execute an application such that the GUI will actually show up (and be interactive?) on the remote host. Simple example: have computer1 tell computer2 to execute calc.exe, such that the calculator actually does show up for the currently logged in user of computer2. Is this possible? Currently, we are ssh'ing over to the other machine and executing 'calc'.
7
1733
by: Coca | last post by:
Hello, all I am working on a project that needs to convert OS/2 C60 programs into MS windows programs. And I found it difficult to find useful information. Could somebody kindly help me ? any tips?web sites? 1. How can I convert OS/2 C60 programs into MS windows programs? 2.Where can I find information on OS/2 C60 ?any web
12
13142
by: ritchiebuckley | last post by:
I've been doing asp.net for so long now that I have forgotten about windows form programming so excuse this (seemingly) basic question. I have a form A which then opens up form B. I do stuff on form B after which I hit a close button. I want to run a method on form A as I close form B. I don't need to pass data back (though I like to know how this is done), just run a refresh type method back on form B. I've got bogged down in...
1
1136
by: Kapil | last post by:
My goal is to write an application in which I need to execute some programs on remote clients. The clients should be listening to the server machine all the time and as soon as a request comes, they would execute a set of programs. The important thing is that the server should know what of those programs were completed successfully and what failed. I was wondering what is the best way for me to do this. Would .NET remoting help me...
8
5374
by: Stanley | last post by:
I have finished a Windows Service, now I'm trying to deploy the service to all my local computers. I want to ask if there is a fast way, rather then install it one by one? All answer would be highly appreciated! Thanks! Best regards, Stanley
1
2567
by: dodobird | last post by:
Hello, I am sorry if this is not the correct forum for this post. I am looking for a tool for Windows, that can do file transfer to remote machines ( running windows as well ), and also do remote execution. it should be run from a script, it should have a log of all errors, and it should be able to do Retry/Stop/Continue to operations ( for example if the file transfare didn't succeed, it sould be possible to choose in the script if we want...
1
1745
by: shing | last post by:
1. How would you make python open up windows programs? 2. How would you make python get data from a website, let's say, when google updates their main index page.
4
3219
Wing
by: Wing | last post by:
Hello fellow programmers. I am writing a desktop application that will allow our IT department to execute commands on remote computers. I had originally found a post that has a two part program that was working nicely for half our computers. It seems that when the remote portion (which is a service) is running other programs will get hung up. We have to go into Services and Stop the service. Once this is done, all other programs execute...
0
8473
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
8911
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
8819
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
8597
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
6222
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
5692
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();...
1
2808
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
2
2048
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1806
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.