The first parameter of execl is the path of the executable file, my question is that what if there is a space in the path?
My program fails when space exists.
The first parameter of execl is the path of the executable file, my question is that what if there is a space in the path?
My program fails when space exists.
what if there is a space in the path?
It does not matter, as the exec*()
functions do not involve a shell or any kind of command interpreter which might choke on the space, or any other special character.
My program fails when space exists.
Does exec()
return? Which value do you find in errno
or what does perror()
print?
exec(....); /* exec*() function do ot return is successful. */
perror("exec() failed);