I have a process running on a Linux machine that I would like to access the output from. It's in it's own container that I'm using docker exec
to su
into. With ps
I can see:
UID PID PPID C STIME TTY TIME CMD
root 1 0 0 18:45 ? 00:00:00 python ./manage.py runserver
I thought I could do this with
fg 1
but that did not work. How can I capture the output of this already running process?
ls -l /prod/1/fd
, but it's entirely likely these will be bound to/dev/null
, in which case the output is, put simply, gone.python
be PID 1 anyhow?docker exec
tosu
into.