progs/shell.c
author Christian Urban <christian dot urban at kcl dot ac dot uk>
Thu, 13 Nov 2014 18:48:34 +0000
changeset 307 98ee5f760a8c
parent 221 ae6074cc446a
permissions -rw-r--r--
added hw 7

#include <stdio.h>

int main()
{  char *name[2];
   name[0] = "/bin/sh";
   name[1] = NULL;
   execve(name[0], name, NULL);
}