[Mono-list] Running a shell builtin from mono

Ulrich Hertlein u.hertlein at gmail.com
Thu Feb 7 13:27:29 UTC 2013


Hi,

On 07.02.2013, at 23:05, Ian Norton <ian.norton-badrul at thales-esecurity.com> wrote:
> On Thu, Feb 07, 2013 at 11:08:22AM +0000, Mathias Tausig wrote:
>> 
>> I want to execute a shell builtin command from mono on a linux box. (To be precise: I want to read the current umask with the 'umask' command). Using the Process class doesn't work, since it looks for an actual command file to run.
>> Is there a way to do this?

Any particular reason why you don't just call the POSIX syscall directly, w/o exec a shell?

/ulrich


More information about the Mono-list mailing list