[Mono-dev] execv fails with error status 126
robertj at gmx.net
Thu Oct 18 08:35:40 EDT 2007
C S Vadiraj wrote:
> Here you go. Sorry for having missed it in my previous reply.
> [DllImport ("libc")]
> private static extern int execv (string cmd, string args);
> execv ("/tmp/myscript", (string) list.ToArray (typeof (string)));
> list is Array list with set of arguments. Not NULL terminated.
It must be null terminated and it should contain "/tmp/myscript"
at index 0. See execv(3).
More information about the Mono-devel-list