All About Submit's Final Script Feature

Available centralized final scripts

Combining multiple scripts

Sometimes it is desirable to have multiple final scripts each perform tasks. It appears that submit only accepts one script, though, so you will need a workaround. The simplest is to create a simple script that calls each other script in sequence. So, for CS 116 for example, it should be possible to have a file /u/cs116/bin/submit_final_script with contents such as:

#!/bin/bash -p

/u/isg/bin/submit/submit_subversion_hook "$@"
/u/isg/bin/submit/submit_pub_test_hook "$@"

Then, /u/cs116/.submitrc would contain the directive:

final_script=/u/cs116/bin/submit_final_script

Do not forget to set executable permission on the local script that you're using (e.g., chmod u+x submit_final_script).

(Ab)Use as a command-line front-end to Marmoset and MarkUs

Right now, Marmoset and MarkUs have only a web frontend, which is undesirable. A goal for both systems is to have a command-line interface for students who want one. This feature would allow us to piggyback such behaviour on submit itself (and likely in a very straightforward fashion), allowing students to see a uniform command-line interface for all courses regardless of how things are being treated on the back end.

Edit | Attach | Watch | Print version | History: r6 < r5 < r4 < r3 < r2 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r6 - 2010-07-09 - TerryVaskor
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback