-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
az container exec. pipe command result to file fails [Errno 25] Inappropriate ioctl for device #28553
Comments
Thank you for opening this issue, we will look into it. |
Hi @programista-zacny
Possible solution:
This should allow you to display the output of the container and pipe the result to a file. Please confirm if this resolves your issue. |
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @dkkapur. |
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @calvinsID. |
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @dkkapur. |
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @calvinsID. |
1 similar comment
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @calvinsID. |
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @dkkapur. |
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @calvinsID. |
Thanks for reporting this issue. Thanks. |
MacOS Sonoma 14 on MacBook Air M2. |
Can you help me to double confirm the result of the execution of these python code on MacOS Sonoma 14 on MacBook Air M2?
Thanks. |
Result: |
Thanks. |
Describe the bug
I'm trying to
az containerapp exec --subscription subscription -g group -n name --command "cat /etc/hosts" >> test.log
and it fails...Related command
az containerapp exec --subscription subscription -g group -n name --command "cat /etc/hosts" >> test.log
Errors
Exception in thread Thread-1 (read_ssh):
Traceback (most recent call last):
File "/opt/homebrew/Cellar/python@3.11/3.11.8/Frameworks/Python.framework/Versions/3.11/lib/python3.11/threading.py", line 1045, in _bootstrap_inner
self.run()
File "/opt/homebrew/Cellar/python@3.11/3.11.8/Frameworks/Python.framework/Versions/3.11/lib/python3.11/threading.py", line 982, in run
self._target(*self._args, **self._kwargs)
File "/opt/homebrew/Cellar/azure-cli/2.58.0/libexec/lib/python3.11/site-packages/azure/cli/command_modules/containerapp/_ssh_utils.py", line 123, in read_ssh
_resize_terminal(connection)
File "/opt/homebrew/Cellar/azure-cli/2.58.0/libexec/lib/python3.11/site-packages/azure/cli/command_modules/containerapp/_ssh_utils.py", line 154, in _resize_terminal
size = os.get_terminal_size()
^^^^^^^^^^^^^^^^^^^^^^
OSError: [Errno 25] Inappropriate ioctl for device
Issue script & Debug output
.
Expected behavior
Pipe result to file.
Environment Summary
{
"azure-cli": "2.58.0",
"azure-cli-core": "2.58.0",
"azure-cli-telemetry": "1.1.0",
"extensions": {}
}
Additional context
No response
The text was updated successfully, but these errors were encountered: