-
Notifications
You must be signed in to change notification settings - Fork 10
ionice supporting #9
Comments
Not sure how that would work. Wouldn't you rather ionice the entire ruby-process? |
I think it would be something that: if ionice option is present then scp comand will be wrapped as in example above Whether correctly I understood you ? |
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: |
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. |
Sorry, but ionice works only on a process-level. Maybe you can restructure your application to use separate processes for the different connection types? |
ok, thank you. I will think about it. if I will can make some fixes in this gem I will make PR. |
Hello, thank you for library very much. What do think about supporting ionice options?
ref
https://www.systutorials.com/docs/linux/man/1-ionice/
ionice [-c class] [-n level] [-t] command [argument...]
The text was updated successfully, but these errors were encountered: