title: Running a Linux Console Command in C#
body: <p>I am using the following code to run a Linux console command via Mono in a C# application:</p>
  
  <pre><code>ProcessStartInfo procStartInfo = new ProcessStartInfo("/bin/bash", "-c ls");
  procStartInfo.RedirectStandardOutput = true;
  procStartInfo.UseShellExecute = false;
  procStartInfo.CreateNoWindow = true;
  
  System.Diagnostics.Process proc = new System.Diagnostics.Process();
  proc.StartInfo = procStartInfo;
  proc.Start();
  
  String result = proc.StandardOutput.ReadToEnd();
  </code></pre>
  
  <p>This works as expected. But, if i give the command as <code>"-c ls -l"</code> or <code>"-c ls /path"</code> I still get the output with the <code>-l</code> and <code>path</code> ignored. </p>
  
  <p>What syntax should I use in using multiple switches for a command?</p>