drupal/drupal-cron.sh

Mon, 28 Jan 2013 17:37:18 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Mon, 28 Jan 2013 17:37:18 +0100
changeset 758
a2c6460cfb16
permissions
-rw-r--r--

Correct socket error reporting improvement with IPv6 portable code,
after helpful recommendation by Saúl Ibarra Corretgé on OSips devlist.

michael@529 1 #!/bin/sh
michael@529 2 ##
michael@529 3 ## drupal-cron.sh -- Drupal Cron Job
michael@529 4 ##
michael@529 5
michael@529 6 server=`grep '^Listen' @l_prefix@/etc/drupal/drupal-apache.conf | head -1 | awk '{ print $2; }'`
michael@529 7 @l_prefix@/lib/openpkg/curl --silent --compressed http://$server/cron.php || true
michael@529 8

mercurial