[TYPO3-english] cli_dispatch.phpsh runs on command line but not cron?

Scotty C superscotty19 at yahoo.com
Fri Jul 1 00:06:36 CEST 2011


Hi,

First and foremost, thanks for such a quick reply! To answer the bulk of your 
questions in short, yes I followed the manual to a tee. Specifically:

- _cli_dispatch backend user created (otherwise I'd get an error)
- My crontab looks like this (note: it does run because if I do something dumb 
like change a value, it will email me):
* * * * * /usr/local/bin/php /public_html/typo/typo3/cli_dispatch.phpsh 
scheduler
- cli_dispatch.phpsh is executable
- Everything in Scheduler Setup Check is OK
- I created another Scheduler job (send reports) and I don't get the reports 
either. It's as if the Scheduler is ignoring the cron altogether.

UPDATE!

I think I'm onto something! I originally had the scheduler frequency to be 86400 
(i.e. 24 hours) but the crontab was * * * * * (i.e. every minute). Well, I 
switched the Scheduler frequency to match the cron and it worked! This is off 
because I was under the impression that the crontab trumps the Scheduler 
frequency?

So essentially, this thread has now become a question of frequency and who has 
higher permissions - crontab or Scheduler?

Thanks!
-Scott.




----- Original Message ----
From: Jigal van Hemert <jigal at xs4all.nl>
To: typo3-english at lists.typo3.org
Sent: Thu, June 30, 2011 3:28:58 PM
Subject: Re: [TYPO3-english] cli_dispatch.phpsh runs on command line but not 
cron?

Hi,

On 30-6-2011 23:04, Scotty C wrote:
> I have the extension installed, configured, and the cli backend user created.

Did you read the manual for the system extension 'scheduler'? You need a backend 
user _cli_scheduler. This can also be checked in the scheduler backend module in 
the "Setup check".

> Additionally, I can run "cli_dispatch.phpsh scheduler" from the command line 
>and
> it works - the scheduler indicates that it ran via cron.

So, I assume that cli_dispatch.phpsh is marked as executable in your system.

> However, when I do a
> crontab -e and put cli_dispatch.phpsh scheduler in the cron ... nothing 
>happens!

The scheduler manual provides instructions for adding the dispatch script to a 
cronjob. Of course you need to adapt the paths to what they are in your 
installation.

Before trying to run the ics_awstats job you can also try one of the test jobs 
for the sceduler (such as sending you an email).

HTH

-- Kind regards / met vriendelijke groet,

Jigal van Hemert.
_______________________________________________
TYPO3-english mailing list
TYPO3-english at lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english



More information about the TYPO3-english mailing list