Top "Exec" questions

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

using a new path with execve to run ls command

I am trying to use execve to run the ls command. Currently I'm running it with the following arguments: execve(…

c path exec execve
How can I ensure all output from Ant's exec task goes to stdout?

The Ant exec task has an output property which can be used to tell Ant where the output goes. I've …

ant exec
When should I use O_CLOEXEC when I open file in Linux?

My process forks several times, and each time the child will exec - means I want it to run some …

c linux file-io exec
What is the difference between spawn and exec?

I'm learning to write a TCL (expect) scripts and I notice that some examples show to use spawn, while others …

scripting exec tcl expect spawn
Shellexec vs Exec vs Shellexec my batch file

I don't find in the help an exhaustive explanation of the difference between Shellexec and Exec. Is the Shellexec('',…

exec inno-setup shellexecute
php-fpm does not work exec, system, shell_exec, only CLI

php-fpm, nginx exec when in use .phpfiles() shell_exec() system() works fine from the command line. Example when works well: #…

nginx exec php openbsd
Stdout of Node.js child_process exec is cut short

In Node.js I'm using the exec command of the child_process module to call an algorithm in Java that …

javascript node.js exec stdout child-process
Display running child process' output in nodejs (windows)

For example sake, I'm running the most basic webServer in node (I'm using windows) with the following code (named server.…

node.js exec child-process
After using `exec 1>file`, how can I stop this redirection of the STDOUT to file and restore the normal operation of STDOUT?

I am a newbie in shell scripting and I am using Ubuntu-11.10. In the terminal after using exec 1>file …

linux shell unix exec ubuntu-11.10
Get output of cmd command from java code

I have a program where I was able to successfully execute cmd commands from my code, but I want to …

java windows cmd exec runtime.exec