piping added
authorMart Lubbers <mart@martlubbers.net>
Tue, 8 Jul 2014 14:03:54 +0000 (16:03 +0200)
committerMart Lubbers <mart@martlubbers.net>
Tue, 8 Jul 2014 14:03:54 +0000 (16:03 +0200)
truuk.tex

index 66048dd..d700b35 100644 (file)
--- a/truuk.tex
+++ b/truuk.tex
@@ -92,6 +92,34 @@ AAAB4N.....
        \end{block}
 \end{frame}
 
+\begin{frame}[fragile]
+       \frametitle{Pipen}
+       \begin{block}{Nut}
+               Spreekt voor zich
+       \end{block}
+       \pause
+       \begin{block}{Basisvoorbeelden}
+               \begin{enumerate}
+                       \item{server$\rightarrow$client}\\
+                               \lstinline{ssh frobnicator@foobarbaz.com 'ls -allah /media/cdrom'}
+                       \item{client$\rightarrow$server}\\
+                               \lstinline{ls -allah /media/cdrom | ssh frobnicator@foobarbaz.com 'cat - > cdrom_client.txt'}
+               \end{enumerate}
+       \end{block}
+       \pause
+       \begin{block}{Praktijk}
+               \begin{enumerate}
+                       \item{Backup}\\
+                               \lstinline{dd if=/dev/sdb | gzip | ssh frobnicator@foobarbaz.com 'gzip -d | dd of=sdb.img'}
+                       \item{Script draaien}\\
+                               \lstinline{ssh frobnicator@foobarbaz.com 'bash -s' < script.sh}
+                       \item{Liedje afspelen}\\
+                               \lstinline{ssh frobnicator@foobarbaz.com 'cat ~/liedje.flac' | flac -dsc - | aplay}
+               \end{enumerate}
+       \end{block}
+\end{frame}
+
+
 \begin{frame}[fragile]
        \frametitle{X forwarding}
        \begin{block}{Nut}