Powershell as a windows ssh shell

J

Jason

Hello,

I have been trying to use powershell on windows. Local use seem to be a
rather nice replacement to existing shells. However once I go remote I have a
lot of issue. The biggest is running programs on the remote systems. If that
program requires intertaction the shell locks up, and i have to press cntrl-C
to get out of it. Is it possible to run programs such as SVN or any other
program that might require input form the user on the remote system?

Thanks
Jason
 

My Computer

B

Bob Landau

From the behavior you're mentioning below I'm guessing this is a GUI app.
These will not work using remoting although spawning these won't cause your
console to lock up.

In regards to input, you've neglicated to tell us how you're accessing the
remote machine. There are several methods Enter-PSSession is how you would
work interactively on the remote machine. I've not used SVN but if this is a
console based app it should just work like every other console based app.

bob

"Jason" wrote:

> Hello,
>
> I have been trying to use powershell on windows. Local use seem to be a
> rather nice replacement to existing shells. However once I go remote I have a
> lot of issue. The biggest is running programs on the remote systems. If that
> program requires intertaction the shell locks up, and i have to press cntrl-C
> to get out of it. Is it possible to run programs such as SVN or any other
> program that might require input form the user on the remote system?
>
> Thanks
> Jason
 

My Computer

J

Jason

Hi,

What i did was a Enter-PSSession to start the remote session. I have found
that there are other ways to get this simular behavior.

For example if you try to run cmd.com or python.exe ( given that you have
python installed) In both cases I don't get a command prompt or a python
prompt. Both of these are console, non-gui programs

Svn as I said locks up the prompt waiting for input that I seem unable to
give it

I did a different test. I made a simple C++ program
#include "stdafx.h"
#include <string>
#include <iostream>

using namespace std;

int _tmain(int argc, _TCHAR* argv[])
{
std::string s;
cout<<"enter value:";
cin>>s;
cout<<s<<endl;
return 0;
}

in this case the program prints the "enter value:" part then returns to the
prompt. I don't know why svn locks up, but in either cases it seems that one
can't use a cli program that requires interactive input with powershell

Jason

"Bob Landau" wrote:

> From the behavior you're mentioning below I'm guessing this is a GUI app.
> These will not work using remoting although spawning these won't cause your
> console to lock up.
>
> In regards to input, you've neglicated to tell us how you're accessing the
> remote machine. There are several methods Enter-PSSession is how you would
> work interactively on the remote machine. I've not used SVN but if this is a
> console based app it should just work like every other console based app.
>
> bob
>
> "Jason" wrote:
>

> > Hello,
> >
> > I have been trying to use powershell on windows. Local use seem to be a
> > rather nice replacement to existing shells. However once I go remote I have a
> > lot of issue. The biggest is running programs on the remote systems. If that
> > program requires intertaction the shell locks up, and i have to press cntrl-C
> > to get out of it. Is it possible to run programs such as SVN or any other
> > program that might require input form the user on the remote system?
> >
> > Thanks
> > Jason
 

My Computer

Top