From 7411ef586422d7604d0c8542bfe10fd4a838f329 Mon Sep 17 00:00:00 2001 From: Mart Lubbers Date: Tue, 8 Jul 2014 16:03:54 +0200 Subject: [PATCH] piping added --- truuk.tex | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/truuk.tex b/truuk.tex index 66048dd..d700b35 100644 --- 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} -- 2.20.1