> > > I noticed that I need a pseudodevice that opens normally but blocks all> > > reads (and writes). The only way out would be through a signal. Neither> > > > Try using a pipe> > You're right. This is what I wanted to do:> > while true> do> ssh -R a:b:c host> sleep 10> done </dev/never >/dev/null> > But I could do it like this:> > while true> do> sleep 100000> done |> while true> do> ssh -R a:b:c host> sleep 10> done >/dev/null

Highly elegant :)

How bout just `mkfifo /tmp/blockme`and read on /tmp/blockme - just don't write to it!