2013/3/28 Thiago Padilha <tpadilh...@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