Running python script to launch terminal command (MIPS code)

Re: Running python script to launch terminal command (MIPS code)

de către Asset Berdibek-
Număr de răspunsuri: 2
With that, I got rid of the "Segmentation fault" mistake, but oddly, the server is giving me java usage error, saying I'm not using some of options correctly and returns a code 1.

command = ["java", "-Xss512k", "-Xmx64m", "-XX:CompressedClassSpaceSize=32m", "-Xrs", "-XX:ActiveProcessorCount=1", "-jar", "Mars4_5.jar","nc", "test.asm"]

Admin notified me that the server is using jdk 11, so I asked the admin to run this command on the server and it worked. So, I'm still foggy about the problem here. I attached the Mars4_5.jar file to the "Support files" section, I rechecked and rewrote the command, but still.
Ca răspuns la Asset Berdibek

Re: Running python script to launch terminal command (MIPS code)

de către Richard Lobb-
Have you experimented to see which options are proving problematic?
Ca răspuns la Richard Lobb

Re: Running python script to launch terminal command (MIPS code)

de către Asset Berdibek-
I removed the "shell=True" option from the subprocess.run method, and it worked. Even the input on mars code is working.
Thank you so much for your help!