#include #include #include int main() { char foo[] = "This is some text from proc-1"; printf("Now execute\n"); printf(" sudo ./testProgram2 %d %lx %lu\n", getpid(), (long unsigned int) foo, strlen(foo)+1); printf("Press any key\n"); while (1) { getchar(); printf("foo has changed to: %s\n", foo); } }