[Chicago-talk] Is it running from cron?

brian d foy brian.d.foy at gmail.com
Wed Feb 21 16:29:36 PST 2007


On 2/21/07, Andy Lester <andy at petdance.com> wrote:

> What does "from cron" mean?

There's a unix daemon called crond that runs commands at prescribed
times. Commands so run are said to run "from cron".

> You can tell if it's running in a web
> server process vs. running from the command line, 'cause the web
> server process will likely have an environment variable like MOD_PERL
> or CGI set.

mod_perl will set a MOD_PERL environment variable, but there usually
isn't something called CGI. Various things such as REQUEST_METHOD,
GATEWAY_INTERFACE, and HTTP_METHOD are usual for detecting web
transactions.

-- 
brian d foy <brian.d.foy at gmail.com>
http://www.pair.com/~comdog/


More information about the Chicago-talk mailing list