Ask your own question, for FREE!
MIT 6.00 Intro Computer Science (OCW) 9 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!
Latest Questions
Arriyanalol: i need help
2 days ago 7 Replies 1 Medal
Arriyanalol: CONGRATS to me
2 days ago 8 Replies 2 Medals
Legomaster346: What colleges are good that are near Arab Alabama?
1 week ago 5 Replies 0 Medals
Arriyanalol: i need help
1 week ago 6 Replies 2 Medals
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!