Commit 34d3a657 authored by Saroj Kumar Mahato's avatar Saroj Kumar Mahato Committed by creator54
Browse files

add: stress.sh

parent 6f67ca15
#!/usr/bin/env bash
set -e
if ! command -v stress &>/dev/null; then
echo "Installing stress..."
sudo apt-get install stress -y
fi
if command -v stress &>/dev/null; then
echo "Running stress..."
stress --vm-bytes 3G --vm-keep -m 1
else
echo "Error: stress not installed and installation failed."
exit 1
fi
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment