
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-6HVJLXZZKD"></script>
<script>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());

  gtag('config', 'G-6HVJLXZZKD');
</script>
<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://kb.thinmanager.com/index.php?action=history&amp;feed=atom&amp;title=Watchdog</id>
	<title>Watchdog - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://kb.thinmanager.com/index.php?action=history&amp;feed=atom&amp;title=Watchdog"/>
	<link rel="alternate" type="text/html" href="https://kb.thinmanager.com/index.php?title=Watchdog&amp;action=history"/>
	<updated>2026-05-30T03:40:51Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>https://kb.thinmanager.com/index.php?title=Watchdog&amp;diff=8350&amp;oldid=prev</id>
		<title>Tseagert: /* TermMon Active X Control Method */</title>
		<link rel="alternate" type="text/html" href="https://kb.thinmanager.com/index.php?title=Watchdog&amp;diff=8350&amp;oldid=prev"/>
		<updated>2016-06-15T14:29:07Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;TermMon Active X Control Method&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 14:29, 15 June 2016&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l3&quot;&gt;Line 3:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 3:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;If the Application Locks up but stays alive, use the &amp;#039;&amp;#039;&amp;#039;[[TermMon_ActiveX_Control| TermMon ActiveX Control Method]]&amp;#039;&amp;#039;&amp;#039;&amp;lt;br&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;If the Application Locks up but stays alive, use the &amp;#039;&amp;#039;&amp;#039;[[TermMon_ActiveX_Control| TermMon ActiveX Control Method]]&amp;#039;&amp;#039;&amp;#039;&amp;lt;br&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;If the Application Exits but the session remains, use the &amp;#039;&amp;#039;&amp;#039;[[Watchdog#Script Method| Script Method]]&amp;#039;&amp;#039;&amp;#039;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;If the Application Exits but the session remains, use the &amp;#039;&amp;#039;&amp;#039;[[Watchdog#Script Method| Script Method]]&amp;#039;&amp;#039;&amp;#039;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==TermMon &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Active X &lt;/del&gt;Control Method==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==TermMon &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;ActiveX &lt;/ins&gt;Control Method==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The TermMon ActiveX has a watchdog function built into it. If you register the TermMon ActiveX and embed it into your program you can use the WatchdogTime function to kill all locked up session.&amp;lt;br&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The TermMon ActiveX has a watchdog function built into it. If you register the TermMon ActiveX and embed it into your program you can use the WatchdogTime function to kill all locked up session.&amp;lt;br&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;You set the watchdog to a number, say 10, and reset it every time the watchdog hits a lower number, say 3.&amp;lt;br&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;You set the watchdog to a number, say 10, and reset it every time the watchdog hits a lower number, say 3.&amp;lt;br&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Tseagert</name></author>
	</entry>
	<entry>
		<id>https://kb.thinmanager.com/index.php?title=Watchdog&amp;diff=8277&amp;oldid=prev</id>
		<title>Randycannady at 17:50, 21 January 2016</title>
		<link rel="alternate" type="text/html" href="https://kb.thinmanager.com/index.php?title=Watchdog&amp;diff=8277&amp;oldid=prev"/>
		<updated>2016-01-21T17:50:20Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[Category:Troubleshooting]]&lt;br /&gt;
