6

How to do nothing forever in an elegant way?

view full story
linux-howto

http://unix.stackexchange.com – I have a program which produces useful information on stdout but also reads from stdin. I want to redirect its standard output to a file without providing anything on standard input. So far, so good: I can do: program > output and don't do anything in the tty. However, the problem is I want to do this in the background. If I do: program > output & the program will get suspended ("suspended (tty input)"). If I do: program < /dev/null > output & the program terminates immediately because it reaches EOF. It seems that what I need is to pipe into program something w (HowTos)