Skip to content

GirishCodeAlchemy/useful-scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Useful Scripts

Useful Scripts

Cronjob

  • Error Log Detection: Set up a cronjob to monitor the error.log file for occurrences of "error" and receive email notifications.

Bash Scripts

  • Monitor Server Ports and Alert: Continuously monitors server ports. Sends email notifications if any new listening ports are detected.

    <iframe src="./BashScript/monitor-server-ports-and-notify.txt" frameborder="0" width="100%" height="400"></iframe>
  • Prompt Folder Path and Download Package: Prompts for a folder path. Indicates folder existence and creates the folder if it doesn't exist. Downloads and installs a package in the newly created folder.

    <iframe src="./BashScript/prompt-folder-path-and-download-package.txt" frameborder="0" width="100%" height="400"></iframe>
  • Restart Server: Shell script to monitor a process (e.g., Tomcat) every minute. If the process stops, it should restart; otherwise, it exits.

    <iframe src="./BashScript/restart-server.txt" frameborder="0" width="100%" height="400"></iframe>
  • Docker Restart: Shell script to monitor Docker containers. If the containers exit, they should restart automatically.

    <iframe src="./BashScript/docker-container-restart.txt" frameborder="0" width="100%" height="400"></iframe>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published