Hello, I am a objective-c newbe and am wondering how to run a shell script in objective-c easiest way possible. I don't care about any of the output. I have tried system(), exec() and execl() and an NSTask. Those methods don't work for some reason... This is the shell script I am trying to run:
"mount_webdav http://idisk.mac.com/idisk_username/ /Volumes/idisk_username"
(Basically mounting my iDisk). Also, no password-boxes or any indication of it working shows. It will work in applescript, and I have created the mount-point directory. None of the methods above do anything at all, or crash the application for some weird reason.