Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

If things are printed on top of each other, try script?

https://man.freebsd.org/cgi/man.cgi?query=script&apropos=0&s...

But, if you're getting console debugs from the kernel, that wouldn't be captured either... Otoh, debug output from the kernel should also go into logs or dmesg or something?

You'll capture everything and maybe be able to figure it out from there?





Thanks for the input! Sounds promising. I've to admit, 'script' doesn't say anything to me yet. I've to look into it.

About the logs, yes, I have yet to dive into that. The _everything_ part makes it very tedious, so I had hoped for another solution :)


If script doesn't work, you could maybe try starting everything from within GNU screen or tmux with logging turned on?

These methods would fetch Sway error messages, but nothing else, no? This is not about Sway messages.

oh, one more thing... your pipeline is only capturing stdout; errors often get logged to stderr ... script (or screen/tmux logging) will capture both though.

Thanks for the notice! Embarrassing rookie mistake ;)



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: