Bash CLI to watch a file and execute commands on file update
- Download the checkmod.sh file
- Copy the checkmod.sh file and give permissions to execute
$ cp checkmod.sh /usr/bin/checkmod
$ chmod +x /usr/bin/checkmod
$ checkmod main.cpp "g++ main.cpp && eval ./a.out"
Keep watching ;)