FireDaemon Forums
Go Back   FireDaemon Forums > Support > HOWTOs: Application Tutorials > Programming Languages

Programming Languages HOWTOs and Tutorials regarding integrating FireDaemon with various programming languages.


Reply
 
Thread Tools Display Modes
  Jordan's time 5th November 2009, 03:26 PM    #1  
Old 5th November 2009, 08:26 PM
Jordan's Avatar
Jordan Jordan is offline
Forum Admin
 
Join Date: Jun 2007
Location: Montreal, Canada
Posts: 66
Default ActivePython



How To Run ActivePython as a Windows Service with FireDaemon


ActivePython is a widely-used Python distribution. A Python script can be run as a Windows Service using FireDaemon. FireDaemon will allow you to have the script start automatically at boot prior to login, allow you to start multiple instances of the script and so forth. This HOWTO will show you how set it up. You can also use Trinity or PanelDaemon to manage FireDaemon and other Windows services via a web browser.

ActivePython Setup Under FireDaemon
  1. Download the latest ActivePython from here
  2. By default ActivePython installs to "C:\Python26" so for the purposes of this HOWTO, we will use that directory.
  3. Install FireDaemon Pro into the directory of your choice (typically C:\Program Files\FireDaemon). FireDaemon can be downloaded from here.
  4. ActivePython has many executables that you can use, but the one you would use for most scripts is "python.exe"
  5. Next start the FireDaemon GUI from the desktop shortcut. Click on the "Create a new service definition" button in the toolbar (or type Ctrl+N) and enter the information into the fields as you see below. Obviously adjust paths to suite your installation. Pay special attention to the Parameters list.

  6. Make sure "Console Application" is checked.
  7. For executable, point it to python.exe
  8. For working directory, point it to the directory in which your python script resides.
  9. For parameters, enter the name of your python script including its extension (eg. script.python)


  10. Now click on the Advanced tab. You can change the Process Priority to allocate more CPU time to ActivePython or specify which CPU or core ActivePython will run on (in the case of multi-processor, hyperthreaded or multi-core CPUs).


  11. Now click on the Dependencies tab. Make sure the service depends on the lanmanworkstation (Workstation) service to ensure the TCP/IP and CIFS stacks are both up prior to starting the Python script.


  12. Now click on the Install button to install and start your Python script!



=======================
HOWTO Provided by:
=======================
Reply With Quote
Reply

Bookmarks

Tags
activepython

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

 
Free 30 Day Trial

Join our Newsletter
Once a month we poke the right people on product releases and promos.



Connect with us



Latest HOWTOs



All times are GMT. The time now is 05:14 PM.


Powered by vBulletin® Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Template-Modifications by TMS
Copyright © 2009 FireDaemon Technologies Limited