yogsma
yogsma

Reputation: 10594

How to write a daemon

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

Answers (3)

user816604
user816604

Reputation:

You should use the System Daemon PEAR package.

Check out http://kevin.vanzonneveld.net/techblog/article/create_daemons_in_php/

Upvotes: 0

EEAA
EEAA

Reputation: 275

Any reason to not just run a simple bash script via cron?

Upvotes: 10

yogsototh
yogsototh

Reputation: 15141

the easiest way is to use nohup.

nohup your_command.sh &

And your_command run as a daemon.

Upvotes: 1

Related Questions