From: Mart Lubbers Date: Tue, 8 Jul 2014 14:03:54 +0000 (+0200) Subject: piping added X-Git-Tag: 1.0~1 X-Git-Url: https://git.martlubbers.net/?a=commitdiff_plain;h=7411ef586422d7604d0c8542bfe10fd4a838f329;p=linuxnijmegen-ssh.git piping added --- 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}