Comments (6)
Not sure how that would work. Wouldn't you rather ionice the entire ruby-process?
from net-ssh-simple.
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.
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.
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.
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.
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
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 net-ssh-simple.