diff options
| author | cassio <cassiopc@gmail.com> | 2015-08-10 01:11:10 +0000 |
|---|---|---|
| committer | cassio <cassiopc@gmail.com> | 2015-08-10 01:11:10 +0000 |
| commit | 0ec22acb9a0b7700eb9b8577d57cc26aee69ac03 (patch) | |
| tree | 5626985ff997e376ae498ec424e166f7393e6eb4 /tools/boca-submit-run-root | |
| parent | e80e0bbdb0b44f95caf6ee69456a05f1c4da65c3 (diff) | |
| download | boca-0ec22acb9a0b7700eb9b8577d57cc26aee69ac03.tar.gz boca-0ec22acb9a0b7700eb9b8577d57cc26aee69ac03.zip | |
scripts to submit, still to complete
Diffstat (limited to 'tools/boca-submit-run-root')
| -rw-r--r-- | tools/boca-submit-run-root | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tools/boca-submit-run-root b/tools/boca-submit-run-root new file mode 100644 index 0000000..77b4ff9 --- /dev/null +++ b/tools/boca-submit-run-root @@ -0,0 +1,10 @@ +#!/bin/bash + +if [ "$1" != "" ]; then + mkdir -p /root/submissions + chown root /root/submissions + chmod 700 /root/submissions + cp "$1" /root/submissions + echo "date=`date +%s`" >> "/root/submissions/$1" + echo "code=`cat /root/submissions/code`" >> "/root/submissions/$1" +fi |