[Mono-list] excute linux command under mono C#

Alan_Chun kokolee88 at hotmail.com
Tue Jun 10 18:20:25 EDT 2008

Hi, any one know how to execute a command, e.g, "stty 9600 -F /dev/ttyS0"
under mono C#?

string cmd = "stty 9600 -F /dev/ttyS0" ;
System.Diagnostics.Process proc = new System.Diagnostics.Process();
proc.StartInfo.FileName = ???   //here
proc.StartInfo.Arguments = cmd; ////?????? 
proc.StartInfo.UseShellExecute = false; ///????
proc.StartInfo.RedirectStandardOutput = true;

I am not sure under linux how to achieve this, I put ??? to indicate my


View this message in context: http://www.nabble.com/excute-linux-command-under-mono-C--tp17766057p17766057.html
Sent from the Mono - General mailing list archive at Nabble.com.

More information about the Mono-list mailing list