Code Monkey home page Code Monkey logo

Comments (6)

m-o-e avatar m-o-e commented on August 23, 2024

Not sure how that would work. Wouldn't you rather ionice the entire ruby-process?

from net-ssh-simple.

iamsimakov avatar iamsimakov commented on August 23, 2024

I think it would be something that: if ionice option is present then scp comand will be wrapped as in example above
ionice [-c class] [-n level] [-t] command [argument...]
for each command - download or upload.

Whether correctly I understood you ?
If you meant wrap the whole process of ruby I did not hear about it. Do you have a link to the resource where this was described or little example?

from net-ssh-simple.

m-o-e avatar m-o-e commented on August 23, 2024

net-ssh-simple uses the net-ssh gem, which implements SSH in pure ruby (there are no calls to ssh or scp binaries).

Therefor, if you want to apply ionice, you would apply it to your ruby process, such as:
ionice -c 2 ./my_program.rb

from net-ssh-simple.

iamsimakov avatar iamsimakov commented on August 23, 2024

thank you for your time but it's not quite what we need. our main process is script which run from daemontools. and from this process can initiate many connections: some with ionice, some without ionice and params for ionice can change for different connections.

from net-ssh-simple.

m-o-e avatar m-o-e commented on August 23, 2024

Sorry, but ionice works only on a process-level. Maybe you can restructure your application to use separate processes for the different connection types?

from net-ssh-simple.

iamsimakov avatar iamsimakov commented on August 23, 2024

ok, thank you. I will think about it. if I will can make some fixes in this gem I will make PR.

from net-ssh-simple.

Related Issues (4)

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.