in reply to open pipe

First, you may need to exit the less program with q.
Second, don't forget to close(LESS).
Third, try executing system("stty sane") after that.

A word spoken in Mind will reach its own level, in the objective world, by its own weight

Replies are listed 'Best First'.
Re^2: open pipe
by jwkrahn (Abbot) on Apr 06, 2007 at 19:14 UTC
    First, you may need to exit the less program with q.
    Or use the -e switch with less.
      jwkrahn++

      That's what I love about this forum. You can always learn something new just by reading other's replies. I often set my mysql pager (/P) to /usr/bin/less so that I can scroll through large result sets. Using it with the -e switch makes this even more useful.

      Cheers,
      Darren :)