GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Does anyone here use feedwordpress or autoblogger with a cron job? (https://gfy.com/showthread.php?t=584105)

chadglni 03-07-2006 08:48 PM

Does anyone here use feedwordpress or autoblogger with a cron job?
 
When I updated to the newer version of feedwordpress my cron job to run update-feeds.php quit working correctly. Does anyone know how to make this run with the lastest v?

JOKER 03-07-2006 08:51 PM

Do you get an error when you try to sync it manually?
If so, whats the error? Just wanna see if its the same as I get.

I ran into the same crap lately...

Interested in this also.

chadglni 03-07-2006 09:06 PM

Quote:

Originally Posted by JOKER | JOKEREMPIRE Inc.
Do you get an error when you try to sync it manually?
If so, whats the error? Just wanna see if its the same as I get.

I ran into the same crap lately...

Interested in this also.

Well I used to just cron wget the update-feeds.php link and it worked. Since I updated it just loads the page that has the update button and doesn't auto update them. Not sure if my settings are different or what. :disgust

Edit: Haven't noticed any errors on the manual updates but haven't tried but a few times.

JOKER 03-07-2006 09:18 PM

Have you updated feedwordpress or wordpress itself?

If you've updated feedwordpress, pay attention to this passage in the README:

Quote:

If you *can* create a crontab on your web host, then the best thing to
do is to create a cron job that will run update-feeds.php through the
PHP command-line interface. For example, if you have WordPress installed
in `~/www/wp` (where ~ is your home directory), you might insert the
following line into your crontab:

25 * * * * cd $HOME/www/wp/wp-content ; php -q update-feeds.php

If you *don't* have access to (a), you can still save the day using
another computer with always-on Internet access that sends a POST
request to the `update-feeds.php` URI on a regular schedule. So, for
example, if you have WordPress installed at <http://www.zyx.com/blog>,
and you have a dummy user in your WordPress database with the login name
'login' and the password 'pass', then you could add the following line
to the crontab on a home Linux box:

25 * * * * curl --user login:pass http://www.zyx.com/blog/wp-content/update-feeds.php -d update=quiet

The `-d update=quiet` switch ensures that (1) `update-feeds.php` will
receive an HTTP POST request rather than an HTTP GET request (which
is important, since it won't take any actions with side-effects -- such
as checking for new posts -- unless it receives an HTTP POST); it also
tells it to suppress the HTML output that it would generate for normal
web browsers, and only to output text if it encounters errors (this will
keep the number of e-mails you receive from the Cron Daemon to a
minimum).

If you are using Windows XP and have a version of curl (such as the
version included in [Cygwin][]), you can create a Scheduled Task to
similar effect.

[Cygwin]: http://www.cygwin.com/
ch33rs,
Steve

chadglni 03-07-2006 09:20 PM

Quote:

Originally Posted by JOKER | JOKEREMPIRE Inc.
Have you updated feedwordpress or wordpress itself?

If you've updated feedwordpress, pay attention to this passage in the README:



ch33rs,
Steve

25 * * * * cd $HOME/www/wp/wp-content ; php -q update-feeds.php

Maybe I'm setting this up wrong. I'm not sure exactly how it should look when wordpress is at

mydomain.com/whatever/

JOKER 03-07-2006 09:24 PM

Quote:

Originally Posted by chadglni
25 * * * * cd $HOME/www/wp/wp-content ; php -q update-feeds.php

Maybe I'm setting this up wrong. I'm not sure exactly how it should look when wordpress is at

mydomain.com/whatever/

Thats the problem...

You should change that to your local path on the server, so that PHP is run in the command-line itself...

They obviously changed the methog from using curl / wget to using php itself.

Hope you understood what I wanted to say.

JOKER 03-07-2006 09:50 PM

I just updated wordpress and feedwordpress to the latest versions and the usual cron with the curl option still works for me:

Code:

curl --user user:pass http://your.url.here/wp-content/update-feeds.php -d update=quiet
Thanx for getting me to update everything properly :1orglaugh


All times are GMT -7. The time now is 06:49 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123