Skip to content

Watches file(s) for modification and re-executes the given command.

License

Notifications You must be signed in to change notification settings

px86/nights-watch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Night’s Watch - watch files for modifications

About

nwatch accepts file names and a command. It repeatedly checks the files for modifications and re-executes the given command.

Compilation

make

Usage

For example, let’s say that you have two files named, index.html and style.css, and you want to restart the web server, every-time you modify any of the files.

nwatch index.html css/style.css -- python3 -m http.server

Notes

  • Works only on UNIX like platforms.
  • Currently the given command is launched using exec calls, so do not expect shell like behavior, e.g. & and file globing etc. However, it may be supported in the near future.

About

Watches file(s) for modification and re-executes the given command.

Topics

Resources

License

Stars

Watchers

Forks