Read console text from background application in Linux -


i creating application kick off on standard runlevel , run forever. produce console output i'd able read selectively. there "correct" way in *nix?

to clear, app kick off background task. want know if after has started, "attach" , read current messages being written console application. don't need history, debugging.

the obvious way redirect output of background task log file when start it, , use tailf on when want access it.

some_task > logfile &  tailf logfile 

the tailf command let follow being written of log file.


Comments

Popular posts from this blog

php - Submit Form Data without Reloading page -

linux - Rails running on virtual machine in Windows -