CRM-8718 bin scripts should be refactored to be more flexible

    Details

    • Type: Improvement
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Duplicate
    • Affects Version/s: Unscheduled
    • Fix Version/s: 4.1.0
    • Component/s: Core CiviCRM
    • Labels:
      None

      Description

      The scripts in the bin directory are all executed when included.

      It would be useful to:

      • put all function/class definitions in proper library files
      • not require username and password when running from cli

      We may need to implement a way to indicate which uf user the script should run as (it could default to uid 1 for drupal sites, for example).

        Attachments

          Activity

          [CRM-8718] bin scripts should be refactored to be more flexible
          Jamie McClelland added a comment -

          The latest thinking on this issue from the coding sprint s covered in this blog:

          http://civicrm.org/blogs/jamie/re-thinking-one-jobs-and-cron-jobs

          Donald A. Lobo added a comment -


          This is being done as part of the MIH

            People

            • Assignee:
              Donald A. Lobo
              Reporter:
              Jamie McClelland

              Dates

              • Created:
                Updated:
                Resolved: