exec2 - printf ("this is the original...

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

View Full Document Right Arrow Icon
// exec2.cpp #include <stdio.h> #include <unistd.h> # int main() { static char *nargv[] = { "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: printf ("this is the original program\n"); p execv("./newpgm", nargv); 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