• I’d like to perform some maintenance on the blog database, particularly scanning the whole post db record by record.
    As for the well known timeout issues running php scripts managed by the web server, I was thinking to run a php script from command line console.

    Was wondering if there’s a way to enable wordpress environment from command line, making possible to use functions, plugins and tags from WordPress..

    Any hint?

Viewing 3 replies - 1 through 3 (of 3 total)
  • no, not without a lot of work. besides if you have cli access why arent you doing DB work from the cli? having that access removes the necessity of using php to “talk” to mysql.

    Thread Starter Blutarsky

    (@blutarsky)

    As i’ve said having WordPress “hat” on, would speed up the job.
    Without that, I would have to write from scratch strict mysql code, study the relationships between tables, etc, etc.

    Basically what I would like to achieve is:
    – read posts 1 by one
    – update post content (I’m currently using qTranslate, so it would be helpful to access it’s functions from here)
    – create/update post tags accordingly

    Thread Starter Blutarsky

    (@blutarsky)

    Any hint?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to: batch from command line using WP environment?’ is closed to new replies.