Questions tagged [os.execl]
33 questions
0
votes
1 answer
What does execl do if it can't find the command?
I already read the man page and did some googling. Couldn't find anything. Say I run execl with a path argument that doesn't actually contain the program specified in arg[0].
What will it do?

temporary_user_name
- 35,956
- 47
- 141
- 220
0
votes
1 answer
execl() returns `cannot open or parse argument` error
I have this code to run a program using execl() and I am getting this error:
Cannot open or parse ' arg 3'.
And, when I remove the argument 3, then I am getting the same error for argument 2, any idea?
I was debuging and apparently the first time…

user1681210
- 85
- 2
- 10
-4
votes
1 answer
How can i use fork to open a new process and use execl to start a web browser in c
I would like to create a new process using fork and then use excl to start a web browser with a url.
Im not too familiar with fork and excel so any help would be appreciated.
thanks
EDIT:
this is my code but i don't think its right
if(fork() == 0)…

Lycon
- 2,369
- 2
- 15
- 16