This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# A simple script to check if a process is running and if it is will | |
# kill and restart the process | |
# Modified from example provided at: | |
# https://www.m00nie.com/2011/12/script-to-check-if-a-process-is-running-and-if-not-start-it/ | |
################################################ | |
# The name of the program to check | |
PROGRAM=locate-pointer | |
################################################ |