Reputation: 10594
Does anyone know how to write a daemon? I want to write a daemon which executes a script to move a file from one particular directory to another.
Upvotes: 1
Views: 1423
Reputation:
You should use the System Daemon PEAR package.
Check out http://kevin.vanzonneveld.net/techblog/article/create_daemons_in_php/
Upvotes: 0
Reputation: 15141
the easiest way is to use nohup.
nohup your_command.sh &
And your_command run as a daemon.
Upvotes: 1