Share » Forums » Developer » runcronjobs with args for script

runcronjobs with args for script

runcronjobs with args for script

Tuesday 24 October 2006 7:58:44 am - 2 replies

Author Message

Kristof Coomans

Tuesday 24 October 2006 9:15:54 am

Hello Vincent

As far as I know you can not specify any custom options for cron scripts. Use a normal CLI script instead, by using the eZCLI and eZScript classes. runcronjobs.php is in fact such a CLI script. There are some other good examples in the bin/php directory.

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Piotr Switkowski

Wednesday 25 October 2006 5:42:24 am

Hello

I need to do the same thing. I am thinking about the following logic:
- create script that have all logic depending on your parameter var
- create script that sets the value of your parameter to "for_day" and then includes script with login
- create script as in previous point, but setting parameter to 'for_month'

Instead of passing the parameter you wpuld simply need to call right script, but all logic will be written only once.

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu