Path: csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed2.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.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'python.': 0.02; 'machines.': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'subject:command': 0.09; 'subject:How': 0.10; 'windows': 0.15; 'message-id:@4ax.com': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'subject:windows': 0.16; 'unavailable.': 0.16; 'ignore': 0.16; 'alex': 0.19; 'basically': 0.19; 'work,': 0.20; 'command': 0.22; 'machine': 0.22; 'url:home': 0.24; 'mon,': 0.24; 'suggested': 0.26; 'header:X-Complaints-To:1': 0.27; 'tried': 0.27; 'disabled': 0.31; 'sep': 0.31; 'doing': 0.36; 'charset:us-ascii': 0.36; 'error.': 0.37; 'received:76': 0.38; 'remote': 0.38; 'server': 0.38; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'commands': 0.60; 'email addr:gmail.com': 0.63; 'secured': 0.84; '2013': 0.98 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Dennis Lee Bieber Subject: Re: How to execute command on remote windows machine Date: Tue, 03 Sep 2013 22:54:17 -0400 Organization: IISS Elusive Unicorn References: <33a44ace-33d1-493f-85cb-4f0a093368af@googlegroups.com> <74ce5096-46df-42e4-ad30-fd6f5d22f40f@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: adsl-76-253-110-181.dsl.klmzmi.sbcglobal.net X-Newsreader: Forte Agent 6.00/32.1186 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: 21 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1378263271 news.xs4all.nl 15924 [2001:888:2000:d::a6]:47989 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:53594 On Mon, 2 Sep 2013 23:45:38 -0700 (PDT), gaurangnshah@gmail.com declaimed the following: >Hi alex > >I tried the command you suggested however it is giving me following error. > >ERROR: The RPC server is unavailable. > Which basically means that the remote machine has been secured -- by having the RPC system disabled from access by other machines. Consider, os.system() can only perform commands you can execute from Windows console (command) shell. So until you come up with a command you can enter at a "DOS Prompt" and have it work, you can ignore doing it with Python. -- Wulfraed Dennis Lee Bieber AF6VN wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/