int main(int argc, char * argv[])
{
    char * output;

    logfile(NULL, EUCA_LOG_TRACE, 4);
    log_prefix_set("%T %L %t9 |");
    printf("%s: starting\n", argv[0]);
    output=execlp_output(TRUE, "/bin/echo", "hi", NULL); assert(output); printf("%s\n", output); free(output);
    output=execlp_output(TRUE, "echo", "there", NULL); assert(output); printf("%s\n", output); free(output);
    output=execlp_output(TRUE, "ls", "-l", "/", NULL); assert(output); printf("%s\n", output); free(output);
    output=execlp_output(TRUE, "foo", "bar", "baz", NULL); assert(output==NULL);
    output=execlp_output(TRUE, "sleep", "3", NULL); assert(output); assert(strlen(output)==0); free(output);
    output=execlp_output(TRUE, "ls", "a-ridiculously-long-name-that-does-not-exist", NULL); assert(output==NULL);
    printf("%s: completed\n", argv[0]);
}
int main(int argc, char * argv[])
{
    char * output;

    logfile(NULL, EUCA_LOG_TRACE, 4);
    log_prefix_set("%T %L %t9 |");
    printf("%s: starting\n", argv[0]);
    output=execlp_output(TRUE, "/bin/echo", "hi", NULL); assert(output); printf("%s\n", output); free(output);
    output=execlp_output(TRUE, "echo", "there", NULL); assert(output); printf("%s\n", output); free(output);
    output=execlp_output(TRUE, "ls", "-l", "/", NULL); assert(output); printf("%s\n", output); free(output);
    output=execlp_output(TRUE, "foo", "bar", "baz", NULL); assert(output==NULL);
    output=execlp_output(TRUE, "sleep", "3", NULL); assert(output); assert(strlen(output)==0); free(output);
    output=execlp_output(TRUE, "ls", "a-ridiculously-long-name-that-does-not-exist", NULL); assert(output==NULL);
    printf("%s: completed\n", argv[0]);
}