pzozulka
asked on
C Programming: Execl permission denied
I am new to C programming. Is this the right use of the execl command?
void communicate(const char *port, const char *conf, const char *cwd) {
...
// cwd is /home/users1/pz951772
execl(cwd,"egress");
...
}
egrass.c is a simple C program, that has been GCC'd (gcc -o egress egress.c)
I also did "chmod 777 egress" thinking that I should give it full rights, but that didn't help.
If needed I can post the entire code.
void communicate(const char *port, const char *conf, const char *cwd) {
...
// cwd is /home/users1/pz951772
execl(cwd,"egress");
...
}
egrass.c is a simple C program, that has been GCC'd (gcc -o egress egress.c)
I also did "chmod 777 egress" thinking that I should give it full rights, but that didn't help.
If needed I can post the entire code.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.