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.

eZ debug

Timing: Jan 29 2025 23:52:12
Script start
Timing: Jan 29 2025 23:52:12
Module start 'layout'
Timing: Jan 29 2025 23:52:12
Module start 'content'
Timing: Jan 29 2025 23:52:12
Module end 'content'
Timing: Jan 29 2025 23:52:12
Script end

Main resources:

Total runtime0.0119 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0039 588.3828151.2422
Module start 'layout' 0.00390.0022 739.625036.7266
Module start 'content' 0.00610.0045 776.351690.2188
Module end 'content' 0.01060.0012 866.570329.9922
Script end 0.0118  896.5625 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002016.9029140.0001
Check MTime0.00108.2677140.0001
Mysql Total
Database connection0.00075.617610.0007
Mysqli_queries0.001916.204230.0006
Looping result0.00000.158610.0000
Template Total0.00108.110.0010
Template load0.00086.703710.0008
Template processing0.00021.365210.0002
Override
Cache load0.00064.892810.0006
General
dbfile0.001210.070780.0001
String conversion0.00000.052240.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0002 secs