eZpedia : The Free eZ Publish CMS Documentation Encyclopedia

Daemon

For more on Daemon, see Daemon on Wikipedia

About

A daemon could be described as software process which runs waiting for a condition to match. This is similar in features to a simple cronjob which runs frequently and checks for a conditional match and performs tasks based on the condition, match or other variable.

Simple Example

A simple code example which starts a process which is repeated, like a condition and switch statement. Like a while function

$i = 0;

while ( $condition )
{
  print("Iteration Count: $i<br />\n");

  if( $i == 42 )
   print("Count == 42<br />\n");

  $i++
}

External reference

  • None

Article provided by eZpedia

All text is available under the terms of the GNU Free Documentation License

Powered by eZ Publish 6.0.2stable

Hosted by USA eZ Publish Community Partner : Brookins Consulting