Top "Exec" questions

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

How to check if a shell command exists from PHP

I need something like this in php: If (!command_exists('makemiracle')) { print 'no miracles'; return FALSE; } else { // safely call the …

php linux exec
how to set close-on-exec by default

I'm implementing a library to run commands. The library is C, on Linux. It currently does a popen() call to …

c linux exec fork
Using Quotes within getRuntime().exec

I'd like to invoke bash using a string as input. Something like: sh -l -c "./foo" I'd like to do …

java exec runtime.exec
Setting variables with exec inside a function

I just started self teaching Python, and I need a little help with this script: old_string = "didnt work" new_…

python string function variables exec
Difference between exec and execute in php

I'm learning php but in the tutorial I use, I can see something like these lines : $DatabaseAdd->exec('INSERT …

php exec execute
bash: force exec'd process to have unbuffered stdout

I've got a script like: #!/bin/bash exec /usr/bin/some_binary > /tmp/my.log 2>&1 Problem is …

bash logging exec unbuffered-output
How to use pipe within -exec in find

Is there any way to use pipe within an -exec in find? I don't want grep to go through whole …

unix find exec pipe
Faster forking of large processes on Linux?

What's the fastest, best way on modern Linux of achieving the same effect as a fork-execve combo from a large …

linux process debian exec fork
system() vs execve()

Both system() and execve() can be used to execute another command inside a program. Why in set-UID programs, system() is …

security exec elevated-privileges setuid
C: Exec/fork > Defunct processes

I'm want to create a lot of child processes using the fork > exec procedure. Many processes are ending very …

c exec fork defunct