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

process_starter

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

process_starter

  • 1.0.13
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

== Process Starter

A gem for Ruby 1.8 to start process in parallel, 1) don't wait for it finish 2) dont inherit io file handles 3) both in windows/linux. Ruby 1.9 dont need it because it has spawn method.

== Usage

ProcessStarter.start("somecmd arg1 arg2")

will invoke 'somecmd' with command line arg1 arg2.

ProcessStarter.allowed_methods = [:psexec,:start,:spawn,:fork]

specify which methods are allowed to start the process. So we have psexec (if found on the target machine) and 'cmd /c start ...' for windows, and spawn (if in ruby 1.9) or fork in linux. This is the default, but you can redefine it, for example: ProcessStarter.allowed_methods = [:start,:fork]

Also you can set allowed methods in command call:

ProcessStarter.start("somecmd arg1 arg2", [:start,:fork] )

This overrides ProcessStarter.allowed_methods values.

== How to install

gem install process_starter

== Ruby versions Useful for Ruby 1.8, not so useful for Ruby 1.9

== Todo

  • Add 'win32/process' start method.
  • Fix posix-spawn method (turned off at the moment).

== Changelog

== Legal

Found a bug? Fix it and email pull request to me: pavel.vasev@gmail.com

Want to add a feature? Implement it and email the patch!

Pavel Vasev [ pavel.vasev@gmail.com ]

Released under the MIT license (included)

FAQs

Package last updated on 13 Jun 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