Anyone have some example to run shell commands? and get results?
like:
ls -l
echo <password>| sudo -S <command>
I have some particular executable in my /bin folder and need to execute and wait result.
I take a look using NSTask, NSPipe, but If have some do it already......
Thanks
like:
ls -l
echo <password>| sudo -S <command>
I have some particular executable in my /bin folder and need to execute and wait result.
I take a look using NSTask, NSPipe, but If have some do it already......
Thanks