X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; q=dns; s=default; b=gp 6pnvLz5oqoqJAg1dI4Bxwb1SzQkIEYlDbhUfEZiU6f0omzLg6zLmje7CR+Tpu7AW D2ZuYfJ0Hu0+pUb7CFLn5R36eNMAl0e3laylN9joP9Y2lIk+NVqhGCfSUqReYxn0 B9QdvImPfSGB2zutzRxC0EZC9a5dQRQXqsH18YJFE= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; s=default; bh=QrZJkFdI 3dYG4qKfhJtijXr61qM=; b=OLSiXeCG0I3bnosylRPmwreStFReYB1f/2nfeN/K e7FaFqoVz3B/JwXmUoaKeKTnZ17JErzRC5KT4OgSDhhRhgddI2ityFUl/zIZWmMX PTnfcRzorQcSuv8U47XUxZel+wzY0KrCLycbOl1rsi1hc2IgX0XvtwGK5SB8nX5y +VM= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com X-Spam-SWARE-Status: No, score=-3.9 required=5.0 tests=AWL,BAYES_00,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,KHOP_RCVD_TRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE,TW_RX autolearn=ham version=3.3.1 MIME-Version: 1.0 X-Received: by 10.112.148.196 with SMTP id tu4mr11919689lbb.35.1364460875511; Thu, 28 Mar 2013 01:54:35 -0700 (PDT) In-Reply-To: References: Date: Thu, 28 Mar 2013 05:54:35 -0300 Message-ID: Subject: Re: Running powershell inside urxvt or mintty From: Thiago Padilha To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=UTF-8 It worked when using with the '-Comand' option or passing a script file as argument, but I still get stuck if I need to enter powershell REPL. Perhaps you have a workaround for it? In any case, thanks for your help On Thu, Mar 28, 2013 at 5:40 AM, BGINFO4X wrote: > 2013/3/28 Thiago Padilha : >> I can successfully run powershell from cygwin if I start it from >> 'cygwin.bat' (running in the normal DOS console), but the powershell >> command simply hangs when I try to run it from urxvt or mintty. All I >> see is this: >> >> Windows PowerShell >> Copyright (C) 2009 Microsoft Corporation. All rights reserved. >> >> but after that no prompt is displayed. Anyone knows what I'm missing here? >> > > Try this: > > echo "\n" | powershell -Command "& {get-wmiObject Win32_Computersystem > | Format-Table Model}" > > Note: echo "\n" is necessary to return the prompt to the cygwin shell. > At least, when I tested. > > Regards. > > > >> -- >> Problem reports: http://cygwin.com/problems.html >> FAQ: http://cygwin.com/faq/ >> Documentation: http://cygwin.com/docs.html >> Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple >> > > -- > Problem reports: http://cygwin.com/problems.html > FAQ: http://cygwin.com/faq/ > Documentation: http://cygwin.com/docs.html > Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple > -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple