0

I am running a simple C program that takes inputs from user from the console and does required operation. So I would want to automate the process.Rather than the user feeding the input,is there a way where a python script can call these values(user feed) from a list and help run the C program.

4
  • 1
    Have you tried anything?? Commented Sep 3, 2015 at 7:02
  • 1
    Yes there are ways to run external programs from a Python script, and write to them like a file to write to the externals standard input, and read from its standard output. Read about the subprocess module. Commented Sep 3, 2015 at 7:08
  • 1
    possible duplicate of Executing a C script in python? Commented Sep 3, 2015 at 8:02
  • I haven't tried,because I do not know how to approach the problem.I will surely go through the subprocess module.Thank you all.Any more ideas are most welcome. Commented Sep 3, 2015 at 8:11

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.