Re: How to run commands from mono C#
Baltasar GarcĂa Perez-Schofield <[email protected]> Wed, 4 Dec 2013 13:05:46 +0100
| Newsgroups | gmane.comp.gnome.winforms |
|---|---|
| Organization | Personal |
| Message-ID | <[email protected]> |
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