Re: os.execute() returning -1
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: os.execute() returning -1
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: 2006年8月22日 15:36:42 -0300
> Am I missing something here? Any ideas where to look for? Maybe some limit?
Try this replacement in loslib.c and see what the error message is:
static int os_execute (lua_State *L) {
int rc=system(luaL_optstring(L, 1, NULL));
int en=errno;
lua_pushinteger(L, rc);
lua_pushstring(L, strerror(en));
lua_pushinteger(L, en);
return 3;
}