http://www.sendspace.com/file/g0v6po


thats my little code. When I execute it it gives me error..which it shouldnt.


the ls is called, its result is stored in fd[1], and the second child (less) reads the answer from fd[0] ...


its not working..anything wrong with close methods sthg..plz help

Please post your code inline or attach it if it's huge (1KB isn't huge, by the way). Not only is it irritating to have to go to third party file sharing services, it's terribly frustrating when the free service is unavailable due to server load. Most people won't bother to wait for the load to go down, and your question will go unanswered.