I have a little problem with star character in my command for linux - I need to find out distro. When I replace this character witch e.g. 'fedora' then this command gives good results. In this case it write something like this: /bin/cat: /etc/*-release: Directory or file doesn't exist.
My code is:
Process p = new Process();
p.StartInfo.UseShellExecute = false;
p.StartInfo.RedirectStandardOutput = true;
p.StartInfo.FileName = "cat";
p.StartInfo.Arguments = "/etc/*-release";
p.Start();
string output = p.StandardOutput.ReadToEnd();
p.WaitForExit();
Thanks in advance for your answer. Matej