Skip to content

Instantly share code, notes, and snippets.

@spacetime
Last active December 11, 2015 14:59
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save spacetime/4618037 to your computer and use it in GitHub Desktop.
Save spacetime/4618037 to your computer and use it in GitHub Desktop.
Simple loop to login every seven minutes. This one tested on Mac OSX. Revision 2 on Linux.
#!/bin/bash
while true
do
curl -d "mode=191&username=UUUU&password=PPPPPP" http://172.10.1.2:8090/httpclient.html -o /dev/null
sleep $[7*60];
done
@spacetime
Copy link
Author

Replace UUUUU with username. PPPPP with password.

@R4CHI7
Copy link

R4CHI7 commented Jan 24, 2013

thanks! that may prove to be very helpful :)

@vishurockssrivastava
Copy link

Whoa!! Thanks a lot for this!! Gonna try this the first thing tomorrow morning...

@vinayak-mehta
Copy link

Nice!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment