Jump to content
  • Advertisement
Sign in to follow this  
johnstanp

Calling command line functions within a c++ file

This topic is 3076 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Actually, I want to use the qhull library. Normally, I would give it an input file and it would output the convex hull data in another file. I can do the whole operation in a command window (in Unix, Linux) but I want to automate it. There must certainly exists a way to write a script for that, but I want to write a function that would do it, in C++. Can somebody tell me how to do it?

P.S: I've already done that long before, but I can't remember how I've achieved it.

[Edited by - johnstanp on July 12, 2010 8:11:22 AM]

Share this post


Link to post
Share on other sites
Advertisement
Or perhaps you mean the fork & execve (or one of its wrapper) functions. But that is lowest level stuff.

Share this post


Link to post
Share on other sites
Thanks Windryder. Now I recall: I used the system() function.
Thanks too, Haegarr. I'll see after implementing what I want with the system() function how I can do it with fork and execv.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!