blob: 9e6b14c27f4e42dc9e1454da27f4be0c8ce3047f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
% $Id: write18-quote.tex 16695 2010-01-13 01:18:02Z karl $
% Public domain. Originally written by Karl Berry,
% with ideas from Alexander Cherepanov.
\catcode`\# = 12
\def\cmd{" 2>&1 | echo badnews > pwned.txt #.gz"}
% create this weirdly-named file.
\catcode0 = 12
\immediate\openout1 \cmd^^@
\immediate\closeout1
% write out a special referring to it.
% if it exists when dvips is run, it will be executed with popen.
\special{psfile=\cmd}
\nopagenumbers
\end
|