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?
Linux – How to bring a daemon process to foreground
linux
Related Topic
- Linux – Check Environment Variables of a Running Process on Unix
- Linux – How to run a server on port 80 as a normal user on Linux
- Linux Web Server – Proper Permissions for Website Files and Folders
- Linux Cron – Why is My Crontab Not Working and How to Troubleshoot
- Linux – How to set default console background/foreground colors
- Linux – Samba fails to mount as daemon (NT_STATUS_BAD_NETWORK_NAME). Fine in foreground
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: