Skip to main content

Reload command on file changed

Project description

=========
reloadcmd
=========

Re-executes program when files are changed, moved or deleted

Usage
=====
usage: monitor [-h] [-d DEBUG] [-p PATH] [-e [FILE_EXT [FILE_EXT ...]]] -c
COMMAND

Restarts process when any files / directory changes

optional arguments:
-h, --help show this help message and exit
-d DEBUG, --debug DEBUG
Debug mode
-p PATH, --path PATH Which directory to watch for changes
-e [FILE_EXT [FILE_EXT ...]], --extension [FILE_EXT [FILE_EXT ...]]
Which file extensions to listen for
-c COMMAND, --command COMMAND
Command to be executed

``$ reloadcmd --command "while [ 1 -eq 1 ]; do echo 2; sleep 1; done"``

Dependencies
============
* `watchdog <https://pypi.python.org/pypi/watchdog>`
* `coloredlogs <https://pypi.python.org/pypi/coloredlogs>`

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for reloadcmd, version 0.9.0
Filename, size File type Python version Upload date Hashes
Filename, size reloadcmd-0.9.0-py2.7.egg (7.7 kB) File type Egg Python version 2.7 Upload date Hashes View
Filename, size reloadcmd-0.9.0-py2.py3-none-any.whl (5.9 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size reloadcmd-0.9.0.tar.gz (2.5 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page