Provided by: manpages-zh_1.5.2-1_all bug

NAME

       execl, execlp, execle, execv, execvp -

 (SYNOPSIS)
       #include <unistd.h>

       extern char **environ;

       int execl( const char *path, const char *arg, ...);
       int execlp( const char *file, const char *arg, ...);
       int  execle(  const  char  *path,  const  char *arg , ..., char * const
       envp[]);
       int execv( const char *path, char *const argv[]);
       int execvp( const char *file, char *const argv[]);

 (DESCRIPTION)
       exec          .  execve(2)   (front-end) . ( execve  .)

                ().

        execl, execlp, execle  ,  const  char  *arg  arg0,  arg1,  ...,  argn.
       null     , .  ,  arg     .   NULL  !

       execv execvp    null        .   ,        .   NULL  !

       execle      (environment), NULL     , NULL    , , argv .     null    ,
       NULL  !  environ      .

           .

            (/), execlp execvp   shell   .  PATH .    ,    ``:/bin:/usr/bin''.
       ,    .

               ( execve EACCES),        .     , errno EACCES.

           ( execve ENOEXEC),          shell.  (        .)

 (RETURN VALUE)
        exec      .   -1, errno  .

 (FILE)
       /bin/sh

 (ERROR)
          , errno execve(2)   .

 (SEE ALSO)
       sh(1), execve(2), fork(2), environ(5), ptrace(2)

 (COMPATIBILITY)
          ,  (  PATH ) /bin /usr/bin ,    . Linux "" .

                ,  execlp execvp     ,    , POSIX  . BSD (   )     ,  ETXTBSY,
       .  Linux  ,   .

        , execlp execvp   ,   , ENOMEM E2BIG.     ,   .   ,   ,     .

 (CONFORMING TO)
       execl, execv, execle, execlp execvp IEEE Std1003.1-88 (``POSIX.1'').

[]

        <xuming@users.sourceforge.net>

[]

       2003/05/13

Linuxman

       http://cmpp.linuxforum.net