473,387 Members | 1,486 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

PHP CLI as Windows Service & Daemon

Does anyone have a good solution to run a Command Line Script as a
Windows Service, and be able to monitor it via Telnet (Or better yet
SSH)?

I have a small maintanance script that I would like to run as a service
on a Windows Server. It cleans up parts of the database on an hourly
basis, sends some e-mails etc. It would be great to monitor the
scripts progress without
checking a log file.

Feb 1 '06 #1
2 3465
NC
Sp*******@gmail.com wrote:

Does anyone have a good solution to run a Command Line Script as a
Windows Service, and be able to monitor it via Telnet (Or better yet
SSH)?

I have a small maintanance script that I would like to run as a service
on a Windows Server. It cleans up parts of the database on an hourly
basis, sends some e-mails etc.


You don't need to run it as a service for that. You can simply
schedule it for hourly execution with Windows Scheduler.

Cheers,
NC

Feb 1 '06 #2
NC schrieb:
You don't need to run it as a service for that. You can simply
schedule it for hourly execution with Windows Scheduler.


Not running the script all the time is not just another solution, it's a
much better solution! Your scipt doesn't hang in memory all the time AND
PHP is still known to have some memory issues when running too long.

OLLi
Feb 7 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Bill Grigg | last post by:
Gentlemen, I am hoping to be able to use GForge on my windows PC. To that end I have installed: 1. cygwin 2. reinstalled cygwin and selected cygipc, postgreSQL and a few other things 3. PHP...
1
by: Michael A. Miller | last post by:
I start PostgreSQL in the services utility under Redhat 9.0 with no issues. PostgreSQL runs properly but as soon as I log out PostgreSQL shuts down. It seems that I always need to be logged in for...
4
by: cyshao | last post by:
Why Windows doesn't allow to launch daemon/service in command line ?? Unix/Linux can simply do that....
9
by: Mondal | last post by:
Hi, Can anybody tell me how to develop Windows Services (which are actually daemons) using Python. Also what protocol is most suitable for developing a server-client application with the server...
4
by: Bas | last post by:
Hi Guru's, Does anyone know how to 'convert' a .java-program to a Windows XP Service? Someone wrote a Java application to copy records from an external database to a MySQL database running on...
13
by: ghighi | last post by:
Hello, I am working on a .Net application (aspx+webservices) that uses a windows service I created too. Sometimes, the exe linked to my service crashes (mostly runtime exception), and as a...
1
by: mdhaman | last post by:
hi, I have a windows service written in VB.Net and framework 2.0. It is a multithread service and it is using threadpool to manage threads. Recently I have started getting...
1
by: Nikola Skoric | last post by:
I wrote a simple UNIX daemon (using 2 forks) which does a simple job: it executes a function, waits for some time, and then executes it again. Now I'd like to port that to Windows. How do I create...
3
by: Levi Campbell | last post by:
Hi, I'm trying to write a program for a friend of mine who uses windows but I use GNU/Linux. I know you can use mingw and link to the python dll, but is there a way to create a win32 service under...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.