| delorie.com/archives/browse.cgi | search |
| 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=sd | |
| Eabrae6M1MOGWiYZSqWCyHisr50cDlp4axvFGAlrxFGeU9yL+afGW/RIzs2kjEHA | |
| cftxSA0h4G9BVVVvJMMFtZCrdAbxMq4tE2p3pl5fcgKBfXui05143H2U4BggqAZ9 | |
| hwtfg2zYyFIg6/bA20ROVG2rM1YvGFN2UYBBswJXo= | |
| 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=8be1gerc | |
| xG5LOKXPgurn/cisIfA=; b=hCxlAr80D77i/23YYL6lNy47M07LdqPEdMCO+NEc | |
| fBCn+s0M2ct8cTG0OS9G5HwFjDY/aDomH77EtTLAjjfMhgRvfEM+RHIxupclC5Pa | |
| /rgBVCaC06KU/YpMz4HfhZlCybcf/oXL7gKovGbCnY6zDZInQFnX9nKbLJDfWMCO | |
| GSI= | |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Id: | <cygwin.cygwin.com> |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sourceware.org/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
| 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.1 required=5.0 tests=AWL,BAYES_00,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.220.8.75 with SMTP id g11mr26240704vcg.60.1364462889101; Thu, 28 Mar 2013 02:28:09 -0700 (PDT) |
| In-Reply-To: | <CAAq2XdpgMSLAGuqNESpwTmKz9ERLafj6jZJBwsw-UvUsw-JnZQ@mail.gmail.com> |
| References: | <CAAq2Xdo00sxj7ycB72zegqmbnD==S6cJPS6dz_bRSz_b-U4TqA AT mail DOT gmail DOT com> <CAO2ddna7w6ZHFebfLsTsEsK8Ba69dSE9pxQ9LRZAOPnOzOPT0A AT mail DOT gmail DOT com> <CAAq2XdpgMSLAGuqNESpwTmKz9ERLafj6jZJBwsw-UvUsw-JnZQ AT mail DOT gmail DOT com> |
| Date: | Thu, 28 Mar 2013 10:28:09 +0100 |
| Message-ID: | <CAO2ddnaXsoKVH2MQfCdLqjqNmc=gr-UXzUX4+xdHUYbwOu-bqw@mail.gmail.com> |
| Subject: | Re: Running powershell inside urxvt or mintty |
| From: | BGINFO4X <bginfo4x AT kztsoftware DOT com> |
| To: | cygwin AT cygwin DOT com |
2013/3/28 Thiago Padilha <tpadilha84 AT gmail DOT com>:
> 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?
>
I don't have a workraound.
I think that the problem is related to mintty.
http://code.google.com/p/mintty/issues/detail?id=56#c12
Or try another console
Regards.
> In any case, thanks for your help
>
> On Thu, Mar 28, 2013 at 5:40 AM, BGINFO4X <bginfo4x AT kztsoftware DOT com> wrote:
>> 2013/3/28 Thiago Padilha <tpadilha84 AT gmail DOT com>:
>>> 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
>
--
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
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |