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

  • Home
  • SEARCH
  • 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 9229923
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T05:41:38+00:00 2026-06-18T05:41:38+00:00

Well. I have a large basis on which to go. I just dont know

  • 0

Well. I have a large basis on which to go. I just dont know how to go about it. using the exec() function. But I think I’d really just need help doing a remote SSH. The rest I already sorta understand

I have a perl script on 5 servers that need to be updated, and the best way to automate this is from the admin panel on a remote server.

The php file needs to collect the servers ips, username, passwords + the .pl’s directory from a MySQL while also sending the post data that was just sent, and then send that data via SSH (from each variable) with the command to execute the remote perl script with the post data (from the php file) as an argument.

Basically: PHP(+post data) -> SQL(gets table info) -> perl -> (SSH -> perl)[repeat until no more servers are left to update]

The faster and simpler it does this, the better. If any steps can be removed to speed it up, then great, unless it makes it less secure.

I really do not get how to do much of this, as I’m still trying to learn Perl and SQL

  • 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-06-18T05:41:39+00:00Added an answer on June 18, 2026 at 5:41 am

    You can setup ssh password-less authentication between your servers, have your scripts setup and tested in the same path on different servers, and in your PHP script write

    for($hostname in $hosts)
        system("ssh $hostname -c 'perl /path/to/my/script.pl'")
    

    Or you could setup public/private key identity files and do:

    for($hostname in $hosts)
        system("ssh $hostname -i ~/.ssh/identity_file -c 'perl /path/to/my/script.pl'")
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have large codebase written in HSP ( wikipedia article - think BASIC, but
Say if I have a large dataset, the table has well over a million
well I have that problem, im using a lightbox srcipt and im opening an
I'm currently working on a project where we have a large data warehouse which
I know a lot of question regarding VB6 migration have been asked, but I
I have a grid view which is populated using a custom ImageAdapter class extending
I have a psychological tic which makes me reluctant to use large libraries (like
I have to maintain a large number of classic ASP pages, many of which
I have a very large code base that contains extensive unit tests (using CppUnit).
I have a UITextView that works well, till it's content is larger than it's

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.