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
You can use this code
you can use exeProcess.StandardOutput.ReadToEnd(); to get the results