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

Show command output for colmena exec. #217

Open
kevincox opened this issue Jul 8, 2024 · 2 comments
Open

Show command output for colmena exec. #217

kevincox opened this issue Jul 8, 2024 · 2 comments

Comments

@kevincox
Copy link

kevincox commented Jul 8, 2024

It is often useful to use colmena exec to quickly gather or check information on servers. Especially since you can filter by tag.

One relatively silly example:

colmena exec -- cat /etc/lsb-release

It would be great if the output was shown, and indicated which host it came from.

It may make sense to have two modes. A streaming mode where lines are prefixed with the host, and a batched mode where output is buffered until the command completes then each host is printed contiguously. (Like GNU parallel)

@bjornfor
Copy link
Contributor

bjornfor commented Jul 9, 2024

Have you tried the --verbose option? https://colmena.cli.rs/unstable/reference/cli.html#colmena-exec

It's not exactly/all you ask for, but does show the command output.

@kevincox
Copy link
Author

kevincox commented Jul 9, 2024

I don't know how I missed that. Apparently I read the help too fast. This solves 95% of the problem. A batching mode would be nice but doesn't seem critical.

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

2 participants