Skip to content

Instantly share code, notes, and snippets.

@jagland
Created November 15, 2014 10:06
Show Gist options
  • Save jagland/ea7599e1032f454bf9d5 to your computer and use it in GitHub Desktop.
Save jagland/ea7599e1032f454bf9d5 to your computer and use it in GitHub Desktop.
Timeware Swipe
#!/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