Top "Exec" questions

This tag refers to the starting of another, subsidiary program.

How to exit a child process and return its status from execvp()?

In my simple custom shell I'm reading commands from the standard input and execute them with execvp(). Before this, I …

c exec fork exit
How to retrieve PHP exec() error responses?

Below is the command I tried executing, without success: exec('ln -s ' . PLUGIN_DIR . '/.htaccess ' . ABSPATH . '/.…

php shell exec
How to spawn parallel child processes on a multi-processor system?

I have a Python script that I want to use as a controller to another Python script. I have a …

python exec subprocess multiprocessing
Pipes, dup2 and exec()

I have to write a shell that can run pipes. For example commands like ls -l | wc -l". I have …

c linux shell exec dup2
docker-exec failed: "cd": executable file not found in $PATH

I used this command: docker exec compassionate_mclean cd /root/python The error returned is docker-exec: failed to exec: exec: "…

exec docker cd
What are the differences of system(), exec() and shell_exec() in PHP?

It is possible to run an external command by three PHP functions of system(); exec(); shell_exec(); but what are …

php shell system exec shell-exec
How to debug "exit status 1" error when running exec.Command in Golang

When I run the code below: cmd := exec.Command("find", "/", "-maxdepth", "1", "-exec", "wc", "-c", "{}", "\\") var out bytes.Buffer cmd.Stdout = &…

error-handling command go exec
Capturing exit status code of child process

I have a function that forks a process, duplicates file descriptors for input and output buffers, and then runs execl …

c exec fork pid
Dynamic/runtime method creation (code generation) in Python

I need to generate code for a method at runtime. It's important to be able to run arbitrary code and …

python metaprogramming exec
How to execute command with parameters?

How am I to execute a command in Java with parameters? I've tried Process p = Runtime.getRuntime().exec(new String[]{"…

java parameters exec runtime.exec