Is there anyone who knows how I can create a terminal 'object' inside an xCode application?
I can execute an terminal command using NSTask, with /bin/sh as launchPath.
This is working fine.. But.. I'd like to keep that 'session' open.
For example... open a telnet connection, read the outcome, and afterwards depending on the action of a user I'd like to start sending commands to the 'session'
I want to use it to open up a thirdparty CLI tool which opens a sort off 'session' like telnet, and need to put in several commands.
To prevent user faults, I'd like to do this from xCode so the whole CLI is hidden
I can execute an terminal command using NSTask, with /bin/sh as launchPath.
This is working fine.. But.. I'd like to keep that 'session' open.
For example... open a telnet connection, read the outcome, and afterwards depending on the action of a user I'd like to start sending commands to the 'session'
I want to use it to open up a thirdparty CLI tool which opens a sort off 'session' like telnet, and need to put in several commands.
To prevent user faults, I'd like to do this from xCode so the whole CLI is hidden