Ask your own question, for FREE!
MIT 6.00 Intro Computer Science (OCW) 13 Online
OpenStudy (anonymous):

Can we Compile C Program using python program? My requirement is when my customer submits C program online it is to be compiled and executed on server side, result or errors are to be sent back to the customer

OpenStudy (rsmith6559):

It could be done with the os or subprocess modules. Executing user supplied code on your server, IMO, is a bad idea. The closest thing to a "safe" environment for doing that would be a VM, and I'd expect that to crash a lot.

OpenStudy (anonymous):

import os os.system("javac *.java")

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!