Code Monkey home page Code Monkey logo

Comments (3)

volks73 avatar volks73 commented on June 2, 2024

@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.

Volinger avatar Volinger commented on June 2, 2024

@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.

volks73 avatar volks73 commented on June 2, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.