Printing in a background process

A similar topic was already discussed here: