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


Groups > comp.lang.python > #60083

Re: run command line on Windows without showing DOS console window

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <mail@timgolden.me.uk>
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; 'subject:Windows': 0.02; 'subject:command': 0.09; 'anyway': 0.14; 'windows': 0.15; 'from:addr:timgolden.me.uk': 0.16; 'from:name:tim golden': 0.16; 'message-id:@timgolden.me.uk': 0.16; 'received:74.55.86': 0.16; 'received:74.55.86.74': 0.16; 'received:smtp.webfaction.com': 0.16; 'received:webfaction.com': 0.16; 'subject:run': 0.16; 'tjg': 0.16; 'url:example': 0.16; 'url:packages': 0.16; 'wrote:': 0.18; 'command': 0.22; 'example': 0.22; 'header:User-Agent:1': 0.23; 'received:192.168.100': 0.24; 'header:In-Reply-To:1': 0.27; 'dos': 0.30; 'run': 0.32; 'there': 0.35; 'window': 0.38; 'to:addr:python- list': 0.38; 'little': 0.38; 'to:addr:python.org': 0.39; 'from:addr:mail': 0.83
Date Wed, 20 Nov 2013 14:49:50 +0000
From Tim Golden <mail@timgolden.me.uk>
User-Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.0
MIME-Version 1.0
To python-list@python.org
Subject Re: run command line on Windows without showing DOS console window
References <050a03b7-bd56-4c6f-a6e6-e9867b08d0d5@googlegroups.com>
In-Reply-To <050a03b7-bd56-4c6f-a6e6-e9867b08d0d5@googlegroups.com>
Content-Type text/plain; charset=ISO-8859-1
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 <https://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 <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.2964.1384958994.18130.python-list@python.org> (permalink)
Lines 15
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1384958994 news.xs4all.nl 15886 [2001:888:2000:d::a6]:53976
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:60083

Show key headers only | View raw


On 20/11/2013 14:44, iMath wrote:
> 
> 
> is there anyway to run command line on Windows without showing DOS console window ?
> 
> can you use the following command line to give a little example ?
> 
> wget -r -np -nd http://example.com/packages/
> 
> the path to wget is C:\Program Files\GnuWin32\bin\wget.exe
> 

subprocess.call(["wget", "-r", "-np", "-nd", "http://example.com"])

TJG

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


Thread

run command line on Windows without showing DOS console window iMath <redstone-cold@163.com> - 2013-11-20 06:44 -0800
  Re: run command line on Windows without showing DOS console window Tim Golden <mail@timgolden.me.uk> - 2013-11-20 14:49 +0000
    Re: run command line on Windows without showing DOS console window Laurent Pointal <laurent.pointal@free.fr> - 2013-11-20 22:35 +0100
    Re: run command line on Windows without showing DOS console window iMath <redstone-cold@163.com> - 2013-11-23 08:13 -0800

csiph-web