<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7638.1">
<TITLE>RE: [python-win32] Runnin Python app as service with separate console</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->
<P><FONT SIZE=2>Byron Morgan wrote:<BR>
> I have a robust, stable Python script that runs 24-7,<BR>
> crunching a telnet feed of real-time data. Problem is,<BR>
> it has to run in a dos console window on the desktop.<BR>
> I would like to run it as a service, and be able<BR>
> connect to it and monitor performance with a separate<BR>
> console (either gui or not) from time to time. I'm<BR>
> hoping for advice on how to proceed.<BR>
<BR>
Making the script run as a service is not terribly difficult. Start by Googling for, say, "win32serviceutil.ServiceFramework" to get some sample code. Cut-n-paste should get you there.<BR>
<BR>
On the "separate console" front, I've given up on local, desktop-based solutions and now use a web-based terminal I wrote for use with CherryPy: <A HREF="http://projects.amor.org/misc/wiki/HTTPREPL">http://projects.amor.org/misc/wiki/HTTPREPL</A><BR>
<BR>
Hope that helps,<BR>
<BR>
<BR>
Robert Brewer<BR>
System Architect<BR>
Amor Ministries<BR>
fumanchu@amor.org</FONT>
</P>
</BODY>
</HTML>