windows:autoit:wait_for_connection
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
windows:autoit:wait_for_connection [2013/01/31 11:51] – biggi | windows:autoit:wait_for_connection [2015/08/15 22:56] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
Some Windows machine needed to start Firefox only when the internal webserver is reachable after boot (the netcard was slow to start or something, I don't remember), so I made a quick script. | Some Windows machine needed to start Firefox only when the internal webserver is reachable after boot (the netcard was slow to start or something, I don't remember), so I made a quick script. | ||
The script tries to connect, waits, retries, retries... until it gets a response. Then it starts Firefox. | The script tries to connect, waits, retries, retries... until it gets a response. Then it starts Firefox. | ||
- | <code autoit WaitForConn.au3> | + | <file autoit WaitForConn.au3> |
; Check HTTP answer | ; Check HTTP answer | ||
- | $CheckHost = "jizzdk" | + | $CheckHost = "jazzdk" |
$CheckPort = 80 | $CheckPort = 80 | ||
$ConnectedOrNot = 0 | $ConnectedOrNot = 0 | ||
Line 28: | Line 28: | ||
TCPShutdown() | TCPShutdown() | ||
WEnd | WEnd | ||
- | </code> | + | </file> |
windows/autoit/wait_for_connection.1359629517.txt.gz · Last modified: 2015/08/15 22:56 (external edit)