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

Alan_Chun kokolee88 at hotmail.com
Tue Jun 10 18:21:30 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;
proc.Start();

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


Thanks

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



More information about the Mono-devel-list mailing list