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?
Stack Exchange network consists of 181 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.Visit Stack Exchange
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 community
tail -f <the file>.
screento run the process and
screen -xto also connect to the screen or just reconnect to it normally.