Forums

Run shell / batch file on new post or edits (2 posts)

  1. davert
    Member
    Posted 2 years ago #

    I'd like to be able to run a Linux shell / batch file on posting a new page, the idea being to update a headline-include file created via simplepie rather than the "run a chron job for updates every 15 minutes even though we only have two or three posts a day" method.

    I can run the file manually but in a shared environment it would be far better if it was automatic. Surely there's an easy way to do this?

  2. MichaelH
    Volunteer
    Posted 2 years ago #

    Most hosting environments will allow you to setup cron jobs to do that.

    Otherwise if it needs to be handled in WordPress, review http://codex.wordpress.org/Category:WP-Cron_Functions

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.