ThinManager has two different watchdogs that will monitor your applications and force the terminal to reset it&amp;#039;s session if the application closes or hangs.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
If the Application Locks up but stays alive, use the &amp;#039;&amp;#039;&amp;#039;[[TermMon_ActiveX_Control| TermMon ActiveX Control Method]]&amp;#039;&amp;#039;&amp;#039;&amp;lt;br&amp;gt;&lt;br /&gt;
If the Application Exits but the session remains, use the &amp;#039;&amp;#039;&amp;#039;[[Watchdog#Script Method| Script Method]]&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
==TermMon Active X Control Method==&lt;br /&gt;
The TermMon ActiveX has a watchdog function built into it. If you register the TermMon ActiveX and embed it into your program you can use the WatchdogTime function to kill all locked up session.&amp;lt;br&amp;gt;&lt;br /&gt;
You set the watchdog to a number, say 10, and reset it every time the watchdog hits a lower number, say 3.&amp;lt;br&amp;gt;&lt;br /&gt;
As long as the application is functioning properly it will keep setting the watchdog. If it locks up it is unable to update the watchdog, the watchdog counts down to zero, and then will kill the session. Once the session is killed the thin client will automatically reconnect and start a new session with the application running.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
For further information, see the [[TermMon_ActiveX_Control| TermMon ActiveX Page.]]&lt;br /&gt;
&lt;br /&gt;
==Script Method==&lt;br /&gt;
The Watchdog script will start a specific application, and upon the application&amp;#039;s termination, it will force ThinManager to re-establish the connection. This script is primarily designed for applications that will randomly quit but have spawned other processes that are running in the background and preventing the session from restarting.&lt;br /&gt;
A common example is that view.exe will spawn hd.exe and alarmgr.exe and have them running in the background. If view.exe dies, hd.exe and alarmgr.exe will still be running and Thin Manager cannot restart a terminal session that has running processes.&lt;br /&gt;
&lt;br /&gt;
===Usage===&lt;br /&gt;
*Create a .bat file that contains the following code:&lt;br /&gt;
====Without Arguments====&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
start &amp;quot;&amp;quot; /wait &amp;quot;Path\to\Program\executable.exe&amp;quot; &lt;br /&gt;
shutdown /f /l&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
====With Arguments====&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
start &amp;quot;&amp;quot; /wait &amp;quot;Path\to\Program\executable.exe&amp;quot; -a -b -c arguments&lt;br /&gt;
shutdown /f /l&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Setup ThinManager to launch the .bat file instead of the regular executable.&lt;br /&gt;
*Restart thin client (if thin client is currently running)&lt;/div&gt;</summary>
		<author><name>Randycannady</name></author>
	</entry>
	<entry>
		<id>https://kb.thinmanager.com/index.php?title=Watchdog&amp;diff=41&amp;oldid=prev</id>
		<title>Tseagert at 19:45, 13 September 2012</title>
		<link rel="alternate" type="text/html" href="https://kb.thinmanager.com/index.php?title=Watchdog&amp;diff=41&amp;oldid=prev"/>
		<updated>2012-09-13T19:45:52Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 19:45, 13 September 2012&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l5&quot;&gt;Line 5:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 5:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*Create a .bat file that contains the following code:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*Create a .bat file that contains the following code:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;start /wait Path\to\Program\executable.exe  &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;start &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&quot;&quot; &lt;/ins&gt;/wait &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&quot;&lt;/ins&gt;Path\to\Program\executable.exe&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&quot; &lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;shutdown /f /l&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;shutdown /f /l&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*Setup ThinManager to launch the .bat file instead of the regular executable.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*Setup ThinManager to launch the .bat file instead of the regular executable.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*Restart thin client (if thin client is currently running)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*Restart thin client (if thin client is currently running)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Tseagert</name></author>
	</entry>
	<entry>
		<id>https://kb.thinmanager.com/index.php?title=Watchdog&amp;diff=39&amp;oldid=prev</id>
		<title>Tseagert: /* Usage */</title>
		<link rel="alternate" type="text/html" href="https://kb.thinmanager.com/index.php?title=Watchdog&amp;diff=39&amp;oldid=prev"/>
		<updated>2012-09-13T19:43:29Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Usage&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;The Watchdog script will start a specific application, and upon the application&amp;#039;s termination, it will force ThinManager to re-establish the connection. This script is primarily designed for applications that will randomly quit but have spawned other processes that are running in the background and preventing the session from restarting.&lt;br /&gt;
A common example is that view.exe will spawn hd.exe and alarmgr.exe and have them running in the background. If view.exe dies, hd.exe and alarmgr will still be running and Thin Manager cannot restart a terminal session that has running processes.&lt;br /&gt;
&lt;br /&gt;
==Usage==&lt;br /&gt;
*Create a .bat file that contains the following code:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
start /wait Path\to\Program\executable.exe &lt;br /&gt;
shutdown /f /l&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Setup ThinManager to launch the .bat file instead of the regular executable.&lt;br /&gt;
*Restart thin client (if thin client is currently running)&lt;/div&gt;</summary>
		<author><name>Tseagert</name></author>
	</entry>
</feed>