Skip to content

bu1ka/fswatcher

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

#FSWatcher

Watching a folder and run received command if one of the files will be changed.

###Install

pip install -r requirements.txt

###How to use

fswatcher.py [-h] -c [CMD] [-d [DELAY]] [-v] path
  • path - the path that you want to watching (is required)
  • -c - the shell command for execute
  • -d - delay in seconds after which the command will be executed
  • -v - verbose output

#####Example

fswatcher.py ~/dev/mysite/ -d=2 -c="rsync -az --delete --exclude=.git /Users/username/dev/mysite dev@dev.host.com/dev/mynewsite"
or
fswatcher.py ~ -d=10 -c="ls -la ~ > snapshot.log"

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%