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 183 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 ExchangeStack Internal
Knowledge at work
Bring the best of human thought and AI automation together at your work.
Explore Stack InternalI 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>.screento run the process andscreen -xto also connect to the screen or just reconnect to it normally.