[Mono-osx] Running a shell script using System.Diagnostics.Process

Andreas Färber andreas.faerber at web.de
Sat Apr 5 07:45:19 EDT 2008


Am 04.04.2008 um 20:01 schrieb Billy Schoenberg:
> I have just started working with Mono and I have a question about  
> how to open a .sh from my program that is created by my program.  On  
> windows I have used the System.Diagnostics.Process Object, not the  
> static Start() method, but one of the instance methods (i need to  
> set some of the Properties first), when I try this on OSX no luck,  
> nothing really happens at all. I can open a .txt using this class,  
> or really anything else, just can't run my script.

Make sure the file is marked executable after creating it, or try  
naming it .command on OSX. Or use /bin/sh as suggested by Matthew.


More information about the Mono-osx mailing list