Run a program using perl or C ++

I am looking for a way to evaluate C ++ programs.

I want to be able to run numerous programs that will have a standard input / output path, so each program will be needed to output and enter information at the appropriate time.

What is the best way to do this? I saw some people say that they are writing a C ++ program that calls fork (), but my question about this is how do you interact with the same input and output screen? (in other words, once you redo this process, can you submit this process input and view its output?) Will the perl script work?

If so, can you give me some lines of perl script and how it will look.

+3
source share
1

Posix popen open3, stdin stdout. ; Ruby rspec .

http://pubs.opengroup.org/onlinepubs/009604499/functions/popen.html

chroot jail!

+1

All Articles