Question on popen

Hello All,

Is it possible to use popen for multiple piping.

Ex: If I want to achieve "last | sort | wc -l" command using popen, how to do it?

Is it possible?

Thanks in advance
Nanda
No, you can't.
You'll have to use dup(), fork() and exec().
Thank you Mr. lloydchristmas759 for your comments. Please share any examples if you have.
Take a look at the first post of this thread:

http://www.gidforums.com/t-3369.html

It should provide you with the basics. Then you will need to adapt to your needs.
Topic archived. No new replies allowed.