Comments (3)
@Volinger, There are three "streams" to a shell: (1) standard input, stdin, (2) standard output, stdout, and (3) standard error, stderr. SSH is a "secure shell", so it also has these three streams if you establish a shell channel. The stdin stream is for sending data to a command. The Write VI are writing data to the stdin stream for the channel. The stdout stream is for reading the output from a command. The Read VI is reading from the stdout stream. Then, there is stderr, which by convention is used for displaying errors encountered while executing a command, but it is also sometimes used for displaying log messages, progress bars, or information that is not output of the command and should not be processed as data.
I suspect that you are not seeing any response because the command is writing to stderr instead of stdout. For example, the "qwer: command not found" response in PuTTY is probably from the stderr stream since it is an error and not output. Many, if not all, terminals, and terminal emulators like PuTTY, automatically read stdout and stderr from the shell and display them together in the terminal.
This toolkit is relatively low-level and does not provide for full-feature terminal for interacting with shells. This is a little out-of-scope for this project, but a full-feature terminal could be created using the building blocks of this toolkit.
I would try using the Read All Stderr.vi or the Read Stderr.vi in coordination with the Read VI. When you receive no response in stdout, is there content from reading stderr?
from libssh2-labview.
@volks73 thank you very much for detailed answer! You are correct, the output which was eluding me was indeed stderr. With the Read Stderr.vi it is clearly visible. Glad to learn something new : )
from libssh2-labview.
@Volinger Great! I glad I could help. It sounds like this question/issue has been answered/resolved, so I am will be closing it. Please open a new issue if you encounter anything else or you have another question.
from libssh2-labview.
Related Issues (20)
- Login with PPK-file HOT 2
- Upgrade to root HOT 3
- Error -8146 at "Create from SCP Send.vi" (DLL returned status -31 "SCP Protocol Error") HOT 3
- Add example and/or VI to make folder if non-exists on remote
- Keepalive HOT 1
- Build Application HOT 2
- SSHlib freeze during init HOT 1
- Missing Files (VIPM Installation) HOT 2
- reading Prompt
- TCP/IP Channel is not accessible by other programs or VIs HOT 3
- How to use "Remote File Name" HOT 1
- Create Channel From Session fails HOT 3
- LibSSH2 has problems with some commands HOT 7
- problems with private key authentication HOT 3
- SSH Library usage with NI Xnet HOT 24
- LabVIEW 2023 and newer does not work for Linux HOT 12
- Key exchange error with connect.vi in VIPM version 1.2.4.32 with NI RT Linux 2024 HOT 8
- No password authentication error HOT 3
- Read All and Read All stderr don't work together HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from libssh2-labview.