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

Dumping generated output so far, upon request #11

Open
farzadghanei opened this issue Mar 29, 2020 · 0 comments
Open

Dumping generated output so far, upon request #11

farzadghanei opened this issue Mar 29, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@farzadghanei
Copy link
Owner

mute captures the output until the sub command exits. For long running sub commands, it could be helpful to see the output upon request.

One request approach is to use signals. possible solutions to provide the output is stdout or a temp file (or both). So it could be that upon a signal (USR1?) mute prints the buffered output to stdout, and upon another signal (USR2?) creates a temp file whose contents are the generated output so far.

Regarding the temp file:

  • filename should be unique. Could use command name, pid, timestamp, +rand
  • consider security and file access
@farzadghanei farzadghanei changed the title Dumping output voluntierly Dumping generated output so far, upon request Mar 29, 2020
@farzadghanei farzadghanei added the enhancement New feature or request label Mar 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant