Hi,
> How to run commands from terminal in mono C#.
> p = new Process();
> p.StartInfo.FileName = @"#!/bin/sh\n";
> p.StartInfo.UseShellExecute = false;
> p.StartInfo.RedirectStandardInput = true;
> p.StartInfo.RedirectStandardOutput = true;
> p.StartInfo.RedirectStandardError = true;
> p.StartInfo.CreateNoWindow = true;
> p.Start();
I don't see what this has to do with WinForms, but in any case, you should
probably begin changing p.StartInfo.FileName = @"#!/bin/sh\n"; with just
p.StartInfo.FileName = @"/bin/sh";
--
Baltasar ([email protected] http://baltasarq.info/)
_______________________________________________
Mono-winforms-list maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-winforms-list