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
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
EmbLogic Research & Competency Development Labs
Phone: +91 9818467776, 8527567776, 9650467776
Email: info@emblogic.com
Copyright © EmbLogic Embedded Technologies Pvt. Ltd.
execl call needs an executable file as argument. Is pipe2.c an executable file or source file.?