Skip to content

Commit ac0b8ec

Browse files
committed
add more logging to grades.sh
1 parent 692b7e3 commit ac0b8ec

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

grades-docker/grades.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,11 @@
33
echo $PASSWORD | openconnect -b --user=$VPNUSERNAME --authgroup=$AUTHGROUP --passwd-on-stdin $HOST
44
echo "$(date +"%b %d %H:%M:%S") $HOSTNAME grades.sh[$$]: Started openconnect in background."
55

6+
echo "$(date +"%b %d %H:%M:%S") $HOSTNAME grades.sh[$$]: Getting grades from Campusnet."
67
python3 -m campusnet $USERNAME $PASSWORD -o table > /tmp/grades.txt
78
if [ ! -s grades.txt ]; then
89
mv /tmp/grades.txt grades.txt
10+
echo "$(date +"%b %d %H:%M:%S") $HOSTNAME grades.sh[$$]: First run, created grades.txt."
911
exit 0
1012
fi
1113
/usr/bin/diff grades.txt /tmp/grades.txt > /tmp/diff.txt

0 commit comments

Comments
 (0)