On May 18, 2010, at 12:33 PM, appledev wrote: > I dont want to use a call to a bash script, because of sneaking in bad > commands.
As others said, it’s not a problem here because the command line is entirely hardcoded. If you wanted to avoid using a shell, you’d have to start three separate NSTasks for the three commands (df, grep, awk) and hook the output pipe of one to the input of the next. I’m not sure how to do that. Of course, you could skip the grep and awk tasks and do the job yourself — looks like you’re just matching against a string, breaking the lines into pieces and then formatting the result. Probably three or four lines of Obj-C. —Jens_______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com