Top-rated recipes by Alex Khokhlov http://code.activestate.com/recipes/users/4078056/top/2007-08-27T23:57:08-07:00ActiveState Code RecipesScript checking availability of network servers (Tcl)
2007-08-27T23:57:08-07:00Alex Khokhlovhttp://code.activestate.com/recipes/users/4078056/http://code.activestate.com/recipes/528899-script-checking-availability-of-network-servers/
<p style="color: grey">
Tcl
recipe 528899
by <a href="/recipes/users/4078056/">Alex Khokhlov</a>
(<a href="/recipes/tags/sysadmin/">sysadmin</a>).
Revision 2.
</p>
<p>Script checking availability of network servers
If the server is not accessible, starts action
The necessary data are read from a text file</p>
<p>The file of the data contains lines of a kind:</p>
<p>smtp_server:25:any_executed_program:my_smtp_server
httpd_daemon:80:ps:corp_web_server</p>