
Security News
AGENTS.md Gains Traction as an Open Format for AI Coding Agents
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
This gem helps to spawn processes in a shell capturing output in realtime. It also allows to set the temeouts.
MRI 1.9.3, 2.0.0, 2.1.x.
Add this line to your application's Gemfile:
gem 'vx-lib-spawn'
And then execute the bundler:
$ bundle
Or install it via gem
command:
$ gem install vx-lib-spawn
The following snippet demonstrates the usage:
include Vx::Lib::Spawn
spawn "ls -la" do |output|
print output
# prints directory listing
end
spawn("echo value", timeout: 10) do |output|
print output
# its print "value\n"
end
# Spawn remote processes example
open_ssh('localhost', 'user') do |ssh|
ssh.spawn("ls -la") do |output|
print output
# prints directory listing
end
spawn("echo value", read_timeout: 10) do |output|
print output
# its print "value\n"
end
end
When a timeout is reached spawn raises Vx::Lib::Spawn::TimeoutError
or
Vx::Lib::Spawn::ReadTimeoutError
. Both exceptions inherit
from Timeout::Error
Both spawn
methods return process exit code. If a process was terminated by a signal, for example
KILL or INT, the methods return negative number identical to a signal number (-9 for KILL, etc.)
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)FAQs
Unknown package
We found that vx-lib-spawn demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.