Security News
CISA Brings KEV Data to GitHub
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.
subcomandante
Advanced tools
Morir fue lo unico que el subcomandante hizo sin su comandante.
This module is a companion to comandante. It is meant to solve the problem of child processes which must die along with their parents in node, which often leaves children hanging.
subcomandante
works just like comandante
:
// comandante
var run = require('comandante')
run(['tail', '-f', '/dev/null']) // will wait forever.
process.exit(0)
// subcomandante
var run = require('subcomandante')
run(['tail', '-f', '/dev/null']) // will exit with parent.
process.exit(0)
opts.waitPid
Pass in a pid
with opts.waitPid
to wait on that process, instead of the current process (process.pid
).
run(['nc', '-l', '1234'], {waitPid: 1919})
subcom
binary> subcom
usage: subcom <pid> <cmd>...
run <cmd> until <pid> exits.
The subcom
binary is very simple-- it runs a child process until process with given <pid>
exits. It forwards all io, and exits with the same error code as the child. It will also employ brute strength (kill -9
) if the child refuses to exit gracefully.
FAQs
run a command but wait on the parent
We found that subcomandante demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers 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
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.
Security News
Opengrep forks Semgrep to preserve open source SAST in response to controversial licensing changes.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.