diff --git a/exce1.c b/exce1.c new file mode 100644 index 0000000..5ac76b8 --- /dev/null +++ b/exce1.c @@ -0,0 +1,8 @@ +#include +#include +void main() { + printf("Ejemplo de uso de excel():"); + printf("\n\tListado del directorio actual:"); + execl("/bin/ls","ls","-l", (char *)NULL); + printf("\nEsta instrucción no se llega a ejecutar"); +} \ No newline at end of file diff --git a/proceso1 b/proceso1 new file mode 100755 index 0000000..6e608ca Binary files /dev/null and b/proceso1 differ diff --git a/proceso31 b/proceso31 new file mode 100755 index 0000000..df4eac3 Binary files /dev/null and b/proceso31 differ diff --git a/proceso31.c b/proceso31.c new file mode 100644 index 0000000..321ed43 --- /dev/null +++ b/proceso31.c @@ -0,0 +1,9 @@ +#include +#include + +void main() { + __pid_t id_actual, id_padre; + id_actual = getpid(); + id_padre = getppid(); + printf("Mi id es %d y el de mi padre es %d\n", id_actual, id_padre); +} \ No newline at end of file