473,240 Members | 1,932 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,240 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 2099
>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: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...

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.