Thanks, links saved.
Then there is this method, but I guess that article refers to no redirection output.
If in background or via cron, I always redirect. But this is for UN*X type systems with a tail that supports '-f'
$ prog > /tmp/log.txt 2>&1 &
Then
$ tail -f /tmp/log.txt
Just so happens, I actually used this the other day for a long running process on OpenBSD :)
Isn't that what tee is for? Like
$ prog | tee /tmp/log.txt
Can't you just read from /proc/pid/fd/0 ?