Skip to main content

Run a command when a file is changed

Project description

when-changed

Run a command when a file is changed

~ What is it?

Tired of switching to the shell to test the changes you just made to your code? Starting to feel like a mindless drone, manually running pdflatex for the 30th time to see how your resume now looks?

Worry not, when-changed is here to help! Whenever it sees that you have changed the file, when-changed runs any command you specify.

So to generate your latex resume automatically, you can do this:

$ when-changed CV.tex pdflatex CV.tex

Sweetness!

~ What do I need?

Python 2.6+ pyinotify

~ Installation

pip install https://github.com/joh/when-changed/archive/master.zip

~ Usage

when-changed FILE COMMAND… when-changed FILE [FILE …] -c COMMAND

Project details


Download files

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

Source Distribution

when-changed-0.2.1.tar.gz (2.5 kB view details)

Uploaded Source

File details

Details for the file when-changed-0.2.1.tar.gz.

File metadata

File hashes

Hashes for when-changed-0.2.1.tar.gz
Algorithm Hash digest
SHA256 0e2e6d4ee832281fde48cc2d89e164cc7d4c6ed3fa0421af1c76234395dd5efb
MD5 d3a72d4016b7086393dcc3caed2f7277
BLAKE2b-256 041d92c858c7e3b5a6bc7d81921099093439d16885e430774473b5b929f3ac45

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page