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--tp17766057p17766057.html
Sent from the Mono - General mailing list archive at Nabble.com.

_______________________________________________
Mono-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-list

Reply via email to