on99-slide.html 942 Bytes
Newer Older
Niels Möller's avatar
Niels Möller committed
1 2 3 4 5 6
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html> <head>
<title> Some ideas about an lsh shell mode </title>
</head>

<body>
Niels Möller's avatar
Niels Möller committed
7
<p align=right>Niels Möller 1999-05-01<p>
Niels Möller's avatar
Niels Möller committed
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46

<h3>Piping with ssh</h3>

It's possible to use ssh in pipes, but its a little tricky and inefficient:
<blockquote>

<pre>
$ ssh host du \| tee /tmp/foo | grep -f x | ssh host sort 
</pre>
</blockquote>
<h3>Piping in an lsh "shell-mode"</h3>

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.

<font size=+1>
<blockquote>
<pre>
$ [ du | tee /tmp/foo ] | grep -f x | [ sort ]
</pre>
</blockquote>
</font>

<h3>Remote job control</h3>
<font size=+1>
<blockquote>
<pre>
$ [ job_a ]& [job_b]& local_job &
$ jobs
[1 remote] job_a
[2 remote] job_b
[3]        local_job
$ fg %2
...
</pre>
</blockquote>
</font>
</body> </html>