'Run bash script from .net program
I try to send a script (just echo for the moment) form .net command
proc.StartInfo.RedirectStandardOutput = True
proc.StartInfo.UseShellExecute = False
proc.StartInfo.CreateNoWindow = False
proc.StartInfo.Arguments = "-c sh test.sh"
proc.StartInfo.FileName = (Directory.GetCurrentDirectory() & "\bash.exe")
proc.StartInfo.WorkingDirectory = Directory.GetCurrentDirectory() & "\"
proc.Start()
proc.WaitForExit()
Me.RichTextBox1.Text = proc.StandardOutput.ReadToEnd
When I launch with argument "-c ls -l" for example it works. I have in my richtextbox content of my working folder and I see test.sh. Terminal close itself.
But when I try to launch "-c sh test.sh", nothing append terminal open, and stay open with nothing inside.
Any idea ? Thanks
Solution 1:[1]
You want to check if the number of sub tasks COUNTA(B3:B) equals to the number of sub tasks that are completed COUNTIF(C3:C,TRUE).
=COUNTA(B3:B)=COUNTIF(C3:C,TRUE)
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | idfurw |
