This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Running powershell inside urxvt or mintty
- From: BGINFO4X <bginfo4x at kztsoftware dot com>
- To: cygwin at cygwin dot com
- Date: Thu, 28 Mar 2013 09:40:31 +0100
- Subject: Re: Running powershell inside urxvt or mintty
- References: <CAAq2Xdo00sxj7ycB72zegqmbnD==S6cJPS6dz_bRSz_b-U4TqA at mail dot gmail dot com>
2013/3/28 Thiago Padilha <tpadilha84@gmail.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