exec1 - e perror("This line should never get...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
// exec1.cpp #include <stdio.h> #include <unistd.h> # int main() { printf ("this is the original program\n"); p execl("./newpgm", "newpgm", "parm1", "parm2", "parm3", (char *)0);
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: e perror("This line should never get printed\n"); }...
View Full Document

This note was uploaded on 04/11/2010 for the course CECS 326 taught by Professor Staff during the Spring '08 term at CSU Long Beach.

Ask a homework question - tutors are online