Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot run Python Interpreter remotely with PSSession #7295

Closed
clayms opened this issue Jul 16, 2018 · 3 comments
Closed

Cannot run Python Interpreter remotely with PSSession #7295

clayms opened this issue Jul 16, 2018 · 3 comments
Labels
Issue-Question ideally support can be provided via other mechanisms, but sometimes folks do open an issue to get a Resolution-Duplicate The issue is a duplicate.

Comments

@clayms
Copy link

clayms commented Jul 16, 2018

Running the Python Interpreter on a particular Windows machine locally and remotely using ssh works great. However, Windows does not have a Linux screen equivalent, so I want to switch to using PSSession to remote into this Windows machine so I can start jobs, then disconnect and reconnect later to get the results.

The problem is when I successfully connect via PSSession and can run many powershell commands and scripts without issue, when I type python as I would locally or remotely with ssh, nothing happens. Only the PSSession remote command prompt is returned on the next line. There are no errors reported.

Can the Python Interpreter be run remotely on Windows with PSSession?

Do I need to set additional PSSessionOptions?

@clayms
Copy link
Author

clayms commented Jul 16, 2018

Looks like the answer was No.
https://stackoverflow.com/a/21466434/5060792

Is it still?

@iSazonov iSazonov added the Issue-Question ideally support can be provided via other mechanisms, but sometimes folks do open an issue to get a label Jul 16, 2018
@MaximoTrinidad
Copy link

OK!! This is what I've done.

No! You can't open Python on a Enter-PSSession.

But, you can execute Python with the code:

:
PS /home/user01/$results = python -c $RunPython;
:

pscorelinuxpython_01_2018-07-16_12-15-51

@iSazonov
Copy link
Collaborator

Continue in #7581.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Question ideally support can be provided via other mechanisms, but sometimes folks do open an issue to get a Resolution-Duplicate The issue is a duplicate.
Projects
None yet
Development

No branches or pull requests

3 participants