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 <bginf...@kztsoftware.com> wrote: > 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 > -- 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