Top "Exec" questions

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

php exec command (or similar) to not wait for result

I have a command I want to run, but I do not want PHP to sit and wait for the …

php exec
Redirecting exec output to a buffer or file

I'm writing a C program where I fork(), exec(), and wait(). I'd like to take the output of the program …

c exec fork
PHP: Why isn't exec() returning output?

I'm writing a PHP script to be used to check for network connections with Linux shell command ping calling it …

php exec ping
How to add a timeout value when using Java's Runtime.exec()?

I have a method I am using to execute a command on the local host. I'd like to add a …

java process timeout runtime exec
In C how do you redirect stdin/stdout/stderr to files when making an execvp() or similar call?

I have the following code: pid_t pid = fork(); if (pid == -1) { // ... } else if (pid == 0) { stdin = someopenfile; stdout = someotherfile; stderr = …

c linux unix exec io-redirection
how to correctly use fork, exec, wait

The shell i'm writing needs to execute a program given to it by the user. Here's the very shortened simplified …

c shell exec
How do I launch a completely independent process from a Java program?

I am working on a program written in Java which, for some actions, launches external programs using user-configured command lines. …

java exec external-process
Difference between "system" and "exec" in Linux?

What is the difference between system and exec family commands? Especially I want to know which one of them creates …

c linux exec fork
understanding requirements for execve and setting environment vars

We are having a lot of trouble interpreting our teacher. We asked for clarification and got the following back from …

c path exec execve
How to make pipes work with Runtime.exec()?

Consider the following code: String commandf = "ls /etc | grep release"; try { // Execute the command and wait for it to complete …

java exec runtime.exec