either popen()/pclose() or pipe()/fork()/dup2()/exec() the first choice is easier but has more security risks and less functionality. the second choice is more secure and more functional but requires a bit more code/understanding. you can look up the functions in there respective manual pages.
|