473,385 Members | 1,958 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,385 software developers and data experts.

scheduler daemon?

is it possible to have a php script running as a daemon in the
background that automatically performs something (ie, a php script)
when a file is updated in a specific folder/directory? if not, is there
something non-php that does this which can be set to automatically run
a php script when a file is modified?

thanks,
adam.

Jul 17 '05 #1
4 2105
>is it possible to have a php script running as a daemon in the
background that automatically performs something (ie, a php script)
when a file is updated in a specific folder/directory?
Command-line-only PHP does exist but it may not be present on
hosted sites if the host didn't build it. Such a script won't
"automatically perform"; it will need to check periodically and
do something if needed.
if not, is there
something non-php that does this which can be set to automatically run
a php script when a file is modified?


Cron can run a script periodically. The script still needs to check
and do something if needed.

Gordon L. Burditt
Jul 17 '05 #2
adamsbarker wrote:
is it possible to have a php script running as a daemon in the
background that automatically performs something (ie, a php script)
when a file is updated in a specific folder/directory? if not, is there
something non-php that does this which can be set to automatically run
a php script when a file is modified?

thanks,
adam.


got linux? check out cron.
--
Kenneth Downs
Secure Data Software, Inc.
(Ken)nneth@(Sec)ure(Dat)a(.com)
Jul 17 '05 #3
Gordon Burditt wrote:
is it possible to have a php script running as a daemon in the
background that automatically performs something (ie, a php script)
when a file is updated in a specific folder/directory?


Command-line-only PHP does exist but it may not be present on
hosted sites if the host didn't build it. Such a script won't
"automatically perform"; it will need to check periodically and
do something if needed.


Quack - oops. Thanks for playing.

There's nothing to stop you writing a daemon in PHP. Although if it's not a
server process I'd use cron as well.
background that automatically performs something (ie, a php script)
when a file is updated in a specific folder/directory?


There are some (non-PHP) tools out there which are designed for exactly this
purpose. Some intercept the writes, some poll changes - either way, these
might be a more sensible starting place then cron (they will (appear to)
operate synchronously with the event). Check out dazuko, FAM and Gamin

C.

Jul 17 '05 #4

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

Similar topics

3
by: Rob Hunter | last post by:
Hi all. I want to run a Python daemon that manages a "to-do" queue. I want it so that the daemon is always running, where its running consists of looking at the queue to see if it has any jobs,...
3
by: bmgx | last post by:
This is what I am trying to find out, instruction on how to create a simple daemon on unix systems(Linux), can't find any info on usual sources..
1
by: Bob Swerdlow | last post by:
I've created a Python daemon that starts a bunch of BitTorrent downloader process. Everything is working fine when I start the daemon by hand (logged on as root). I can quit the session and see...
1
by: MasterGaurav | last post by:
Hi, I am looking for a scheduler / daemon kind of control in .Net. Preferably in C#. I don't think 1.1 has inbuilt (read: core) support for daemons (like available in Java)... are there any...
7
by: Michael Ransburg | last post by:
Hi! I have implemented a daemon in C++. It runs all the time, between reboots. Is there a way for other C++ classes to get a reference to the instance of this daemon class in order to call its...
4
by: keepyourstupidspam | last post by:
Anyone know of a reliable design for a Windows C++ Task Scheduler Class. The scheduler will expose a member function that will add schedules, its parameters will be an interval to run the tasks...
1
by: Stefan Neumann | last post by:
I have written a daemon which should run endlessly. The structure looks like this: - start-stop-daemon forks my python program then: if __name__=="__main__": try: main()
3
by: paul | last post by:
I am writing a daemon process that reads data from the serial port / dev/ttyS0. I am using pyserial & the method for setting up a daemon described in "Chris' Python Page"...
6
by: Johny | last post by:
Is it possible to run a Python program as daemon? Thanks
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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.