Code Monkey home page Code Monkey logo

Comments (4)

pkittenis avatar pkittenis commented on May 18, 2024

Hi there,

Thanks for the interest. Issue tracker is for bugs/feature requests with the code, this is better asked on the mail group.

execute requires a new channel (not session) for each command. Interactive shell can be used instead, though execute cannot be used in the case, will have to read/write from shell manually.

If you are looking for a higher level client, see paralell-ssh.

from ssh2-python.

HenGold avatar HenGold commented on May 18, 2024

Hi
i know that shell require read/write cycle
but the last read hang.. this is all about

do you suggest to use paralell-ssh?

anyhow to reopen the issue?

from ssh2-python.

pkittenis avatar pkittenis commented on May 18, 2024

The read hangs because there is no more data to be read. On interactive channels no EOF is sent by server to indicate channel has finished. That is expected behaviour of the API in blocking mode. Will need to check if there is anything pending to be read presumably by either Session.block_directions or Channel.poll_read - haven't tried it.

This project is a wrapper to libssh2, similar code is needed to use it directly as for using libssh2. There are not examples for doing everything not even for libssh2 C code. PRs welcome.

If a more higher level client is what is needed, see parallel-ssh. It has both parallel and single host high level clients based on this project.

from ssh2-python.

HenGold avatar HenGold commented on May 18, 2024

Thanks!

from ssh2-python.

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.