Re: Calling a Command line tool from an application
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com On Tue, 12 Apr 2005 16:40:20 -0600 Kevin Harris <kharris@vintela.com> wrote:
In any case, the man pages for fork(2), pipe(2), close(2), dup2(2), exec(3), and wait(2) should all come in handy. For twiddling the close-on-exec behavior, the fcntl(2) man page (F_GETFD and F_SETFD) will
Actually I think it would be easier to use forkpty. That is also the only way to ensure the program will behave as it would on the commandline. It's also the only way to run something that requires interactive control. Mike -- IRC - where men are men, women are men, and the boys are FBI agents. _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... This email sent to site_archiver@lists.apple.com
participants (1)
-
Michael B Allen