Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

entr process dies when a watched file is deleted #4

Closed
basti1302 opened this issue Apr 19, 2016 · 6 comments
Closed

entr process dies when a watched file is deleted #4

basti1302 opened this issue Apr 19, 2016 · 6 comments

Comments

@basti1302
Copy link
Contributor

> touch a
> touch b
> touch c
> ls a b c  | entr echo Yo

Now, in another shell, each touch a, touch b or touch c will produce a Yo, as expected, but a rm a will cause the entr process to stop with the following error message:

entr: cannot open `a': No such file or directory

I want to use entr to restart a server when the deployment artifact changes, unfortunately the build tool deletes the deployment artifact before recreating it instead of just overwriting the old artifact.

PS: Before I forget, entr is a super handy tool and has made my developer life better in many situations, thanks for writing, sharing and maintaining it! <3

@basti1302
Copy link
Contributor Author

Btw, this on entr version 3.4, on Linux Mint 17 Qiana, zsh 5.0.2 (x86_64-pc-linux-gnu), Kernel 3.13.0-85-generic

@robreiss
Copy link

It looks like the main repository is at bitbucket. I opened a simular issue if you are interested:
https://bitbucket.org/eradman/entr/issues/40/entr-process-stops-when-a-watched-file-is

@basti1302
Copy link
Contributor Author

Closing this as it is not the main repository. Thanks, @robreiss for pointing that out.

@toneboy
Copy link

toneboy commented Oct 3, 2023

@basti1302 , @robreiss I have this same issue, but the link in your post above is no longer live. What was the solution? Thanks

@robreiss
Copy link

robreiss commented Oct 3, 2023

Hi @toneboy, I haven't used entr in years. Maybe check out the issues in the main github repository for entr under eradman. It looks like there are some closed issues regarding deleted files. Good luck!

https://github.com/eradman/entr/issues?q=is%3Aissue+deleted

@toneboy
Copy link

toneboy commented Oct 4, 2023

@robreiss Thanks. But, I think the issue was actually just that I was using an old version (4.1-1) which had not been bug fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants