progs/shell.c
author Christian Urban <urbanc@in.tum.de>
Tue, 23 Aug 2016 15:37:59 +0200
changeset 460 ab7acd13bef3
parent 221 ae6074cc446a
permissions -rw-r--r--
updated

#include <stdio.h>

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