On Monday, June 22, 2015 at 12:21:03 PM UTC-7, 黄祥 wrote:
>
> @dave,
> do you have any suggestion for safer method in case the student tries
> something dangerous or malicious?
>
>
On Linux, chroot would help, and using a container (e.g., Docker) for the
sandbox would probably be better, but I d
@dave,
do you have any suggestion for safer method in case the student tries
something dangerous or malicious?
best regards,
stifan
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issue
On Sunday, June 21, 2015 at 10:03:04 AM UTC-7, 黄祥 wrote:
>
> i think you can use python subprocess module
> e.g. (change the *.exe file with your *.c file)
> *controlelrs/default.py*
> import subprocess
>
> def change_hostname():
> command = "applications/administrator/static/script/windows/c
Alternatively, you can use numpy to run C from python using source version
of web2py.
https://scipy-lectures.github.io/advanced/interfacing_with_c/interfacing_with_c.html
Check out numpy support 2.8.2.2
2On Sunday, June 21, 2015 at 1:03:04 PM UTC-4, 黄祥 wrote:
>
> i think you can use python subpr
i think you can use python subprocess module
e.g. (change the *.exe file with your *.c file)
*controlelrs/default.py*
import subprocess
def change_hostname():
command = "applications/administrator/static/script/windows/change
hostname.exe"
proc = subprocess.Popen(command, stdout = subproc
5 matches
Mail list logo