Another way to pass the parameters to runcronjobs.php

Author Message

Javier Magán

Wednesday 28 July 2010 12:33:46 pm

Hello.

Is it possible to pass the prarameters to the runcronjobs.php script as ...mysite.com/runcronjobs.php?parameter1=xx&parameter2=yy

Aparently, my ISP only suports this format for configuring cronjobs (no ssh access).
If posible, how should this one be?:

php runcronjobs.php -s site_admin sendmail

Thanks

Gaetano Giunta

Wednesday 28 July 2010 12:45:12 pm

Afaik, it is not possible - it would also be considered a big securoty breach if it was - any user could trigger execution of existing cronjobs with teh desired parameters...

Otoh it might be interesting to wrap the runcronjobs script in a properly secured module+view. The problem is timeouts and excessive memory usage...

The ezscriptmonitor extension should be the solution for these kind of needs

Principal Consultant International Business
Member of the Community Project Board

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.