weblogs.module doesnt work when called via php as a shell script

simon@www.dirtb... - May 12, 2002 - 22:45
Project:Drupal
Component:Documentation
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

The path_uri() function, which is now used does not contain a value if called as part of a shell script like this:

#!/bin/sh
cd www
/usr/bin/php -q cron.php
cd ..

I've worked around it by replacing the path_uri() with a hardcoded variable. Not sure if this will affect many people.

#1

Anonymous - May 16, 2002 - 09:06

I'm not sure, but try setting the environment variable REQUEST_URI to the path to your web site. Exactly how this is done depends on your operating system.

#2

Anonymous - June 12, 2002 - 16:14
Component:Code» Documentation

Making this a documentation issue.

#3

ax - January 2, 2003 - 00:15

the documentation (http://drupal.org/node.php?id=288) mentions that cron needs certain environment variables and therefore should be run from a web browser. marking this as fixed.

#4

ax - January 4, 2003 - 13:27
Priority:» normal
 
 

Drupal is a registered trademark of Dries Buytaert.