I have a mostly headless server running Debian with no xorg/graphical environment installed. At boot it simply shows a text-mode login prompt.
I am wondering how could I show the output of a command before any users have logged in (in the login screen of my terminal)? The command would display just like with the
watch command, updating every 2 seconds or so and need not be interactive.
NOTE: I am aware that in most scenarios, simply running an SSH session to the machine and run a
watch would be sufficient, or installing a web-server that could provide what I need in a browser would be much better. However both those are for different reasons not practical in my scenario. Also as a pure quenching of my curiosity I would like to know how the answer to this question.