Research
Security News
Kill Switch Hidden in npm Packages Typosquatting Chalk and Chokidar
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
ScreenRun is a simple process management tool that allows you to keep a process running forever just by adding a single cron job. It utilizes Screen sessions to manage and monitor your processes, making it easy to start, stop, and restart them.
To install ScreenRun, run the following command:
pip install screenrun
You can use ScreenRun via the command line or in Python scripts.
# Start a new Screen session with the given name and command
> screenrun execute --name nap sleep 60
# List all running Screen sessions
> screenrun list
nap
# Kill a running Screen session by its name
> screenrun kill --name nap
# Keep a command running indefinitely using the persist option
> screenrun persist --name nap sleep 60
# Start a command in a Screen session if it's not already running
> screenrun persist --name nap sleep 60
To ensure your command keeps running, add the following line to your cron configuration:
* * * * * screenrun cron sleep 60
You can also use ScreenRun in your Python scripts:
from screenrun import ScreenRun
screenrun = ScreenRun()
screenrun.execute('sleep 60')
On macOS, the default version of "Screen" is outdated. For ScreenRun to work properly, you need to install the latest GNU version of Screen. You can do this using Homebrew:
brew install screen
Please note that this requires Homebrew to be installed on your system. If you don't have Homebrew installed, follow the installation instructions before running the above command.
Creative Commons Zero v1.0 Universal
FAQs
Simple process management. Keep a process running in a screen session forever.
We found that screenrun demonstrated a healthy version release cadence and project activity because the last version was released less than 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.
Research
Security News
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.