Ruby

Executing shell command from C# vs. Ruby. Fight!

C#:

System.Diagnostics.Process proc = new System.Diagnostics.Process();
proc.EnableRaisingEvents=false;
proc.StartInfo.FileName="notepad";
proc.StartInfo.Arguments="file.txt";
proc.Start();

Ruby:

%x{gedit file.txt}

Winner: Ruby

Tags: , , , , ,

Monday, September 28th, 2009 .NET, Ruby No Comments