Skip to content

Watch a script on a Python script on a Linux system, if it crashes or gets terminated, then restart the process.

Notifications You must be signed in to change notification settings

x72-uk/file_watch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

file_watch

Simple script requested by a friend.

Re-execute a script when it is either terminated or crashes.

To Use

Download the files by cloning the project.

  • Make sure file_watch.sh has execute permissions chmod +x file_watch.sh
  • Make sure python3 is installed It should be already
  • Make sure the python script is executable chmod +x hello.py
  • Change hello.py with a full path to a python executable

Dev notes

  • Could add email alerts for long running processes

About

Watch a script on a Python script on a Linux system, if it crashes or gets terminated, then restart the process.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published