niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » Programming » python
Python Processes for Win32
Post new topic   Reply to topic Page 1 of 1 [3 Posts] View previous topic :: View next topic
Author Message
Robert Brewer
*nix forums beginner


Joined: 21 Feb 2005
Posts: 49

PostPosted: Sat Feb 05, 2005 8:01 pm    Post subject: RE: Python Processes for Win32 Reply with quote

harlinseritt@yahoo.com wrote:
Quote:
I have a daemon type script (daemon.py -- we'll say) that I would like
to have run continuously. I'd like to be able to do something like
this:

daemon.py start

... and then to have it stop I'd like to do this:

daemon.py stop

I am having a hard time googling for a clue as to how to accomplish
this. If anyone can point me in the right direction, I'd really
appreciate it.

Write a Windows service (natively, see
http://www.python.org/windows/win32 or using py2exe, see
http://starship.python.net/crew/theller/py2exe/).

Then use:

net start daemonsvc
net stop daemonsvc


Robert Brewer
MIS
Amor Ministries
fumanchu@amor.org
Back to top
Do Re Mi chel La Si Do
*nix forums addict


Joined: 21 Feb 2005
Posts: 92

PostPosted: Sat Feb 05, 2005 10:07 am    Post subject: Re: Python Processes for Win32 Reply with quote

Hi !

Look for "service" in PyWin


@-salutations
--
Michel Claveau
Back to top
Harlin Seritt
*nix forums Guru Wannabe


Joined: 23 Feb 2005
Posts: 163

PostPosted: Sat Feb 05, 2005 8:41 am    Post subject: Python Processes for Win32 Reply with quote

I have a daemon type script (daemon.py -- we'll say) that I would like
to have run continuously. I'd like to be able to do something like
this:

daemon.py start

.... and then to have it stop I'd like to do this:

daemon.py stop

I am having a hard time googling for a clue as to how to accomplish
this. If anyone can point me in the right direction, I'd really
appreciate it.

thanks,

Harlin
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [3 Posts] View previous topic :: View next topic
The time now is Thu Jan 08, 2009 10:16 pm | All times are GMT
navigation Forum index » Programming » python
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts Python proficiency test Kent Johnson python 0 Fri Jul 21, 2006 10:47 am
No new posts Problem with Win32-SerialPort over bluetooth @ windows + ... ctloh Perl 0 Fri Jul 21, 2006 8:08 am
No new posts Since there was talk of if-then-else not being allowed in... Casey Hawthorne python 5 Fri Jul 21, 2006 3:41 am
No new posts Using python code from Java? fortepianissimo python 4 Thu Jul 20, 2006 5:36 pm
No new posts Bug? Certainly a new *behavior* from subprocess in 2.5 on... Larry Hastings python 2 Thu Jul 20, 2006 11:15 am

WoW Gold | Credit Card | The eBay Song | Credit Cards | Credit Cards
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.3737s ][ Queries: 20 (0.2069s) ][ GZIP on - Debug on ]