Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/marcusbuffett/simplewatch
An extremely simple file watcher, run a command when file is modified
https://github.com/marcusbuffett/simplewatch
Last synced: 25 days ago
JSON representation
An extremely simple file watcher, run a command when file is modified
- Host: GitHub
- URL: https://github.com/marcusbuffett/simplewatch
- Owner: marcusbuffett
- Created: 2015-03-23T18:35:42.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-03-23T20:26:55.000Z (almost 10 years ago)
- Last Synced: 2024-05-01T13:08:27.718Z (8 months ago)
- Language: Python
- Size: 129 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# simpleWatch
An extremely simple file watcher, run a command when a file or directory is modified##Usage
Usage is straight-forward and quick.Execute a binary file whenever it is changed :
swatch "./theFile" theFile
Restart your node server when app.js is changed :
swatch "node app.js" app.js
Run make when a file is changed :
swatch "make" someFile.cpp
You can specify more than one file :
swatch "echo something happened" file1.cpp file2.py file3.hs file4.js file5.c etc.etc
Or use glob patterns :
swatch "clear; ./fizzBuzz 32" *.cpp
Or directories :
swatch "echo current directory modified" .
##Installation
Installation is easy, run the following command and simpleWatch will be installed on your system :pip install simpleWatch
Note : simpleWatch was written in Python3, will not work for 2.x