User Tools

Site Tools


windows:autoit:wait_for_connection

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
windows:autoit:wait_for_connection [2013/11/28 09:06] biggiwindows: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 - 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.1385625988.txt.gz · Last modified: 2015/08/15 22:56 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki