Git Product home page Git Product logo

watchfile's Introduction

watchfile

This is a fork of Cameron Hayne's watchfile script (See http://hayne.net/MacDev/WatchFile/)

My primary use for the script is to watch a directory of files and run LaTeX (or, in my case rubber) anytime one of the changes. To reflect this use case, I added a -command option to the script that allows to execute an arbitrary command every time there is a change. In addition, the script output was somewhat tuned, and the default time between checks was lowered to one second.

The script now has the following usage:

watchfile [options] filename(s)

Options are:

   -command COMMAND   Run COMMAND every time there is a change"
   -interval N        Check for changes every N seconds (default: 1)
   -atime             Notify about access-time changes
   -md5               Track changes based on md5 hashes. Access-time will
                      not be reported since the file is accessed in order to
                      compute the MD5 digest
   -rsrc              Notify about resource-fork changes
   -beeb              Make a beep if there is a change
   -detailed          Include time-stamps in the change report, and output
                      of 'ls -ld' for each changed file

For example:

    watchfile -command 'rubber file.tex' *.tex *.bib images/*

watchfile's People

Contributors

goerz avatar

Stargazers

 avatar

Watchers

 avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.