[prev in list] [next in list] [prev in thread] [next in thread]
List: linux-elitists
Subject: Re: [linux-elitists] ssh hygiene
From: Greg KH <greg () kroah ! com>
Date: 2002-04-30 22:52:46
[Download RAW message or body]
On Mon, Apr 29, 2002 at 10:51:29PM -0700, Don Marti wrote:
>
> I am no good at either shell scripts or TeX, but will inflict this
> on those of you who are:
> http://zgp.org/~dmarti/warez/ssh-wallet.sh
Here's a small patch to your script that prints things out in a more
tabular form (and prints the hex numbers in a more readable font.
Yes, it's a bit bigger, but should still be able to fit into your pocket
:)
It also fixes a problem that the script would not produce a .ps file,
and would tell me that the file was located in the wrong place. As this
must have worked for you, I can only guess that we are using two
different versions of dvips.
thanks,
greg k-h
--- ssh-wallet.sh.orig Mon Apr 29 18:09:11 2002
+++ ssh-wallet.sh Tue Apr 30 16:47:07 2002
@@ -25,15 +25,22 @@
\newcommand{\keyfont}{\flushleft\tt\fontsize{.08in}{.096in}\selectfont}
\begin{document}
\keyfont{
+\begin{table}[bt]
+\begin{center}
+\begin{tabular}{r|c|r}
END
-ssh-keygen -l -f $SSHDIR/known_hosts | awk '{print $3 " " $1 "\\\\" $2 "\n"}' \
+ssh-keygen -l -f $SSHDIR/known_hosts | awk '{print $3 "\&" $1 "\& {\\tt " $2 "}\\\\\n"}' \
>> $CARD.tex
+echo "\end{tabular}" >> $CARD.tex
+echo "\end{center}" >> $CARD.tex
+echo "\end{table}" >> $CARD.tex
+
echo "}" >> $CARD.tex
echo "\end{document}" >> $CARD.tex
(cd $SSHDIR && latex $CARD.tex &> /dev/null \
- && dvips $CARD.dvi &> /dev/null && rm $CARD.dvi)
+ && dvips -f < $CARD.dvi > $CARD.ps && rm $CARD.dvi)
-echo "Print the file $SSHDIR/$CARD.ps"
+echo "Print the file $CARD.ps"
_______________________________________________
linux-elitists
http://zgp.org/mailman/listinfo/linux-elitists
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic