This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Running powershell inside urxvt or mintty


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]