Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

net-ssh-open3

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

net-ssh-open3

  • 0.1.6
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

net-ssh-open3

Gem Version

Thread-safe Open3 for Net::SSH.

Adds some Open3-style functions to Net::SSH::Connection::Session.

See ruby 1.9.3 doc or ruby 2.0 doc.

Usage example:

irb(main):001:0> require 'net-ssh-open3'
=> true
irb(main):002:0> session = Net::SSH.start('localhost', 'root'); nil
=> nil
irb(main):003:0> puts session.capture2e('ls', '/boot') # also: 'ls /boot'
grub
initramfs-linux-fallback.img
initramfs-linux.img
lost+found
memtest86+
vmlinuz-linux
pid 1594 exit 0
=> nil
irb(main):004:0> session.popen2e('sh') { |i, oe, w| i.puts('kill $$'); w[:status] }
=> #<Net::SSH::Process::Status: pid 16864 TERM (signal 15) core false>

Note: a single SSH session may have several channels, i.e. you may run several Open3 methods on the same session in parallel (in different threads).

For more information please see documentation inside. Recommended starting point is "Methods included from Net::SSH::Open3" in Net::SSH::Connection::Session.

TODO: don't require block

FAQs

Package last updated on 28 Dec 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc