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>?