Created
November 15, 2014 10:06
-
-
Save jagland/ea7599e1032f454bf9d5 to your computer and use it in GitHub Desktop.
Timeware Swipe
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Handy script for submitting swipes to the timeware system. | |
# Once wrapped it with Zenity so that I could be prompted to swipe on login to my PC | |
# If you were deceitful you could use cron - Don't hold me responsible if you get sacked! | |
TMPFILE=`mktemp` | |
curl -b $TMPFILE -c $TMPFILE --data "txtUserName=username&txtPassword=password&cmdLogIn=Log%20In" -i http://timeware/log_in.html | |
curl -b $TMPFILE -c $TMPFILE --data "cmdSubmit=Submit%20Booking" -i http://timeware/attendance_booking.html | |
rm $TMPFILE |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment