Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/iamfirecracker/onchange
Bash script enabling users to execute programs on changes on the current directory
https://github.com/iamfirecracker/onchange
Last synced: 13 days ago
JSON representation
Bash script enabling users to execute programs on changes on the current directory
- Host: GitHub
- URL: https://github.com/iamfirecracker/onchange
- Owner: iamFIREcracker
- Created: 2011-11-15T09:23:58.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2012-01-03T10:20:18.000Z (almost 13 years ago)
- Last Synced: 2023-03-10T23:52:45.881Z (almost 2 years ago)
- Language: Shell
- Homepage:
- Size: 93.8 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
Awesome Lists containing this project
README
onchange
########onchange is a simple shell script (written in bash) which enables users to
listen on changes on the current directory and eventually execute commands as
soon as such events are received.Dependencies
============The script works both on Linux and FreeBSD systems (I don't have a Mac to test
on it) but has a couple of dependencies:* ``inotifywait`` on Linux
* ``wait_on`` on FreeBSDCheck whether the right dependency is already installed on your system before
launching the script.Install
=======Once you have ``onchange`` script downloaded and placed somewhere handy, you
can call it directly::bash /path/of/onchange/onchange.sh ...
or even better, you can create an alias for it::
alias oc="bash ~/workspace/onchange/onchange.sh"
Examples
========If you are writing a Latex document, and you want to automatically create the
dvi/pdf output each time you save the source document, you can just run::cd /path/of/your/precious/article
oc gmakeIf you want to launch the testsuite of your project each time you edit a file
in order to check if the lastest modifications broke something::cd /path/of/your/project
oc command-to-launch-the-testsuite