[MonoDevelop] [HowTo] Executing Shell Commands...
Michael Hutchinson
m.j.hutchinson at gmail.com
Sun Oct 24 15:23:27 EDT 2010
On Sun, Oct 24, 2010 at 3:47 AM, Quandary <quandary82 at hailmail.net> wrote:
> proc.StartInfo.FileName = "/sbin/iptables";
>
> You should also try to read back the process exit code, such as EXIT_SUCCESS
> or EXIT_FAILURE.
> To do it on bash: echo $?
Sounds like you want process.ExitCode.
--
Michael Hutchinson
http://mjhutchinson.com
More information about the Monodevelop-list
mailing list