Niels Möller 1999-05-01
Piping with ssh
It's possible to use ssh in pipes, but its a little tricky and inefficient:
$ ssh host du \| tee /tmp/foo | grep -f x | ssh host sort
Piping in an lsh "shell-mode"
Let's imagine a shell mode for running local and remote processes.
Assume that square brackets  denote remote process grouping on some
host, similar to parenthesis () used to group local processes.
$ [ du | tee /tmp/foo ] | grep -f x | [ sort ]
Remote job control
$ [ job_a ]& [job_b]& local_job &
[1 remote] job_a
[2 remote] job_b
$ fg %2