How to execute a program from file descriptor?
Posted
by stribika
on Stack Overflow
See other posts from Stack Overflow
or by stribika
Published on 2010-05-23T16:26:04Z
Indexed on
2010/05/23
16:30 UTC
Read the original article
Hit count: 219
I need to execute a file when I only know the descriptor. It is also possible that there are no links to the file so finding out the name somehow is not an option. All the execve(), execvp(), etc functions take a file name. dlopen() also takes a name.
Ugly solutions (like reading the file and calling some function pointer) are OK.
© Stack Overflow or respective owner