How to know if javac compiled cleanly using system() in python
<p>In python, how can I tell if a certain system() call is successful? In the program I am writing I need to know if a java program compiled correctly using javac, which is called using system() (in the python program). So I need to know if javac threw any exceptions, if there were any syntax problems with the java program, any problems at all at compile time for the java program. Essentially, the program asks the user for a dir, then asks for the java program name, then asks if it takes any arguments, then it compiles it with system('javac ' + str(javaFile) + '.java').</p>
