The exec() family of functions replaces the current process image with a new process image, retaining the pid and pipes of the old process. This tag is also used for the shell built-in which can be used to replace the current shell with a program or various redirection-related stuff.
Questions tagged [exec]
285 questions
2
votes
2 answers
Does running exec do anything?
Does running exec in an interactive shell do anything? I mean simply exec, with no parameters whatsoever.
What about in a script?
If it does do something, what does it do?

Redirect
- 107
2
votes
2 answers
Zeroth argument to an exec function
Here are the standard exec* functions:
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…

Petr Skocik
- 28,816
1
vote
1 answer
exec command won't accept xargs, hangs on command input
I'm not super familiar with exec. I was running through some tests and examples. I wanted to pass a command written in a file to it. I'm expecting that command to be run with exec just as if it were run directly on the commandline. Here's what I set…

user2183336
- 123
-1
votes
2 answers
Does the Linux kernel support a PARTIAL exec
I was looking at another question (https://stackoverflow.com/q/47845/537980), and saw an answer, about how much set up this other OS had to do, for every Process Create.
I got wondering. Would it be possible to do the setup (once, then fork), then…

ctrl-alt-delor
- 27,993
-1
votes
2 answers
how to unzip all files in sub directories
I try to extract all files in all sub directories by this command
$ find -name "*.bz2" -print -exec bizp2 -d "*.bz2" {}\;
find: missing argument to `-exec'
but it doesnot work :(
btw I do not understand the usage of {};

Dalia Shouman
- 57
- 1
- 3
- 6