<?xml version="1.0" encoding="windows-1251"?>
<rss version="0.92">
<channel>
<title>Sw4me - Winserv/Console</title>
<link>http://www.sw4me.com/wiki/Winserv/Console</link>
<description>History/revisions of Sw4me/Winserv/Console</description>
<language>en-us</language>
<item>
<title>2004-11-06 19:00:06</title>
<link>http://www.sw4me.com/wiki/Winserv/Console/show?time=2004-11-06+19%3A00%3A06</link>
<description>&lt;a name="p19216-1">&lt;/a>&lt;p class="auto" id="p19216-1">Unfortunately, applications for&amp;nbsp;the console subsystem will almost always require some modification to&amp;nbsp;survive logoff. It's only 7 lines of&amp;nbsp;C code or&amp;nbsp;so, and&amp;nbsp;you can&amp;nbsp;see src/&lt;span class="nobr">tcl-nologoff&lt;/span>.c for&amp;nbsp;an&amp;nbsp;example.&lt;/p>&lt;br />&lt;a name="p19216-2">&lt;/a>&lt;p class="auto" id="p19216-2">
A&amp;nbsp;lot of&amp;nbsp;scripting language interpreters have a&amp;nbsp;special variant of&amp;nbsp;executable in&amp;nbsp;their Windows versions: the&amp;nbsp;executable is&amp;nbsp;linked for&amp;nbsp;the windows subsystem, not&amp;nbsp;the console one, though it&amp;nbsp;doesn't provide GUI&amp;nbsp;per se. I&amp;nbsp;recommend to&amp;nbsp;use this kind of&amp;nbsp;interpreters for&amp;nbsp;your service, together with &lt;span class="cite">-ipcmethod pipe&lt;/span>.&lt;/p>&lt;br />&lt;a name="p19216-3">&lt;/a>&lt;p class="auto" id="p19216-3">
As&amp;nbsp;of TCL&amp;nbsp;(tclsh*.exe console interpreter), nologoff.dll included in&amp;nbsp;the winserv support package takes care of&amp;nbsp;making the&amp;nbsp;interpreter ready to&amp;nbsp;survive logoff. Winserv::startup will load this dll. If&amp;nbsp;you use&amp;nbsp;&lt;a href="http://wiki.tcl.tk/freewrap" target="_blank" title="" class="outerlink">freewrap&lt;/a> to&amp;nbsp;create a&amp;nbsp;&lt;span class="nobr">stand-alone&lt;/span> executable, you&amp;nbsp;should copy this dll&amp;nbsp;to&amp;nbsp;the real filesystem and&amp;nbsp;let the&amp;nbsp;winserv support package know where it&amp;nbsp;is:&lt;br />
&lt;!--notypo-->&lt;textarea class="code" rows="4" readonly="readonly">package require winserv
set winserv::nologoff_dll c:/Unwrapped/nologoff.dll
winserv::startup&lt;/textarea>&lt;!--/notypo-->&lt;/p> </description>
</item>
</channel>
</rss>

