Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
326 views
in Technique[技术] by (71.8m points)

objective c - On macOS Cocoa, is there a way to capture the entire stdin and stdout and stderr of a process calling several CLI binaries?

I am reverse engineering an open source solution which is very complex although I have the entire source code. This application calls several command line utilities, and I would like to develop a good debugging strategy for my clone. Is it possible to capture the entire CLI activity of the process ? I know that I could replace the original commands with some bash script and perform the needed logging, however I am on Big Sur, which means I have a read-only file system, and it is not easy to replace the binaries. I was wondering if there is a more lab way for achieving this. Thanks for any help.

question from:https://stackoverflow.com/questions/65893111/on-macos-cocoa-is-there-a-way-to-capture-the-entire-stdin-and-stdout-and-stderr

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...