Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
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

This comment has been minimized.

Show comment Hide comment
@spacetime

spacetime Jan 24, 2013

Replace UUUUU with username. PPPPP with password.

Owner

spacetime commented Jan 24, 2013

Replace UUUUU with username. PPPPP with password.

@R4CHI7

This comment has been minimized.

Show comment Hide comment
@R4CHI7

R4CHI7 Jan 24, 2013

thanks! that may prove to be very helpful :)

R4CHI7 commented Jan 24, 2013

thanks! that may prove to be very helpful :)

@vishurockssrivastava

This comment has been minimized.

Show comment Hide comment
@vishurockssrivastava

vishurockssrivastava Mar 5, 2013

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

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

@vinayak-mehta

This comment has been minimized.

Show comment Hide comment
@vinayak-mehta

vinayak-mehta Aug 7, 2013

Nice!

Nice!

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