Gå til innhold

utføre systemkommandoer uten å erstatte prosess


Anbefalte innlegg

execl(file, *args)

        execl(file, *args)

 

        Execute the executable file with argument list args, replacing the

        current process.

 

    execle(file, *args)

        execle(file, *args, env)

 

        Execute the executable file with argument list args and

        environment env, replacing the current process.

 

    execlp(file, *args)

        execlp(file, *args)

 

        Execute the executable file (which is searched for along $PATH)

        with argument list args, replacing the current process.

 

    execlpe(file, *args)

        execlpe(file, *args, env)

 

        Execute the executable file (which is searched for along $PATH)

        with argument list args and environment env, replacing the current

        process.

 

    execv(...)

        execv(path, args)

 

        Execute an executable path with arguments, replacing current process.

 

                path: path of executable file

                args: tuple or list of strings

execve(...)

        execve(path, args, env)

 

        Execute a path with arguments and environment, replacing current process.

 

                path: path of executable file

                args: tuple or list of arguments

                env: dictionary of strings mapping to strings

 

    execvp(file, args)

        execp(file, args)

 

        Execute the executable file (which is searched for along $PATH)

        with argument list args, replacing the current process.

        args may be a list or tuple of strings.

 

    execvpe(file, args, env)

        execvpe(file, args, env)

 

        Execute the executable file (which is searched for along $PATH)

        with argument list args and environment env , replacing the

        current process.

        args may be a list or tuple of strings.

 

 

Alle disse exec*-kommandoene i os-modulen erstatter den aktuelle prosessen; hvordan kan jeg unngå det?

Lenke til kommentar
Videoannonse
Annonse

Opprett en konto eller logg inn for å kommentere

Du må være et medlem for å kunne skrive en kommentar

Opprett konto

Det er enkelt å melde seg inn for å starte en ny konto!

Start en konto

Logg inn

Har du allerede en konto? Logg inn her.

Logg inn nå
×
×
  • Opprett ny...