Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.017 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'subject:How': 0.09; 'linux.': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'oct': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'subject:windows': 0.16; 'wmi': 0.16; 'thu,': 0.17; 'shell': 0.18; 'windows': 0.19; 'features,': 0.22; 'machine.': 0.22; 'linux': 0.24; 'machine': 0.24; 'disk': 0.27; 'newer': 0.27; 'header:X-Complaints-To:1': 0.28; 'framework': 0.30; 'extract': 0.33; 'url:home': 0.33; 'to:addr:python-list': 0.33; 'received:org': 0.36; 'depends': 0.36; 'charset:us-ascii': 0.36; 'execute': 0.37; 'does': 0.37; 'two': 0.37; '(for': 0.37; 'subject:: ': 0.38; 'to:addr:python.org': 0.39; 'header:Received:5': 0.40; 'enable': 0.60; 'service.': 0.61; 'between': 0.63; 'here': 0.65; 'management': 0.65; 'subject:commands': 0.84; 'dennis': 0.91; 'received:108': 0.91 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Dennis Lee Bieber Subject: Re: How to execute commands on a windows machine from a Linux machine Date: Thu, 04 Oct 2012 21:24:58 -0400 Organization: > Bestiaria Support Staff < References: <008501cda1ef$0ec17eb0$2c447c10$@calsoftinc.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: adsl-108-79-218-239.dsl.klmzmi.sbcglobal.net X-Newsreader: Forte Agent 3.3/32.846 X-No-Archive: YES X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 28 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1349401550 news.xs4all.nl 6887 [2001:888:2000:d::a6]:41703 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:30771 On Thu, 4 Oct 2012 10:43:57 +0530, "Shambhu Rajak" declaimed the following in gmane.comp.python.general: > Here i have two questions, > > 1. I want to write a framework for Linux machine that can execute > commands on windows machine: > > How to create a persistent shell between Linux and Windows machine. > This depends upon how the Windows machine is configured -- does it even permit one to telnet to it? In the Windows world, you'd be looking for an enable "Remote Connection" service. > 2. I require to extract windows disk management features, for eg: > Number of drives on that windows machine , > > volume size of the machine, to create a partition, all these storage stuffs. > I want to achieve all these features of windows machine, from linux. > Learn WMI or (for newer machines, if you can connect with privileges, PowerShell v2) -- Wulfraed Dennis Lee Bieber AF6VN wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/