Was this page helpful?

Remote Drupal Cron

    Table of contents
    No headers

    This script iterates through an array of Drupal sites to request 'cron.php'

     

    #!/bin/bash
    
    WGET=/usr/bin/wget
    OPTS="--spider --quiet --tries=3 "
    
    SITES=(
        #Add sites here
        'www.site1.com'
        'www.site2.net'
        )
    
    for url in ${SITES[@]}
    do
            $WGET $OPTS "http://${url}/cron.php"
    done
    

     

    Was this page helpful?
    Tag page (Edit tags)
    • No tags
    You must login to post a comment.
    Powered by MindTouch Core