Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to make a call to mintty.exe (OpenSSH/SFTP from CygWin) via Powershell.

How can be done most effectively ?

share|improve this question
Just use PuTTY's psftp.exe? – Daniel Beck Nov 29 '11 at 12:51
Invoke-Expression c:\cygwin\bin\mintty.exe

I made an assumption about the path of your executable.

Also, you should refer to the official documentation:

share|improve this answer
Thx.But what if I want to invoke a specific OpenSSH command via CygWin ? I also want to check the result of that call... A little context: I want to invoke from serverA via remote powershell a command on serverB having an OpenSSH SFTP command using CygWin.... – Patrick Peters Nov 28 '11 at 20:34
Ok well first of all don't call it "a dos command". It's not DOS. You should take a look at this.… – AaronJAnderson Nov 29 '11 at 0:29
Or spend a few minutes on google. There is a lot of information about how to do this. – AaronJAnderson Nov 29 '11 at 0:29
I called this: invoke-expression 'c:\cygwin\bin\mintty.exe -i -e df' to see if I get results from an interactive df statement, but I get no response, only empty string.... – Patrick Peters Nov 29 '11 at 12:47

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .