Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Simple perl script to automatically update Wordpress plugins at frequent intervals
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

Simple perl script to automatically update Wordpress plugins at frequent intervals

DroidzoneDroidzone Member
edited May 2013 in General

This is just a simple perl script that I created to help me keep Wordpress plugins updated. I have 7 Wordpress sites on a VPS, and find it tedious to update them one after another, after getting notifications in my mailbox. As a perl script it is nothing spectacular, and is in fact one of my first perl scripts. Perl gurus, go easy on me, please. :)

What does it do? It takes command line arguments for the plugin directories, and calls up Wordpress.org, parses the html, and if a newer plugin version is found, downloads and updates the intalled plugin.

If you find it useful, any suggestions and critique would be nice. It's GPL3 and any additions/enhancements would be welcome.

The script can be run as cron jobs to make maintaining your plugins easy.

https://bitbucket.org/droidzone/wordpress_plugin_updater

Thanked by 1inthecloudblog

Comments

  • zserozsero Member

    I'm using http://infinitewp.com/ for managing cca. 30 Wordpress sites. It's rock stable and reliable! Can backup and manage plugins as well!

  • RobertClarkeRobertClarke Member, Host Rep

    @zsero said: I'm using http://infinitewp.com/ for managing cca. 30 Wordpress sites. It's rock stable and reliable! Can backup and manage plugins as well!

    Wow, I don't know how I haven't seen that before, thanks for the share!

    Thanked by 1zhuanyi
  • NoermanNoerman Member

    @zsero said: I'm using http://infinitewp.com/ for managing cca. 30 Wordpress sites. It's rock stable and reliable! Can backup and manage plugins as well!

    ditto, me too

  • vanarpvanarp Member

    There is https://managewp.com as well offering similar service.

  • MycroftMycroft Member

    Cool stuff, many thanks

  • RobertClarkeRobertClarke Member, Host Rep

    @vanarp said: There is https://managewp.com as well offering similar service.

    Looks better for managing client websites, although very similar functionality to infinitewp..

  • Do all of you prefer third party web services, to doing it automatically, in a couple of seconds as cron jobs?

  • RobertClarkeRobertClarke Member, Host Rep

    @joelgm said: Do all of you prefer third party web services, to doing it automatically, in a couple of seconds as cron jobs?

    If it was an option that I could turn off and on, that would be nice.

  • DroidzoneDroidzone Member
    edited May 2013

    @RobertClarke said: If it was an option that I could turn off and on, that would be nice.

    Of course you can. crontab -e and delete the scriptname, you turn it off. Add the name and you turn it on.

    You also get a lot of fine tuning of scheduling. You can set time for the update job to be run to the precise second, every n hours/days/weekend etc.

    There's always the security aspect of allowing some unknown service provider privy to your site data, when you run a third party service. I thought people over here were paranoid about security. ;)

  • RobertClarkeRobertClarke Member, Host Rep

    @joelgm said: There's always the security aspect of allowing some unknown service provider privy to your site data,

    That's the big worry here for me, not sure how customers would respond to that.

  • @joelgm Lots of things are good for service management But I wouldn't listen to these guys do perl like you want
    Nothing is wrong with a simple perl cron job and saving hassle over another piece of software to worry about.

  • bdtechbdtech Member

    Also can cause issues when updates break functionality that previously worked.

  • zserozsero Member

    InfiniteWP is a php script running on your localhost or server, there is no 'provider' or anyone you need trust. Also you can check the code yourself!

  • nikcnikc Member

    @zsero said: I'm using http://infinitewp.com/ for managing cca. 30 Wordpress sites. It's rock stable and reliable! Can backup and manage plugins as well!

    Wow - love that !

  • @joelgm Seems great, thanks! I do prefer local management indeed.

  • DroidzoneDroidzone Member
    edited August 2013

    Just bumping this up for anyone who's interested. Recently I was asked about this software by a couple of guys around here.

    [email protected]:root/wordpress_plugin_updater.git

  • DroidzoneDroidzone Member
    edited April 2014

    Updated this..

  • DeanDean Member

    mainwp.com for me - ditched infinitewp when it cost more than mainwp does, never looked back!

  • I also think that managewp.com is the best option.

  • @Denverlopaze said:
    I also think that managewp.com is the best option.

    Where did you sign up for necromancy contest?

  • Great thanks to @Droidzone for suggesting about bitbucket.org as it’s an elite web-based hosting service for various projects, which either use Mercurial or Git revision control systems. In order to update your WordPress plugins automatically, you can simply use perl script of bitbucket. It will surely overcome your manual efforts.

  • bdtechbdtech Member

    Check out the WP CLI? Pretty nifty for this

Sign In or Register to comment.