EmbLogic's Blog

EXECL: Exec format error

int ret = execl(“./pipe2.c”,”pipe2.c”,”A”,(char *)0);
if(ret < 0)
{perror(“EXECL”); exit(EXIT_FAILURE); }
}
on execution i am getting EXEC: Exec format error

?? why

One Response to EXECL: Exec format error

  1. spatlou says:

    execl call needs an executable file as argument. Is pipe2.c an executable file or source file.?

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>