see man page of execl, you will see:
Quote:
The exec() family of functions replaces the current process image with a new process image.
|
furthermore:
Quote:
The const char *arg and subsequent ellipses in the execl(), execlp(), and execle() functions can be thought of as arg0, arg1, ..., argn. Together they describe a list of one or more pointers to null-terminated strings that represent the argument list available to the executed program.
|
You can see, pipe is not allowed.
Therefore you need to write a small script to implement what you need and execl that script.