Linux – How to bring a daemon process to foreground

linux

I have a python server running as a daemon on Debian 4.1. I want to view its stdout, so I thought I should bring it to foreground somehow. How can I do that?

Best Answer

If you daemon running in the background and don't have any option to be run in the foreground or to log in a file, I really don't think that it will write something on stdout (that wouldn't be nice).
If it really do that, I would suggestion to launch it with a redirection to a log file like:

mydaemon > /var/log/mydaemonlogfile