| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
> I have tried to following: > > NSTask *task = [[[NSTask alloc] init] autorelease]; > [task setLaunchPath:@"/System/Library/Perl/5.8.8"]; > [task setArguments:[NSArray arrayWithObject:@"-v"]]; > [task launch]; > [task waitUntilExit]; You might want to point it to an executable ;) ...not just a path and option. Depending on want you want to do NSTask might not be as easy to use as it looks on the first glance. You might want to re-use some existing wrapper. Here is one for example: http://github.com/tcurdt/feedbackreporter/tree/master/Sources/Main/FRCommand.m HTH -- Torsten _______________________________________________ Cocoa-dev mailing list (email@hidden) 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/email@hidden This email sent to email@hidden
| References: | |
| >NSTask (From: Filip van der Meeren <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.