STRNCAT
STRNCAT(inargs, " ");
STRNCAT(inargs, argv[optind]);
#define APPCMD(p) {STRNCAT(cmd, p); STRNCAT(cmd, " ");}