Skip to content

Dinduks/change-execute-loop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 

Repository files navigation

What is it?

change-execute-loop is a minimal shell script that runs a specific command (or several commands) whenever a given file or directory changes.

This program aims to be as simple as possible, and independent from any other software, may it be an OS or a tool (such as inotify).

Installation

Simply get the cel executable and add it to your path.

For example:

curl https://raw.githubusercontent.com/Dinduks/change-execute-loop/master/cel > ~/apps/cel
ln -s ~/apps/cel /usr/local/bin

Use

cel foo.c "gcc foo.c && ./a.out"
cel . cat file.txt

Notice using double quotes in the first example; without them, only gcc foo.c will be executed.

About

A minimal shell script that executes a given command each time a specified file or directory changes

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages