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

Issue SSH command hangs after using chcp to set the EBCDIC code page for the terminal session #2387

Open
adam-wolfe opened this issue Dec 13, 2024 · 2 comments
Labels
bug Something isn't working research We need to learn more about a topic or problem before addressing it.

Comments

@adam-wolfe
Copy link
Contributor

adam-wolfe commented Dec 13, 2024

Describe the bug

If I run a command like zowe ssh issue cmd "chcp -e IBM-1047; cat test.txt" the zowe command will print output to the second to last line from the output of the command. E.g., in this case if text.txt contained:

1
2
3

Zowe CLI would print out:

$ 1
2

and then hang, requiring the user to CTRL-C to terminate the process.

Expected and actual results

I would expect all of the output to be printed and for Zowe CLI to exit.

Describe your environment

Additional context
chcp can be used to change encoding settings for an active ssh session: https://www.ibm.com/docs/en/zos/3.1.0?topic=descriptions-chcp-set-query-asciiebcdic-code-pages-terminal

@adam-wolfe adam-wolfe added bug Something isn't working new The issue wasn't triaged yet labels Dec 13, 2024
@github-project-automation github-project-automation bot moved this to New Issues in Zowe CLI Squad Dec 13, 2024
Copy link

Thank you for creating a bug report.
We will investigate the bug and evaluate its impact on the product.
If you haven't already, please ensure you have provided steps to reproduce the bug and as much context as possible.

@JTonda JTonda added research We need to learn more about a topic or problem before addressing it. and removed new The issue wasn't triaged yet labels Dec 16, 2024
@zFernand0
Copy link
Member

zFernand0 commented Dec 16, 2024

Investigate if breaking the commands (;) and sending them separately to the SSH client works.
If not, we should check that we can submit multiple commands at once. For example: echo "Hello"; echo " World!"
If the two echo commands work, then we should document that our SSH command capabilities may not work with commands that attempt to change codepages (chcp) 😋

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working research We need to learn more about a topic or problem before addressing it.
Projects
Status: New Issues
Development

No branches or pull requests

3 participants