-
Notifications
You must be signed in to change notification settings - Fork 98
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
Is it possible to use -r
with an interactive task?
#1
Comments
Is the command you would like to run well-known, or is it proprietary? I would be helpful to see an example, since the solution is probably dependant on specific behaviors of the utility you're running. |
It's an open-source command called fly. When I run |
Looking at https://github.com/concourse/concourse/blob/master/fly/commands/set_pipeline.go it seems that
If this doesn't work, we could run the command in a disconnected tmux session, but that would be a nussance. |
It works as expected when run without |
I am aware of |
Try running this:
You should see the process state |
Thanks -- I understand the part about how running it in the background works. My question is more about why it works when I run |
There are a couple things going on: without With The second sticking point is that in restart mode entr needs signals to propagate. This mechanism is used to make the child the leader of it's own process group
Now when entr sends SIGTERM the utility and all of it's subprocess receive the signal. But setting a new process group is also what prevents the child from reading STDIN. If it does, the kernel will suspend it. Finding your process in the |
Got it -- thank you for taking the time to explain. It does sound like this would not work the way I'm imagining. I guess I'll just deal with having to confirm every time for now. Great utility, btw -- I've found it to be flexible and useful for a wide variety of use cases. |
Thanks for the kind words @jaresty! After working through this ticket I realized how difficult it is to see why the |
Thanks -- I read through the new docs section and it makes sense. |
Does that mean it's impossible to have If This project is great and interactive usage is the only thing that isn't achievable at the moment. Even then, it's too handy. Thank you anyway |
I'd like to use
entr
to run a command that is interactive. If I don't say 'yes' to the command though, it holds the terminal and so it doesn't re-run unless I interact with that pane. It would be nice to be able to haveentr
kill the command on updates but still allow me to say 'yes' when I'm ready to let the command apply changes.The text was updated successfully, but these errors were encountered: