[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Shell pipe command with key pause



Hi,

I am wondering how to write simple shell script of "more" equivalent:

 1. read from stdin
 2. write to stdout
 3. this loop is paused by key

Of course, I know this can be dome by other means but when I was making
a bit more complicated shell script, I could not find an easy way to stop 
the script when stdin is redirected.  Is there any trick with exec
buildin?

Osamu



Reply to: