diff options
| author | Cassio de Campos <cassiopc@gmail.com> | 2017-08-18 16:01:01 +0000 |
|---|---|---|
| committer | Cassio de Campos <cassiopc@gmail.com> | 2017-08-18 16:01:01 +0000 |
| commit | de14949998f966722aa900b09e392999aebe0ea8 (patch) | |
| tree | 8c4be6f08ea81e1966c1012aa4bf13091ac4a04e | |
| parent | dc7f29fec79f559ea840022b682567b9fcb2be17 (diff) | |
| download | boca-de14949998f966722aa900b09e392999aebe0ea8.tar.gz boca-de14949998f966722aa900b09e392999aebe0ea8.zip | |
get user from local file
| -rwxr-xr-x | tools/boca-auth-runs | 2 | ||||
| -rw-r--r-- | tools/boca-outmanage | 7 |
2 files changed, 7 insertions, 2 deletions
diff --git a/tools/boca-auth-runs b/tools/boca-auth-runs index 00549b3..3155b90 100755 --- a/tools/boca-auth-runs +++ b/tools/boca-auth-runs @@ -66,6 +66,8 @@ if [ "$?" == "0" ]; then rm -f ${temp}.cookie.txt echo "" echo "authentication successful" + mkdir -p /root/submissions + echo -n $user > /root/submissions/user else echo "" echo "could not connect to server" diff --git a/tools/boca-outmanage b/tools/boca-outmanage index 054ecb7..58c8cfe 100644 --- a/tools/boca-outmanage +++ b/tools/boca-outmanage @@ -7,8 +7,11 @@ fi user="$1" if [ "$user" == "" ]; then - echo "parameter user missing. Usage: $0 <user> [<optional-server-address>] [<force-redo>]" - exit 1 + user=`cat /root/submissions/user 2>/dev/null` + if [ "$user" == "" ]; then + echo "parameter user missing. Usage: $0 <user> [<optional-server-address>] [<force-redo>]" + exit 1 + fi fi if [ "$2" != "" ]; then BOCASERVER=$2 |