Problem
sets are precreated using l2hPrecreateSet.pl, located in the scripts
directory of system. To run it, go to your course's template directory
and use the following command: "nice
/ww/webwork/system/scripts/l2hPrecreateSet.pl course_name setFile.def
>& setFile.log &" (you can always see the syntax of a script
by running the script with no parameters). The nice command runs the
process at a low priority. The log file, "setFile.log", will be placed
in the templates directory. This process will take a while to run.
Running "tail -f setFile.log" will show what is happening. Running
"tail setFile.log" after the process concludes should show something
like
In for key = 93554 .... i = 15
In for key = 93554 .... i = 16
In for key = 93554 .... i = 17
In for key = 93554 .... i = 18
In for key = 93554 .... i = 19
In for key = 93554 .... i = 20
This took 221.016666666666666667 minutes to precreate
/ww/webwork/system/courses/course_name/templates/setFile.def
You can figure on it taking 5 seconds per student per problem (a long time for a 300 student course).
If the process fails to complete, some cleanup will need to be done.
Specifically, in the temp directory for your course, under l2h, will be
a directory for that problem set. Under that will be a list of
directories, one for each student. These will need to be removed.
Finally, the script l2hPrecreateProb.pl is obsolete.
<| Post or View Comments |> |