Skip to content

feat: complete bash automation toolkit#188

Open
mail2sunday1 wants to merge 1 commit intots-academy:mainfrom
mail2sunday1:feature/mail2sunday1
Open

feat: complete bash automation toolkit#188
mail2sunday1 wants to merge 1 commit intots-academy:mainfrom
mail2sunday1:feature/mail2sunday1

Conversation

@mail2sunday1
Copy link
Copy Markdown

Overview

This PR implements a Bash-based automation toolkit covering core DevOps fundamentals.

Features Implemented

user_info.sh

  • Prompts for name, age, and country
  • Validates numeric age input
  • Categorizes user (Minor, Adult, Senior)
  • Logs output to logs/user_info.log

system_check.sh

  • Displays disk, memory, and CPU usage
  • Warns if disk usage exceeds 80%
  • Counts running processes
  • Shows top 5 memory-consuming processes
  • Logs report to logs/system_report_.log

file_manager.sh

  • Supports create, delete, list, rename
  • Prevents overwriting existing files
  • Logs all actions to logs/file_manager.log

backup.sh

  • Validates directory input
  • Creates compressed backups
  • Stores backups in backups/
  • Keeps only last 5 backups
  • Logs backup activity

process_monitor.sh (Bonus)

  • Checks if a process is running
  • Simulates restart if not running
  • Uses predefined services array
  • Logs monitoring results

run_all.sh (Bonus)

  • Interactive menu system
  • Runs all scripts or selected tasks
  • Includes error handling (set -euo pipefail)
  • Logs actions to logs/app.log

Notes

  • Scripts are executable and tested
  • Logs and backups are generated during execution

Copy link
Copy Markdown
Author

@mail2sunday1 mail2sunday1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, thank you for reviewing my submission.

All scripts have been implemented and tested based on the assignment requirements.
I’m open to any feedback or improvements.

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant