/ Published in: Bash
If you want to run your Drupal cron from logged in user you need to run this shell-script instead of clear wget.
Expand |
Embed | Plain Text
#!/bin/sh # Reference http://drupal.org/node/479948#comment-1673488 by pearlbear SITE=http://yoursite.com/ USERNAME=admin PASS=yourpassword COOKIES=/tmp/cron-cookies.txt WGETPARAMS="--quiet -O /dev/null --no-check-certificate --save-cookies $COOKIES --keep-session-cookies --load-cookies $COOKIES" # if you run drupal in a default language different than English you need to modify this LOGIN="%D0%92%D1%85%D0%BE%D0%B4+%D0%B2+%D1%81%D0%B8%D1%81%D1%82%D0%B5%D0%BC%D1%83" wget $WGETPARAMS "${SITE}user" wget $WGETPARAMS --post-data="name=$USERNAME&pass=$PASS&op=$LOGIN&form_id=user_login" "${SITE}user" wget $WGETPARAMS "${SITE}cron.php"
You need to login to post a comment.
