This one's from Mike Haertel as described in:

  http://tinyurl.com/arnnd

Thanks for Andrey for pointing this out.  You can establish a two
way pipe to a command in /srv:

  $ cmd <[0=1] | echo 0 > /srv/name

and then access /srv/name to communicate with the command.  As
an example:

  $ mail <[0=1] | echo 0 > /srv/mailcons
  $ con -l /srv/mailcons
  ... connected to mail until ^\ quit ...
  $ con -l /srv/mailcons
  ... connected again ...

will let you detach and re-attach to the pipe to a long-lived
mail command.

Tim Newsham
http://www.lava.net/~newsham/

Reply via email to