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

Support tailing commands #151

Open
goldbergyoni opened this issue Jul 19, 2018 · 3 comments
Open

Support tailing commands #151

goldbergyoni opened this issue Jul 19, 2018 · 3 comments

Comments

@goldbergyoni
Copy link

Great work, love this.

I run eslint and testing and npm audit and other quality tasks, and the stdout is overwhelming for one to absorb and understand the status. Could you allow tailing each command for few lines?

When I do it myself using bash - "command | tail -n 5" - then the exit code is always 0 (which is the wrong behaviour of course).

@gustavohenke
Copy link
Member

Hm, that's a great idea!

Can you please provide more input on the following questions:

  • Is the tailing global, per command, or both?
  • Do event logs, like [lint] npm run lint exited with code 0, count towards the maximum number of lines?
  • How should processes that get restarted (--allow-restart/--restart-tries) behave?

@goldbergyoni
Copy link
Author

Per command.

.Start simple, then enrich: 1st version will just output the last n lines of each process run (=each restart will show additional n lines). Then once it's ready, let's see what enhancements people are asking for

Consider a CI spin-off of your project where we constantly run quality tasks (lint, license check, test, etc) and show only meaningful notice to the developers

@milahu
Copy link

milahu commented May 8, 2021

workaround:

$ printf "a\nb\nc\nd\ne\nf"
a
b
c
d
e
f
$ printf "a\nb\nc\nd\ne\nf" | tail -n4
c
d
e
f
$ node bin/concurrently.js "bash -c \"printf \\\"a\nb\nc\nd\ne\nf\\\" | tail -n4\""
[0] c
[0] d
[0] e
fbash -c "printf \"a\nb\nc\nd\ne\nf\" | tail -n4" exited with code 0

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

No branches or pull requests

4 participants