We have a large database that we manipulate, i have writen a server side app in php that has a task manager, so when some one queues up a task the server will exec it and wait for another, the tasks can take up to 1 hour and having multiple access to the database can't happen, so the server goes thru the quere and exec each task, when its not working it sleeps, wakes up every 1min and checks for new task, i use PHP conf'ged with CGI so i can run command line.. but i need it to run all the time.