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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T03:38:46+00:00 2026-05-23T03:38:46+00:00

I am stuck with a problem from many days. I am connecting to a

  • 0

I am stuck with a problem from many days.

I am connecting to a linux box and want to run some scripts and collect back the file generated.

Steps are
1) connect
2) run some scripts (which are interactive and need inputs at some point)
3) get the file generated as a result.

1) I am connecting to linux box through plink.exe (commandline version of putty.exe) this step is successful.

2) I am able to run scripts but when the scripts run it expects some input, i am not able to figure out how to pass these inputs to the script. what happens is the program hangs as the scripts does not complete.

These inputs are fixed and vary between certain values, i can hard code these values into application / program.

Please help me in doing this.
Thanks in advance
-Akash

  • 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-23T03:38:47+00:00Added an answer on May 23, 2026 at 3:38 am

    You can use this code

    ProcessStartInfo startInfo = new ProcessStartInfo();
    startInfo.CreateNoWindow = false;
    startInfo.UseShellExecute = false;
    startInfo.FileName = "YourFile.exe";
    startInfo.WindowStyle = ProcessWindowStyle.Hidden;
    startInfo.Arguments = "";//Arguments should be here
    using (Process exeProcess = Process.Start(startInfo))
    {
        exeProcess.WaitForExit();
    }
    

    you can use exeProcess.StandardOutput.ReadToEnd(); to get the results

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

Sidebar

Related Questions

I'm trying to learn from google code and I got stuck in some problems.
I'm stuck with a problem and hope stackoverfolw community can help me. I want
I am stuck with this problem for 3 days with no avail to solve
Apparently many people have run into this problem, but I have yet to be
I am coding some program that among many other operations have one that from
I am stuck working on a problem, and would appreciate some guidance. I am
I am stuck in a problem many people experienced here before, but solutions to
I'm stuck on a problem with sql. I have a table with many duplicate
Im trying to download share data from a stock exchange using python. The problem
I stuck with problem of mail application , i am developing a website for

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.