Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7185107
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T18:20:32+00:00 2026-05-28T18:20:32+00:00

I have a task: work with many blogs in one time, from one shell.

  • 0

I have a task:
work with many blogs in one time, from one shell.
I have many blogs on different hostes, but every blog is connected to one database. I mean i have one mysql server for all blogs. Differences is only table prefixes. Therefore i want to work with these blogs via shell scripting (or perl, or other) ?

My idea is to keep a config files:

file1 content:
url: url.com/path/toblog
prefix: sample1 #table prefix for this blog installation

Installation will work in next algorithm:

  1. Read config and init variables (url, prefix)
  2. check is tables already instantiated
    2.1 yes remove tables
  3. Copy tables (MYSQL: create table tablename like default_installation_table)
    Do it with all wordpress tables.

So what will be the best tool for doing it ?

It it perl, or pure bash scripting or python or combination of some of them ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T18:20:33+00:00Added an answer on May 28, 2026 at 6:20 pm

    Shell script would be possible but a lot more work for you, both to develop and to debug. I’ve written and maintained large DB connecting apps in ksh and wouldn’t wish it on anyone.

    As for the rest (Perl, Python etc…), if all you want is to manipulate data in MySQL database, any of them would do fine for the task, so pick whichever one of them you prefer based on your own ranking criteria (be it what you know best, or easiest for you to learn, or language you wanted to learn for a long time, or will help your further career).

    I can definitely attest that Perl would be GOOD for that task (it has ready made modules for reading config files of all sorts, it has DBI modules for database connections); but to say it’s “best” is not really valid – the task isn’t specialized/complicated enough for Perl or Python to be significantly better.

    Support wise, if you do enough of your own work, and ask good questions, both for Perl and Python you’ll find plenty of good coding advice right here on SO.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I work in the Systems & admin team and have been given the task
I work for a fulfillment company and we have to pack and ship many
I have researched this and tried many different ways with no success. I have
Long story coming up, but I'll try to keep it brief. I have many
I have asked this question before - but I have spent some time thinking
I have encountered many half-solutions to the task of returning XML in ASP.NET. I
I am interested in using Resque to distribute work to many different computers. I
I thought the following task would be seemingly easy to code, but I have
I am new this sharepoint development and i have task in hand to do
I have this Task model: class Task < ActiveRecord::Base acts_as_tree :order => 'sort_order' end

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.