i'm trying to run one c executable file using php exec()
.
When c contains a simple program like print hello
. I'm using
exec('./print.out')
It's working fine. But when I need to pass a argument to my c program I'm using
exec('./arugment.out -n 1234')
It is not working. Can any body tell me how to pass arugment using exec
to c program.