I am tring to run a Python code in PyPy sandbox. I need to get output from the script which doesn't interfere with the stdout.
I've read a lot of sources and most of them mentions, that sanboxed script can write files to virtual /tmp. However I am not able to achieve that (all the sources are missing example).
If the write access to /tmp isn't possible, is it possible to open pipe between the sanboxed script and the control script?
If none of this is possible, could I write binary data to stdout? I'd like to tag the begginning and the ending of the output in stdout, so the control script could distinguish what is user output and what is my output.