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


Groups > comp.lang.python > #30711

Re: How to execute commands on a windows machine from a Linux machine

Path csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <bahamutzero8825@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.002
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'python,': 0.02; 'url:sourceforge': 0.03; 'received:209.85.223': 0.03; 'cpython': 0.05; 'subject:How': 0.09; 'python': 0.09; 'linux.': 0.09; 'shambhu': 0.16; 'ssh': 0.16; 'subject:windows': 0.16; 'wrote:': 0.17; 'shell': 0.18; 'windows': 0.19; 'otherwise,': 0.20; 'features,': 0.22; 'machine.': 0.22; 'runs': 0.22; 'linux': 0.24; 'machine': 0.24; 'header:In-Reply-To:1': 0.25; 'header:User- Agent:1': 0.26; 'disk': 0.27; 'framework': 0.30; 'code': 0.31; 'extract': 0.33; 'to:addr:python-list': 0.33; 'received:google.com': 0.34; 'server': 0.35; 'received:209.85': 0.35; 'there': 0.35; 'message-id:@gmail.com': 0.36; 'execute': 0.37; 'two': 0.37; 'received:209': 0.37; 'subject:: ': 0.38; 'to:addr:python.org': 0.39; 'received:192': 0.39; 'received:192.168': 0.40; 'header:Received:5': 0.40; 'between': 0.63; 'skip:6 10': 0.63; 'here': 0.65; 'management': 0.65; 'subject:commands': 0.84; 'url:no': 0.93
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; bh=UWg9IB0tt7gDzfvUxduk1GIHnf/5H4rkecUmL+pR08Y=; b=p0awEqOgLLYFxseDCzXAzqL+oBXL0YbYlaGw+5TVolRr3TRx69uGNVJxzNr9W4acbA 5G09+pW1KXJiLvwswn8v/GW0RnINJc8KUaWMQlA+uDkkWkxW5gtrgJwSRSNE41xWzDLV PK8tguGJ3V1DrqvEv9QAsjHDTIO+xNA0vAqPv2F4cHsf9QHhJQ6iNbIPPwDx3JEV8ucr lZax5vMLw0lcvzOPsH7ve2ZXnAEdsAt0xRS5m27TjDxk/ntsYgdO4VjsSoBfvSo24DRW eeyvbjbNw8iPPHqb1sRACB1GUy4kLZ2ukUEXE4SVvjVpA2MyJ2uIDbj2x/BSN+Pkc8a2 jx2A==
Date Thu, 04 Oct 2012 01:15:05 -0500
From Andrew Berg <bahamutzero8825@gmail.com>
User-Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:15.0) Gecko/20120907 Thunderbird/15.0.1
MIME-Version 1.0
To "comp.lang.python" <python-list@python.org>
Subject Re: How to execute commands on a windows machine from a Linux machine
References <008501cda1ef$0ec17eb0$2c447c10$@calsoftinc.com>
In-Reply-To <008501cda1ef$0ec17eb0$2c447c10$@calsoftinc.com>
X-Enigmail-Version 1.4.4
Content-Type text/plain; charset=UTF-8
Content-Transfer-Encoding 7bit
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.1787.1349331314.27098.python-list@python.org> (permalink)
Lines 22
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1349331314 news.xs4all.nl 6880 [2001:888:2000:d::a6]:37789
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:30711

Show key headers only | View raw


On 2012.10.04 00:13, Shambhu Rajak wrote:
> 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.
> 
> 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.
If you must use Python, there are execnet and RPyC, which will allow you
to execute Python code remotely. Otherwise, there is Copssh, which has
an SSH server that runs on Windows.

http://codespeak.net/execnet/
http://rpyc.sourceforge.net/
https://www.itefix.no/i2/copssh
-- 
CPython 3.3.0 | Windows NT 6.1.7601.17835

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: How to execute commands on a windows machine from a Linux machine Andrew Berg <bahamutzero8825@gmail.com> - 2012-10-04 01:15 -0500

csiph-web