• Arnaud's links
  • Home
  • RSS Feed
  • Tag cloud
  • Login
all links
  • unix - What are the uses of the exec command in shell scripts? - Stack Overflow

    The exec built-in command mirrors functions in the kernel, there are a family of them based on execve, which is usually called from C.

    exec replaces the current program in the current process, without forking a new process. It is not something you would use in every script you write, but it comes in handy on occasion. Here are some scenarios I have used it;

    January 8, 2016 - permalink - http://stackoverflow.com/questions/18351198/what-are-the-uses-of-the-exec-command-in-shell-scripts
    exec