How to Handle Command Line Prompt from a Cocoa App

93 views Asked by At

I am successfully running a command with code from this answer. It works just as advertised, only problem is that I am running a command that waits for user input in the command line. However, I want my Cocoa app to be able to enter the input to allow for the execution to continue. How do I go about doing this?

The command I am running is ln -s -i <path 1> <path 2> which displays the following prompt when <path 2> already exists: replace <path 2>/<path 1>?

0

There are 0 answers