NYCPHP Meetup

[nycphp-talk] cgi from cron

Hans Zaunere hans at nyphp.org
Fri Apr 18 19:54:46 EDT 2003


--- Tim Sailer <sailer at bnl.gov> wrote:
> On Fri, Apr 18, 2003 at 12:42:41PM -0400, max goldberg wrote:
> > are you making sure you it's using the same binary as the one you are
> > using from the command line. and it's in the user's path etc?
> > maybe you are using the cli binary as opposed to the cgi binary?
> 
> I always use explicit paths in cron. I cut-n-paste the command part
> from crontab to the commandline, and it runs. I'm confused.

How about your environment?  For instance, with Oracle, you need the
ORACLE_HOME and ORACLE_BASE environment variables set, and if I recommend
correctly, LDAP needs similar things.

Also, as mentioned, check user permissions if running under different
UIDs/GIDs

H




More information about the talk mailing list