diff options
| author | cassio <cassiopc@gmail.com> | 2015-08-10 04:33:10 +0000 |
|---|---|---|
| committer | cassio <cassiopc@gmail.com> | 2015-08-10 04:33:10 +0000 |
| commit | e9a96f5453e5675bfcc74c3c977720064575c423 (patch) | |
| tree | 673db8560854a28be427900b37a908a5a5cfb21a /tools/boca-submit-run-root | |
| parent | 0ec22acb9a0b7700eb9b8577d57cc26aee69ac03 (diff) | |
| download | boca-e9a96f5453e5675bfcc74c3c977720064575c423.tar.gz boca-e9a96f5453e5675bfcc74c3c977720064575c423.zip | |
fixes
Diffstat (limited to 'tools/boca-submit-run-root')
| -rw-r--r-- | tools/boca-submit-run-root | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/tools/boca-submit-run-root b/tools/boca-submit-run-root index 77b4ff9..a72d1db 100644 --- a/tools/boca-submit-run-root +++ b/tools/boca-submit-run-root @@ -5,6 +5,11 @@ if [ "$1" != "" ]; then 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" + echo "dateerr=`date +%s`" >> "/root/submissions/$1" + uniq=`date +%sN`-`sha256sum "$1"` + uniq=`echo $uniq | sha256sum - | cut -f1 -d' '` + code=`cat /root/submissions/code` + res=`echo -n "${code}${uniq}" | sha256sum - | cut -f1 -d' '` + echo "uniq=$uniq" >> "/root/submissions/$1" + echo "code=$res" >> "/root/submissions/$1" fi |