how can I redirect the messages sent from kernel to a user app's stdin?
I have an application that prints to a log what it gets from its stdin. I would like this application to also print to log messages the kernel creates(I.e. the same messages displayed by dmesg app).
How can I do it?
In other words, can I redirect the kernel messages (I.e. sent using printk) to an application's stdin pipe?