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 7038451
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T01:40:15+00:00 2026-05-28T01:40:15+00:00

How can a VB6 application that runs on a Windows XP machine, run a

  • 0

How can a VB6 application that runs on a Windows XP machine, run a script on a Linux machine (Redhat 5.3) via SSH?

VB application should take the following arguments

  1. Linux login
  2. Linux password
  3. Script path

And then run the script path via SSH.

For example

ARG1 Login –        root
ARG2 Password –     USA123
ARG3 Script path -  /var/tmp/task.pl 

VB6 will run the script /var/tmp/task.pl on the Linux machine.

  • 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-28T01:40:16+00:00Added an answer on May 28, 2026 at 1:40 am

    You can try using the “shell” function to create a command windows and then send ssh commands and parameters to it via the “sendKeys” function. However, this will be an error prone solution.

    If you want a more permanent fix, take a look at this VB Library for SSH manipulation. You may find it of use. Here is a link to a sample project.

    EDIT:

    I don’t have the VB6 IDE so I reused a VBScript file I had created earlier. It can either be run as is or can be very easily converted to VB6 code.

    Set objShell = WScript.CreateObject("WScript.Shell")
    objShell.Run "C:\Windows\System32\telnet.exe"
    WScript.Sleep(1000)
    objShell.SendKeys "o telnet.example.com"
    WScript.Sleep(1000)
    objShell.SendKeys "{enter}"
    WScript.Sleep(10000)
    objShell.SendKeys "user"
    WScript.Sleep(2000)
    objShell.SendKeys "{enter}"
    WScript.Sleep(1000)
    objShell.SendKeys "pass"
    WScript.Sleep(2000)
    objShell.SendKeys "{enter}"
    WScript.Sleep(1000)
    objShell.SendKeys "./var/tmp/task.pl"
    WScript.Sleep(1000)
    objShell.SendKeys "{enter}"
    WScript.Sleep(1000)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I can successfully build a VB6 application that relies upon several DCOM settings on
There is a VB6 application. It can be run with command line parameters to
so my question is relatively simple, can I create VB6 application that references a
Can any one tell me how to convert an legacy application which is vb6
How can I host a ( .Net, Java, VB6, MFC, etc ) application in
How exactly using VB6 can I can call any Windows shell command as you
Is there a good way to create a form in VB6 that can easily
We've got a VB6 application that reads a simple text file with a .LIC
We have a VB6 application that uses the vbprndlg.dll library to show print selection
I have a VB6 ActiveX DLL that has run fine on all our machines

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.