On Thu, 7 Jan 2016 21:20:17 -0500
Greg Reagle <[email protected]> wrote:

> I simplified the two separate commands into one command:
>   echo address.yaml | entr -r sh -c 'make address.pdf && mupdf address.pdf'
> 
> and like I mentioned it is very automatic and very convenient.  Whenever I
> save changes with my text editor (to address.yaml) a new up-to-date mupdf
> view pops up.

You could also send mupdf a SIGHUP signal to tell it to reload, instead of 
spawning a new mupdf:

  mupdf address.pdf & pid="$!"
  echo address.yaml | entr sh -c "make address.pdf && kill -HUP $pid"

Reply via email to