Hi,
I'm trying to expand my use of VPL to include Maple (which we installed on our local VPL server). To that end, I've created a vpl_run.sh script and a vpl_evaluate.cases file. My assignment is simply to have students submit an equation (requested file) called maple_template.mw. Its contents is simply
x:=y+1;
when I run it I see a console like this:
which is good. But when I hit the evaluation button I get this error in the comments window:
--- Program output ---
Internal error, execve fails: Exec format error
This is strange. I haven't been able to find any hints via Google searching the error and the documentation. Any suggestions would be welcome. I've defined the evaluate.cases like this:
case=Test 1
output= " x := y + 1"
output= " x := y + 1"
and my vpl_run.sh is like this:
#!/bin/bash
# This file is part of VPL for Moodle - http://vpl.dis.ulpgc.es/
# Copyright (C) 2015 onwards Juan Carlos Rodríguez-del-Pino
# License http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
# Author Juan Carlos Rodríguez-del-Pino <jcrodriguez@dis.ulpgc.es>
# @vpl_script_description
# load common script and check programs
echo "starting vpl_run.sh"
. common_script.sh
check_program maple
echo "#!/bin/bash" > vpl_execution
echo "maple -q *.mw" > vpl_execution
chmod +x vpl_execution
# This file is part of VPL for Moodle - http://vpl.dis.ulpgc.es/
# Copyright (C) 2015 onwards Juan Carlos Rodríguez-del-Pino
# License http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
# Author Juan Carlos Rodríguez-del-Pino <jcrodriguez@dis.ulpgc.es>
# @vpl_script_description
# load common script and check programs
echo "starting vpl_run.sh"
. common_script.sh
check_program maple
echo "#!/bin/bash" > vpl_execution
echo "maple -q *.mw" > vpl_execution
chmod +x vpl_execution