I have a process running and I would like to know what it prints to stdout and stderr. On linux I would do
tail -f /proc/<pid>/fd/1
How do I do this on macOS?
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.
Sign up to join this communityI have a process running and I would like to know what it prints to stdout and stderr. On linux I would do
tail -f /proc/<pid>/fd/1
How do I do this on macOS?
tail -f <the file>
.screen
to run the process andscreen -x
to also connect to the screen or just reconnect to it normally.