PDA

View Full Version : [ubuntu] Run curl POST action at boot



caseyfw
November 25th, 2011, 05:28 AM
Hi, just wondering if anyone can offer guidance on the best way to initiate a cURL action at boot.

My ubuntu box sits behind an invisible proxy that requires authentication. I can achieve this by POSTing the login form using cURL:

$ curl -d "username=foo&password=bar" "http://dastardly.control.local:4080/internal/dologin.php"

What is the best strategy to have this action occur at boot? It seems overkill to make an upstart script, because it's not a service, just a "do-once" kind of thing.